Skip to main content
Glama

Update Post

patch_posts_by_id

EDIT ONLY — modifies a post in-place. NEVER call for reading; use post_posts to create. Published edits go live immediately. Always pass base_updated_at (from get_post.updated_at); without it a concurrent edit is silently overwritten. Custom styled HTML needs a richembed fenced block; bare block HTML is escaped. Do NOT include the title in the content body. Response has links.review_url for drafts — give that link to the user.

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": {
      "id": "<id>"
    },
    "name": "patch_posts_by_id"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
slugNo
tagsNo
agentNoYour name, on every write: Duet/<channel name> or Grok Bot/<bot name>.
titleNo
domainNo
statusNo
contentNo
site_idNo
featuredNo
subtitleNo
seo_titleNo
descriptionNoThe post's PUBLIC meta description shown in search results and link previews. Overwrites any stored value immediately. THIS IS NOT an edit-comment or reason-for-change field — omit this key entirely unless you explicitly intend to replace the current description.
published_atNo
featured_imageNo
base_updated_atNoISO from preceding get_post.updated_at. Server returns 409 CONFLICT with current_updated_at + current_content if post was edited since read; re-read, merge, retry.
seo_descriptionNo
x_discussion_urlNoX post permalink for the post's "Discuss on X" block. null removes it.
hero_prompt_editedNoCustom prompt that will be used on the next hero image generation for this post.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

No annotations are supplied, so the description carries the full burden and does so well: it discloses that published edits go live immediately, that the server returns 409 CONFLICT with current_updated_at plus current_content on a stale base_updated_at, that bare block HTML is escaped while a richembed fenced block is required for styled HTML, and that drafts produce links.review_url. These are non-obvious runtime behaviors an agent could not infer from the schema.

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

Conciseness5/5

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

Every sentence is a rule with no filler, and the highest-stakes constraint (EDIT ONLY, not for reading) is front-loaded before concurrency and formatting details. Density is high but each clause earns its place.

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 a mutation tool with no output schema and no annotations, the description covers safety, concurrency, formatting, and one return-value pointer (links.review_url), which is substantial. The gap is sibling routing: the catalogue contains post_posts_by_id_publish and post_posts_by_id_schedule, yet the description never says whether changing status via this tool is allowed or whether publishing must go through those tools.

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 coverage is only 26% across 19 parameters, and the description adds real meaning for a few of them: base_updated_at must come from get_post.updated_at, content must not include the title and needs richembed fencing for styled HTML. However, most parameters (slug, tags, domain, status, site_id, featured, subtitle, seo_title, published_at, featured_image) get no semantics from either source, and the description never clarifies whether this is a partial patch or a replace, which is the single most consequential ambiguity for a 19-param object.

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?

Opens with 'EDIT ONLY — modifies a post in-place', giving a specific verb (modify/edit), resource (post), and mode (in-place patch). It explicitly distinguishes itself from reading (via get_post) and from creation (post_posts), so an agent can route correctly without inspecting 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?

Explicit when/when-not guidance: 'NEVER call for reading; use post_posts to create' names the correct alternative and the condition that selects it. It also states a precondition for safe use (always pass base_updated_at obtained from get_post.updated_at) and warns that omitting it silently loses concurrent edits.

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.