Author a Brand Page
This tutorial walks through creating a brand page from draft to published, using MCP tools to draft, preview, refine, and publish.
Step 1: Draft the Page
Create a draft page with your content. Pages support HTML content.
Tool: pages.draft
{
"tool": "pages.draft",
"input": {
"title": "BPC-157 Protocol Guide",
"brand_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"slug": "bpc-157-guide",
"content": "<h1>BPC-157 Protocol Guide</h1><p>BPC-157 is a peptide consisting of 15 amino acids. This guide covers dosing, reconstitution, and cycle management.</p><h2>Dosing</h2><p>Standard dosing is 250-500mcg per day, administered subcutaneously.</p>"
}
}Response:
{
"ok": true,
"data": {
"page_id": "pg_abc123",
"title": "BPC-157 Protocol Guide",
"slug": "bpc-157-guide",
"status": "draft"
}
}Step 2: Preview the Page
Get a preview URL to see how the page looks before publishing.
Tool: pages.preview
{
"tool": "pages.preview",
"input": {
"page_id": "pg_abc123"
}
}Response:
{
"ok": true,
"data": {
"preview_url": "https://loop.health/preview/pg_abc123?token=prev_xyz",
"expires_at": "2026-05-19T15:00:00Z"
}
}Open the preview URL in your browser to review the rendered page. The preview link expires after 1 hour.
Step 3: Update the Page
After reviewing the preview, make any needed updates to the content.
Tool: pages.update
{
"tool": "pages.update",
"input": {
"page_id": "pg_abc123",
"content": "<h1>BPC-157 Protocol Guide</h1><p>BPC-157 (Body Protection Compound-157) is a synthetic peptide consisting of 15 amino acids derived from human gastric juice.</p><h2>Dosing</h2><p>Standard dosing is 250-500mcg per day. Start at the lower end and titrate up based on response.</p><h2>Storage</h2><p>Store reconstituted peptide refrigerated (2-8°C). Use within 28 days of reconstitution.</p>"
}
}Response:
{
"ok": true,
"data": {
"page_id": "pg_abc123",
"status": "draft"
}
}Step 4: Publish the Page
When you’re satisfied with the content, publish the page to make it publicly accessible. Publishing requires admin role.
Tool: pages.publish
{
"tool": "pages.publish",
"input": {
"page_id": "pg_abc123"
}
}Response:
{
"ok": true,
"data": {
"page_id": "pg_abc123",
"status": "published",
"url": "https://loop.health/bpc-157-guide"
}
}What Happens Next
Your page is now live at the published URL. From here you can:
- Update the content at any time with pages.update — creates a new version
- Archive the page with pages.archive when it’s no longer needed
- List all pages with pages.list to manage your content library