Skip to main content
Glama

Kiescy Documents

Update a document

update_document

Changes a draft and saves a new version (never publishes). Set answers (only the ones you change), switch template, or replace the text with your own Markdown (for imported or custom documents). Significant answers are refused until you pass the user's explicit confirmation in confirmed. Returns what changed and which other documents may need the same change.

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

Input Schema

NameRequiredDescriptionDefault
noteNoWhy this change was made, shown in the version history
typeYes
answersNoQuestion id → new answer
templateNo
confirmedNoIds of answers the user explicitly confirmed in this conversation
content_markdownNoFull document text in Markdown. Switches the document to own text.
use_questionnaireNoSwitch an own-text document back to the generated version

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the readOnlyHint=false / destructiveHint=false annotations: it discloses that a new version is created rather than the document being replaced, that publishing never happens here, that significant answers are refused without confirmation, and that the response reports what changed plus which other documents may need the same change.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tight sentences, front-loaded with the verb and the critical 'never publishes' constraint. Every clause carries information an agent would otherwise have to guess, and the parentheticals are used for qualifications rather than filler.

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?

Covers the mutation's safety profile, the confirmation gate, and the return payload, which is substantial for a 7-parameter tool with a nested answers object. The one missing piece is where valid answer ids come from (presumably get_document_setup), which an agent must know before it can populate answers meaningfully.

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 71% schema coverage the baseline is around 3, and the description adds real meaning: 'only the ones you change' clarifies that answers is a partial patch, confirmed is tied to the user's explicit approval in this conversation, and content_markdown 'switches the document to own text'. It leaves note and the type enum to the schema, which already documents them adequately.

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, saves a new version) and immediately bounds the scope with '(never publishes)', which cleanly separates it from publish_document and create_document in the sibling list. It also enumerates the three concrete modes of change: setting answers, switching template, or replacing text with Markdown.

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 concrete when-to-use context — answers mode for questionnaire documents, content_markdown 'for imported or custom documents', use_questionnaire to revert own-text documents — and clarifies the precondition that significant answers need the user's explicit confirmation. It never names an alternative tool to use for the publish path, which is the only gap.

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