Skip to main content
Glama

Make a blog post Live

publish_post

Make a blog post Live (and the blog's index page, if it is still a draft), then publish the site so the post is on the web, on every domain the site has. A site publish ships the whole site as it stands, including unpublished edits on other pages, just like Publish in the editor. A site that was never published isn't published here: its first publish, which picks its address, happens in Simplepages. Answers the post's contentHash, so a caller can confirm it made Live the version it approved.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "siteId": "<siteId>",
      "slug": "<slug>"
    },
    "name": "publish_post"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYesThe post's URL name, e.g. "how-we-price" for /blog/how-we-price. Lowercase words joined by hyphens.
siteIdYesThe site (id from list_sites).
collectionNoWhich collection the posts are in. Defaults to "blog", so posts are at /blog/<slug>. Lowercase words joined by hyphens.

Output Schema

NameRequiredDescriptionDefault
noteYes
pathYesThe post's path on the site, e.g. "/blog/launch".
slugYes
siteIdYes
statusYesDraft or Live (published). Live means the next site publish includes the post; it is not on the domain until the site is published (publish_post does that once the site has an active domain, as does Publish in Simplepages).
editUrlYesOpens the post's page in the Simplepages editor.
liveUrlNoIts address on the site's custom domain, once the site is published. Null without a domain.
collectionYes
previewUrlNoShareable preview link, Draft or Live. Null until its page row exists.
contentHashYesThe version that was made Live.
sitePublishedYesTrue when the site was published to every one of its domains, so the post is on the web.
indexPublishedYesTrue when the blog's index page was a draft and is now Live too.
previewCurrentYes
publishFailuresYesDomains whose publish failed, with why. The post stays Live and goes out with the next publish.
publishedDomainsYesDomains the site was published to by this call.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedOutput schema / properties / publishFailures
      Added value: +{
      +  "description": "Domains whose publish failed, with why. The post stays Live and goes out with the next publish.",
      +  "items": {
      +    "properties": {
      +      "domain": {
      +        "type": "string"
      +      },
      +      "message": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "domain",
      +      "message"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / publishedDomains
      Added value: +{
      +  "description": "Domains the site was published to by this call.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / sitePublished
      Added value: +{
      +  "description": "True when the site was published to every one of its domains, so the post is on the web.",
      +  "type": "boolean"
      +}
    • changedOutput schema / properties / status / description
      Previous value: -"Draft or Live (published). Live means the next site publish includes the post; it is not on the domain until the site is published from Simplepages."New value: +"Draft or Live (published). Live means the next site publish includes the post; it is not on the domain until the site is published (publish_post does that once the site has an active domain, as does Publish in Simplepages)."
    • changedOutput schema / required
      Previous value: -[
      -  "siteId",
      -  "collection",
      -  "slug",
      -  "status",
      -  "contentHash",
      -  "indexPublished",
      -  "previewCurrent",
      -  "path",
      -  "editUrl",
      -  "note"
      -]New value: +[
      +  "siteId",
      +  "collection",
      +  "slug",
      +  "status",
      +  "contentHash",
      +  "indexPublished",
      +  "previewCurrent",
      +  "sitePublished",
      +  "publishedDomains",
      +  "publishFailures",
      +  "path",
      +  "editUrl",
      +  "note"
      +]
  2. Added

TDQS

A4.4/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only declare readOnlyHint=false, so the description carries the burden and does it well: it discloses that a site publish ships the whole site including unpublished edits on other pages, that unpublished sites are rejected, and that the post's contentHash is returned for verification.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The primary action is front-loaded and each sentence adds a distinct fact. The third sentence is long and could be split, but nothing is filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers the mutation's blast radius, the preconditions (site must already be published), and confirmation via contentHash, with the output schema handling return details. Nothing an agent needs to invoke this safely is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so slug, siteId and collection are already fully documented, and the description adds no additional meaning about them. Baseline 3 applies; the mention of contentHash is a return value, already covered by the output schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Make a blog post Live ... then publish the site") and clarifies the side effect on the blog index page and all domains. An agent can distinguish this from draft-saving siblings like put_post without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit exclusion: a never-published site is not published here, its first publish happens in Simplepages. That is a real when-not rule, but it does not name sibling alternatives such as put_post or create_site, so routing guidance is partial.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources