Skip to main content
Glama

Update draft document

update_draft_document
Idempotent

Update a Markdown source: its text, its plan-document settings, or its status draft → reviewed → final. 'final' is the actual submission-ready proposal — set only when a human has reviewed it. Changing the content does NOT re-render the PDF; call render_plan_document afterwards, otherwise the file at the tender is the older text.

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

Input Schema

NameRequiredDescriptionDefault
titleNo
statusNo
contentNo
variantNo
doc_kindNo
draft_idYes
sort_orderNo
is_internalNoInternal: the rendered PDF shows only in internal share links.
source_pathNo
document_dateNoJJJJ-MM-TT. Changing it changes the PDF.
letterhead_profile_keyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare the safety profile (readOnly false, idempotent true, non-destructive), and the description adds genuinely non-obvious behavior: content edits leave the rendered PDF stale until render_plan_document is called. The status lifecycle draft → reviewed → final is also disclosed. It stops short of generalizing the rule — a reader must infer whether other fields (variant, sort_order, title) also require a re-render, since only document_date's schema note addresses this.

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?

Three tight sentences, front-loaded with the resource and the what-can-be-changed enumeration before the status and re-render caveats. No filler; the only redundancy is mild between "its text" and the later "Changing the content."

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

Completeness3/5

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

For a mutation tool with no output schema, the description does the important work of flagging the stale-render side effect and the human-review gate on 'final'. But against 11 mostly undocumented parameters and no return-value indication (what comes back after an update, and whether the caller should verify), it leaves an agent guessing about half the surface it must fill in.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 11 parameters and only 18% schema description coverage, the description carries most of the burden, but it only touches content and status, plus a vague collective "plan-document settings." Eight parameters (title, variant, doc_kind, sort_order, is_internal, source_path, document_date, letterhead_profile_key) get no explanation in either place, and nothing indicates which of them trigger a re-render, which matters given the PDF-staleness warning.

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?

"Update a Markdown source" gives a specific verb plus resource, and the enumeration of the three mutable surfaces (text, plan-document settings, status) scopes the tool precisely. It is clearly the mutation-side counterpart to render_plan_document rather than a creation or rendering tool, so an agent can distinguish it from siblings without opening the schema.

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?

It gives a concrete conditional rule for the risky state ("'final' is the actual submission-ready proposal — set only when a human has reviewed it") and names the required follow-up call (render_plan_document) with the consequence of skipping it. It does not, however, contrast with create_draft_document or say what conditions make an update preferable to a create, so guidance is strong but not complete.

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