Skip to main content
Glama

MySaaS Blog

Update draft

post_update_draft
Destructive

Patch an existing unpublished draft. Omitted locales, tags, sources, SaaS links, excerpts and SEO image metadata are preserved; send mode:auto to clear an SEO image. The server resolves mediaId to its canonical URL. Send expectedUpdatedAt from post_get to detect concurrent edits.

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": {
      "postId": "<postId>",
      "post": "<post>"
    },
    "name": "post_update_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
postYes
postIdYes
idempotencyKeyNoOptional retry key. Reuse the same key with the same payload to deduplicate agent retries.

Output Schema

NameRequiredDescriptionDefault
okYes
postNo
errorNo
warningIssuesNo
blockingIssuesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

With destructiveHint=true and idempotentHint=false already declared, the description still adds concrete consequences: omitted fields are preserved, mode:auto clears the SEO image, and changing a slug creates a redirect from the old URL. It also discloses server-side mediaId-to-URL resolution. It stops short of stating permission requirements or exactly which mutations count as destructive.

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?

Three dense sentences with no filler. The core patch semantics come first, destructive side effects second, and the concurrency hint last, which is the right priority order for an agent deciding whether to call it.

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 nested, 3-parameter mutation with an output schema already covering returns, the description supplies the semantics an agent most needs: patch behavior, field preservation, clearing mechanics, and optimistic concurrency. Some schema-level details such as translations minItems/maxItems and categoryId remain undescribed, but the coverage is proportionate to the tool's complexity.

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 description coverage is only 33%, so the description must carry weight, and it does: it explains omission-as-preservation for locales, tags, sources, SaaS links, excerpts and SEO image metadata, plus clearing via mode:auto and the concurrency role of expectedUpdatedAt. The idempotencyKey, postId, and the translations/categoryId structure are left entirely to the schema.

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

Purpose4/5

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

"Patch an existing unpublished draft" gives a specific verb (patch), resource (draft), and a scope constraint (unpublished) that separates it from a general post update. It never names a sibling tool outright, so the agent must infer the post_update/post_create_draft boundary from the word "draft" alone.

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

Usage Guidelines3/5

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

The description implies patch semantics (omit a field to preserve it) and instructs sending expectedUpdatedAt from post_get for concurrency detection, which is real how-to-use guidance. It gives no when-to-use-versus-alternatives statement and no explicit exclusion telling the agent to use post_update or post_publish instead in other cases.

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