Skip to main content
Glama

edit_article_draft

DestructiveIdempotent

Edit an article draft before review. expectedUpdatedAt is required for optimistic concurrency. Only supplied article fields are changed. Returns the updated draft with a new updatedAt. CAPABILITY: draft: creates content that cannot reach an audience on its own. Safe for a draft-only agent token.

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>",
      "expectedUpdatedAt": "<expectedUpdatedAt>"
    },
    "name": "edit_article_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagsNoReplacement tag list. Omit to keep the current tags.
titleNoNew article title. Omit to keep the current one.
excerptNoNew short summary shown in listings and meta description. Omit to keep the current one.
draft_idYesArticle draft id, from the draft creation or list result.
bodyMarkdownNoFull replacement article body in Markdown. Omit to keep the current body.
expectedUpdatedAtYesThe updatedAt value from the latest read_article_draft result. The call is refused if the draft changed since, so re-read and retry.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / bodyMarkdown / description
      Added value: +"Full replacement article body in Markdown. Omit to keep the current body."
    • addedInput schema / properties / draft_id / description
      Added value: +"Article draft id, from the draft creation or list result."
    • addedInput schema / properties / excerpt / description
      Added value: +"New short summary shown in listings and meta description. Omit to keep the current one."
    • addedInput schema / properties / expectedUpdatedAt / description
      Added value: +"The updatedAt value from the latest read_article_draft result. The call is refused if the draft changed since, so re-read and retry."
    • addedInput schema / properties / tags / description
      Added value: +"Replacement tag list. Omit to keep the current tags."
    • addedInput schema / properties / title / description
      Added value: +"New article title. Omit to keep the current one."
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, but the description adds real context beyond them: partial-update semantics ("Only supplied article fields are changed"), the optimistic-concurrency refusal/retry behavior, the return value (updated draft with new updatedAt), and an authorization note that the draft capability "cannot reach an audience on its own." It could go further by warning that bodyMarkdown is a full replacement rather than a merge.

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 short sentences, front-loaded with purpose and the required concurrency token before the capability footer. The CAPABILITY block is slightly jargon-heavy but carries genuine safety information, so almost nothing is wasted.

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 6-parameter mutation with no output schema, the description covers the mutation model, the failure mode, the return value, and the authorization scope. The main residual gap is that it does not flag the destructive overwrite of bodyMarkdown despite destructiveHint=true.

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 100%, so every parameter including expectedUpdatedAt and draft_id is already documented in structured form. The description reinforces the concurrency contract and the omit-to-keep behavior but adds no syntax, format, or constraint detail beyond 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?

States a specific verb and resource ("Edit an article draft") and adds a lifecycle qualifier ("before review") that separates it from review/approve/reject siblings. It does not explicitly name the closest sibling, update_article, so an agent must infer that this is the pre-publication editor.

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?

"Before review" implies the usage window and the concurrency note implies a read-then-edit workflow, but there is no explicit when-not guidance or named alternative (e.g., use update_article for published articles). Usage is inferable rather than stated.

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.