Skip to main content
Glama

update_article

Edits an article's title, content, or active/archived status; content writes require a baseContentHash and are rejected on conflicts to prevent overwriting concurrent changes.

Instructions

Update an article's title, content, or status ('archived' takes it off the shelf without deleting it; 'active' brings it back). Writing content requires a baseContentHash — the one get_article returned for the version you edited. It is remembered automatically after get_article or create_article in this session; pass it explicitly otherwise. If someone else changed the prose since your version, the write is rejected as a conflict rather than overwriting their words. Creader checks this on the server where its article guard is deployed, which closes the race; until it is everywhere, this tool also re-reads the article just before writing, and on a deployment without the guard an edit that lands in the instant between that re-read and the write can still be overwritten. Owner only.

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"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleNo
statusNo
contentNoHTML content — replaces the whole article
articleIdYesArticle ID
baseContentHashNobaseContentHash from get_article for the version this edit is based on

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.11.1

TDQS

A4.5/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=false, openWorldHint=true) by disclosing conflict rejection on concurrent edits, the server-side guard that closes the race, a residual overwrite window on unguarded deployments, and the automatic caching of baseContentHash after get_article/create_article. That is exactly the kind of risk and statefulness disclosure a mutating tool needs, and it is consistent with destructiveHint=false since archived is non-destructive.

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?

Well front-loaded: capability first, then status semantics, then the hash requirement, then concurrency. The deployment-guard sentence is long and somewhat tutorial-like for a tool definition, though it does earn its place as behavioral disclosure. Trimming the race-window detail would improve density without losing decision-relevant information.

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 5-param mutation tool with no output schema, the description covers permissions, concurrency, conflict behavior, and the required hash. It never says what a successful call returns or which fields are echoed back, which is the main remaining gap given there is no output schema to fall back on.

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?

At 60% schema coverage the description carries real weight: it explains the provenance of baseContentHash, that it is auto-remembered in-session, and the semantics of the status enum. It adds nothing about articleId beyond the schema's 'Article ID', and title's 300-char limit is left to the schema, so it is not fully compensatory.

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?

Opens with a specific verb+resource and enumerates the mutated fields (title, content, status) plus the meaning of each status value. The parenthetical 'takes it off the shelf without deleting it' implicitly separates this from delete_article in the sibling list, so an agent can route without opening schemas.

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 clear prerequisites: 'Owner only', and content writes require a baseContentHash obtained from get_article. It also tells the agent the archive-vs-delete choice. What it lacks is an explicit statement of when not to call it (e.g. use delete_article for permanent removal, or create_article for new drafts) beyond the archived hint.

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