Skip to main content
Glama

Edit a saved draft

update_draft

Patch draft title/content using expectedRevision from get_draft; preserves omitted fields and invalidates preview. Use null to clear posts, article, or overrides; published posts remain untouched.

Instructions

Patch draft content/title using the expectedRevision from get_draft. Preserves omitted fields, increments revision and invalidates preview. Set posts/article to null to clear; overrides:null clears overrides. Does not edit an already published post.

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": {
      "draftId": "<draftId>",
      "expectedRevision": "<expectedRevision>"
    },
    "name": "update_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
patchNo
titleNo
draftIdYes
expectedRevisionYes

Output Schema

NameRequiredDescriptionDefault
dataNo
errorNo
successYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare a non-read-only, non-destructive, non-idempotent mutation, so the bar is lower. The description still adds real value: omitted fields are preserved (partial patch), revision is incremented, previews are invalidated, and null clears posts/article/overrides. It omits the failure mode when expectedRevision is stale, which is the main behavioral risk for an optimistic-concurrency tool.

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 verb and the critical revision precondition, then the clear-semantics rules. Dense and waste-free, though the mid-sentence 'Set posts/article to null to clear; overrides:null clears overrides' is slightly redundant in phrasing.

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?

Output schema exists, so return values need no explanation, and the mutation/revision invariants are covered. The one missing piece is conflict behavior on a revision mismatch, which matters given expectedRevision is required.

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 0% with four parameters and deep nesting, so the description must compensate. It clarifies the null-clearing semantics for posts, article, and overrides and the source of expectedRevision, but leaves draftId, accountIds, autoSplit, and firstComment (LinkedIn first-comment behavior) unaddressed here.

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 ('Patch draft content/title') and adds a boundary: 'Does not edit an already published post.' That boundary alone separates it from publish_draft and preview_draft 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 Guidelines4/5

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

Gives a concrete precondition for the key parameter ('using the expectedRevision from get_draft') and one exclusion (already published posts). It does not name a sibling alternative for the published case (e.g. publish_post), so routing in that edge case is left to inference.

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