Skip to main content
Glama

Update document

update_document
DestructiveIdempotent

Replaces the Markdown body and/or title/description of a document. The previous version is kept as a revision. A published document changes publicly at once. On this account a published document is changed only with user_approved set to true.

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": {
      "slug": "<slug>"
    },
    "name": "update_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
langNoLanguage code, e.g. en, pl. Defaults to the site language.
siteNoSite domain, e.g. example.com. Optional when the account has one site.
slugYesDocument slug
titleNo
markdownNo
descriptionNo
user_approvedNoTrue only after the user has seen this exact change in the chat and agreed to it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / user_approved
      Added value: +{
      +  "description": "True only after the user has seen this exact change in the chat and agreed to it.",
      +  "type": "boolean"
      +}
  2. Changed2 schema fields changed
    • changedInput schema / properties / site / description
      Previous value: -"Site domain, e.g. example.com (see list_sites). Optional when the account has one site."New value: +"Site domain, e.g. example.com. Optional when the account has one site."
    • changedInput schema / properties / slug / description
      Previous value: -"Document slug (see list_documents)"New value: +"Document slug"
  3. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Beyond the annotations (readOnly=false, destructive=true, idempotent=true), the description adds three valuable facts: the previous version is preserved as a revision, edits to a published document go live publicly at once, and this account requires user_approved=true. It still doesn't say how to recover or roll back a revision.

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, each conveying distinct information: the action, revision retention, public visibility, and the approval precondition. It is front-loaded and free of filler, though the final approval sentence could state more precisely when user_approved=true becomes mandatory.

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 destructive, mutation-only tool with no output schema, the description covers the important consequences: revisions are kept, public changes take effect immediately, and the approval gate applies. Minor gaps remain: no description of the response, and no guidance on how to change only metadata.

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 coverage is 57%; the description explains only that title/description/markdown are the fields being replaced, which is already implied by the schema. It adds nothing for slug, lang, or site, and it doesn't explain how to omit markdown to perform a metadata-only update. Baseline 3 fits, since the schema carries most of the meaning.

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?

The description opens with a specific verb and resource: 'Replaces the Markdown body and/or title/description of a document.' It also clarifies the scope of the change (body and/or metadata), which separates it from create_document and publish_document activities without needing their schemas.

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?

It implies when to use the tool (modifying an existing document, especially a published one), but it never names an alternative such as create_document for new content or publish_document for visibility changes. The guidance is present but is inferred rather than explicit.

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.