Skip to main content
Glama

Edit an article draft

update_article_draft
DestructiveIdempotent

Changes a draft article of the signed-in person's: only the fields given, the rest stay. Published articles can't be changed here. A new body replaces the whole body. For search: the title is the page's search title, so keep it to 60 characters with the phrase people search for first; the subtitle is its search description, so make it one sentence of 120 to 160 characters saying what the reader gets; open with a paragraph that answers the title; give the body ## headings (they build the contents) and 300+ words; link to related Shipfolio pages. searchHints in the result says what this draft could still change. The article is saved as a draft only: nothing is published. The author reviews it, adds a cover image or data embeds and publishes it in the Shipfolio editor at editUrl. Needs the write scope. Before calling, show the user exactly what will change and wait for them to confirm.

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": {
      "articleId": "<articleId>"
    },
    "name": "update_article_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoThe whole new body in Markdown, at most 40,000 characters
titleNoA new headline and search title: 60 characters or fewer shows in full on Google, at most 120
subtitleNoA new one-sentence standfirst, used as the search description: 120 to 160 characters, at most 240
articleIdYesThe article's id, from create_article_draft or list_my_articles
nicheTagsNoReplaces the niches: up to 3 slugs from list_niches

Output Schema

NameRequiredDescriptionDefault
idYes
urlYes
titleYes
statusYes
editUrlYes
productYes
subtitleYes
nicheTagsYes
wordCountYes
publishedAtYes
searchHintsYes
publishesLeftYes
readingMinutesYes
allowanceResetsAtYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / subtitle / description
      Previous value: -"A new standfirst, at most 240 characters"New value: +"A new one-sentence standfirst, used as the search description: 120 to 160 characters, at most 240"
    • changedInput schema / properties / title / description
      Previous value: -"A new headline, at most 120 characters"New value: +"A new headline and search title: 60 characters or fewer shows in full on Google, at most 120"
    • addedOutput schema / properties / searchHints
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "id",
      -  "title",
      -  "subtitle",
      -  "status",
      -  "product",
      -  "wordCount",
      -  "readingMinutes",
      -  "nicheTags",
      -  "publishedAt",
      -  "url",
      -  "editUrl",
      -  "publishesLeft",
      -  "allowanceResetsAt"
      -]New value: +[
      +  "id",
      +  "title",
      +  "subtitle",
      +  "status",
      +  "product",
      +  "wordCount",
      +  "readingMinutes",
      +  "nicheTags",
      +  "publishedAt",
      +  "url",
      +  "editUrl",
      +  "publishesLeft",
      +  "allowanceResetsAt",
      +  "searchHints"
      +]
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Goes well past the annotations (readOnlyHint=false, destructiveHint=true, idempotentHint=true) by explaining what is actually replaced: a new body replaces the whole body, nicheTags replaces the niches, while unmentioned fields stay untouched. It also discloses that the result is draft-only (nothing published), that a write scope is required, and that the response carries searchHints and editUrl. The partial-update framing softens the destructive hint without contradicting it.

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-loads the operational core — what changes, what can't, and the body-replacement rule — before the style guidance. It is dense but long, and the sentence about searchHints in the result is redundant given an output schema exists; the SEO/style block, while useful, could be tightened.

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

Completeness5/5

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

For a 5-parameter mutation with an output schema already covering return values, this covers the remaining gaps: auth scope, draft-only outcome, destructive replacement semantics, the human confirmation gate, and the downstream editor workflow. Nothing an agent needs to call it safely is missing.

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 coverage is 100%, so the baseline is 3, but the description adds real semantic meaning: title is the page's search title (60-character visible limit, search phrase first) and subtitle is the search description (one sentence, 120–160 characters). It also constrains body content structure (answer paragraph first, ## headings, 300+ words) beyond the schema's plain length limits.

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 ('Changes a draft article') plus precise scope: partial update ('only the fields given, the rest stay') and an explicit boundary ('Published articles can't be changed here'). An agent can distinguish this from create_article_draft or the published-article flow 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 Guidelines5/5

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

Gives explicit when-not ('Published articles can't be changed here'), the alternative publishing path (the Shipfolio editor at editUrl, where the author adds cover images or embeds), and a hard pre-call protocol: show the user exactly what will change and wait for confirmation. Nothing about selection or sequencing 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.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources