Skip to main content
Glama

Write a blog post

put_post

Create or update a blog post exactly as given: the Markdown is saved as written, no AI rewrites it, and the site's blog layout draws it in the site's design at /blog/. A new post starts as a Draft; use publish_post to make it Live. To update a post, read it with get_post or list_posts and pass its contentHash as base_hash: the write is refused if the post changed since. Needs setup_blog first. Raw HTML in the Markdown is dropped; images need an http(s) URL, such as one upload_image returned.

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>",
      "title": "<title>",
      "markdown": "<markdown>"
    },
    "name": "put_post"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoPublication date, YYYY-MM-DD. Posts are listed newest first.
slugYesThe post's URL name, e.g. "how-we-price" for /blog/how-we-price. Lowercase words joined by hyphens.
imageNoThe post's main picture: an http(s) URL, e.g. from upload_image.
titleYesThe post's title.
authorNoWho wrote it, shown on the post if the layout does.
siteIdYesThe site (id from list_sites).
markdownYesThe post's body in Markdown (GitHub flavoured), without the title, which the layout shows.
base_hashNoRequired to update an existing post: its contentHash from get_post or list_posts. Omit it to create a new post.
image_altNoWhat the picture shows, for screen readers. Required with image.
collectionNoWhich collection the posts are in. Defaults to "blog", so posts are at /blog/<slug>. Lowercase words joined by hyphens.
descriptionNoOne or two sentences for the list of posts and search results. The first paragraph if omitted.

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).
changedYesFalse when the post already said exactly this.
createdYes
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 saved post's version. Pass it to put_post as base_hash to update this post.
previewCurrentYesWhether previewUrl already shows this version.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • 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)."
  2. Added

TDQS

A4.5/5.0
Behavior4/5

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

Annotations only supply readOnlyHint=false, so the description carries the real disclosure burden and does well: no AI rewriting, Draft-by-default status, optimistic concurrency refusal on stale base_hash, raw HTML dropped, and image URL constraints. What's missing is any statement about what happens to fields not supplied on update or whether failures are partial.

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?

Front-loaded with the key guarantee (saved as written, no AI rewriting) and every sentence carries real information. There is minor redundancy: the /blog/<slug> layout behavior is restated and the image URL rule duplicates the schema's image description.

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

Completeness4/5

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

For an 11-parameter mutation with an output schema (so return values needn't be explained), the description covers state transitions, prerequisites, concurrency, and content sanitization. It leaves unaddressed what an update does to omitted optional fields, which is the main remaining ambiguity.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3; the description earns an extra point by explaining base_hash's refusal semantics and the title/body split that the schema only hints at. It does not, however, add meaning for date, author, collection, or description beyond what the schema already says.

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?

The description opens with a precise verb+resource pair, "Create or update a blog post exactly as given," and immediately differentiates the create path from publish_post ("use publish_post to make it Live") and the update path (read via get_post/list_posts). An agent can route correctly without opening any schema.

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

Usage Guidelines5/5

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

It states prerequisites ("Needs setup_blog first"), the create-vs-update switch ("Omit it to create a new post"), the required read-before-write flow, and which sibling to call for the Live transition. When-not guidance is implicit but the alternatives are all named with their triggering conditions.

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