Skip to main content
Glama

update_draft

Destructive

Updates, archives, restores, or marks a draft ready using updated_at as a compare-and-swap version.

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>",
      "expected_updated_at": "<expected_updated_at>"
    },
    "name": "update_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
mediaNo
statusNo
contentNo
candidate_angleNo
idempotency_keyNo
expected_updated_atYes
suggested_platformsNo
selected_account_idsNo

Output Schema

NameRequiredDescriptionDefault
bodyNoUpstream error details, when available.
codeNoError code when the tool result has isError=true.
dataNoPresent on successful results; omitted on tool errors.
metaNo
statusNo
messageNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and non-read-only, so the safety profile is carried structurally. The description adds genuinely useful context the annotations lack: the updated_at compare-and-swap versioning model, which implies a conflict failure path. It still omits what happens on a version mismatch, what 'archive' destroys or preserves, and that idempotency_key exists for retry safety.

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?

A single dense sentence with no filler, and the operation list and CAS mechanism are both front-loaded. It is appropriately sized, though the operation list could be more explicitly mapped to the status enum values.

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

Completeness2/5

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

For a 9-parameter mutation tool with 0% schema documentation and a destructive hint, one sentence is far short of adequate. The output schema relieves the need to describe returns, but the description never explains which parameters drive which of the four named operations or how status values correspond to archive/restore/ready.

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

Parameters2/5

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

Schema description coverage is 0% across 9 parameters, so the description must carry the burden and it does not. It explains expected_updated_at as a CAS version, which is helpful, but the content, media, status enum, suggested_platforms, selected_account_ids, candidate_angle, and idempotency_key parameters get no mention at all, leaving the agent to infer semantics from bare property names.

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?

The description names a specific verb set (updates, archives, restores, marks ready) against a specific resource (a draft), so the intent is unambiguous. It does not distinguish itself from siblings like update_post or cancel_post, which occupy adjacent territory an agent could easily confuse.

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

Usage Guidelines2/5

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

No when-to-use guidance is given: nothing says to prefer this over update_post, nor when archiving should be done here versus cancel_post. The only implied rule is the compare-and-swap precondition, which is a constraint rather than selection guidance.

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