Skip to main content
Glama

plan_draft_update

Read-only

Review proposed Markdown and metadata changes to an unpublished Substack draft before updating it; get bounded previews, conversion-loss checks, preflight results, and an exact-payload receipt.

Instructions

Read an unpublished draft and review proposed Markdown/metadata changes, bounded previews, conversion losses and preflight. Returns a receipt binding the observed state and exact payload for update_draft. No writes. Hashes check consistency, not human approval; stale detection is best-effort, not atomic.

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": {
      "draft_id": "<draft_id>"
    },
    "name": "plan_draft_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNo
titleNo
audienceNo
draft_idYes
subtitleNo
allow_unsupportedNo

Output Schema

NameRequiredDescriptionDefault
changesYes
receiptYes
preflightYes
editor_urlYes
limitationsYes
changed_fieldsYes
format_versionYes
scheduling_policyYes
unsupported_nodesYes
proposed_markdown_previewYes
markdown_preview_truncatedYes
scheduling_fields_not_returnedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed27 schema fields changedv1.4.0
    • removedInput schema / properties / subtitle / $ref
      Removed value: -"#/properties/title"
    • addedInput schema / properties / subtitle / maxLength
      Added value: +10000
    • addedInput schema / properties / subtitle / type
      Added value: +"string"
    • removedOutput schema / properties / changes / items / properties / after / $ref
      Removed value: -"#/properties/changes/items/properties/before"
    • addedOutput schema / properties / changes / items / properties / after / additionalProperties
      Added value: +false
    • addedOutput schema / properties / changes / items / properties / after / properties
      Added value: +{
      +  "characters": {
      +    "maximum": 9007199254740991,
      +    "minimum": 0,
      +    "type": "integer"
      +  },
      +  "preview": {
      +    "anyOf": [
      +      {
      +        "maxLength": 512,
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ]
      +  },
      +  "sha256": {
      +    "anyOf": [
      +      {
      +        "pattern": "^[a-f0-9]{64}$",
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ]
      +  },
      +  "truncated": {
      +    "type": "boolean"
      +  },
      +  "value_type": {
      +    "enum": [
      +      "string",
      +      "null"
      +    ],
      +    "type": "string"
      +  }
      +}
    • addedOutput schema / properties / changes / items / properties / after / required
      Added value: +[
      +  "value_type",
      +  "characters",
      +  "sha256",
      +  "preview",
      +  "truncated"
      +]
    • addedOutput schema / properties / changes / items / properties / after / type
      Added value: +"object"
    • addedOutput schema / properties / changes / items / properties / before / properties / characters / maximum
      Added value: +9007199254740991
    • changedOutput schema / properties / changes / items / properties / before / properties / sha256 / anyOf
      Previous value: -[
      -  {
      -    "$ref": "#/properties/receipt/properties/baseline_sha256"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "pattern": "^[a-f0-9]{64}$",
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedOutput schema / properties / changes / items / properties / field / $ref
      Removed value: -"#/properties/changed_fields/items"
    • addedOutput schema / properties / changes / items / properties / field / enum
      Added value: +[
      +  "title",
      +  "subtitle",
      +  "body",
      +  "audience"
      +]
    • addedOutput schema / properties / changes / items / properties / field / type
      Added value: +"string"
    • removedOutput schema / properties / preflight / properties / draft_id / $ref
      Removed value: -"#/properties/receipt/properties/publication_id"
    • addedOutput schema / properties / preflight / properties / draft_id / exclusiveMinimum
      Added value: +0
    • addedOutput schema / properties / preflight / properties / draft_id / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / preflight / properties / draft_id / type
      Added value: +"integer"
    • removedOutput schema / properties / receipt / properties / draft_id / $ref
      Removed value: -"#/properties/receipt/properties/publication_id"
    • addedOutput schema / properties / receipt / properties / draft_id / exclusiveMinimum
      Added value: +0
    • addedOutput schema / properties / receipt / properties / draft_id / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / receipt / properties / draft_id / type
      Added value: +"integer"
    • addedOutput schema / properties / receipt / properties / observed_at / pattern
      Added value: +"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
    • removedOutput schema / properties / receipt / properties / payload_sha256 / $ref
      Removed value: -"#/properties/receipt/properties/baseline_sha256"
    • addedOutput schema / properties / receipt / properties / payload_sha256 / pattern
      Added value: +"^[a-f0-9]{64}$"
    • addedOutput schema / properties / receipt / properties / payload_sha256 / type
      Added value: +"string"
    • addedOutput schema / properties / unsupported_nodes / items / properties / column / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / unsupported_nodes / items / properties / line / maximum
      Added value: +9007199254740991
  2. Added

TDQS

A3.8/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true, and the description confirms 'No writes' without contradiction. Beyond that it discloses substantive behavior: outputs are bounded previews, conversion losses and preflight results are surfaced, hashes verify consistency rather than human approval, and stale detection is best-effort rather than atomic — exactly the caveats an agent needs before treating the receipt as authoritative.

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?

Four tight sentences, front-loaded with the read-and-review action and followed by the return value and caveats; little waste. The noun list 'bounded previews, conversion losses and preflight' is compressed to the point of being under-explained, which slightly hurts first-pass comprehension.

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

Completeness3/5

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

The output schema exists, so the receipt contents need not be described, and the annotation plus description together cover safety and caveats well. However, for a six-parameter tool with zero schema description coverage and overlapping read/preflight siblings, the description leaves the parameter semantics and sibling routing underspecified.

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% across six parameters, so the description must carry the load. It frames the parameters collectively as 'proposed Markdown/metadata changes', which maps loosely to body/title/subtitle/audience, and 'conversion losses' hints at the role of allow_unsupported, but no individual parameter is explained and the semantics of allow_unsupported remain unclear.

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?

States a specific verb and resource: read an unpublished draft and review proposed Markdown/metadata changes, returning a receipt for update_draft. This clearly separates it from the mutating update_draft sibling ('No writes'). It does not distinguish itself from the sibling preflight_draft or get_draft, which appear to overlap with its preview/read role.

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?

Usage context is implied rather than stated: 'unpublished draft' scopes the target and the receipt 'for update_draft' implies this precedes an update. There is no explicit instruction such as 'call before update_draft' or a statement of when to choose preflight_draft or get_draft instead, leaving routing to inference.

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