Skip to main content
Glama

Pinpal Jobs

Update a document

update_document
Destructive

Change a draft's content (title, lines, taxLines, body, footer, currency, dates, client), or a document's labels or memo at any status. A sent document's content is locked: use new_version for a quote or contract, copy_document to redo an invoice. A note alone is posted to the thread.

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

Input Schema

NameRequiredDescriptionDefault
bodyNo
memoNoReplaces the person's private memo (Markdown): never printed, never on the link. Any status.
noteNo
linesNoThe priced lines. The server computes the amounts, the subtotal, the tax and the total.
titleNo
clientNoMove a draft to another client.
footerNo
labelsNoReplaces the document's labels with exactly these.
dueDateNo
currencyNo
documentYesThe document's id (from list_documents), or its number once sent, like INV-0007.
taxLinesNoTax lines on the subtotal. Omit to use the settings' default; [] for none.
issueDateNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, but the description adds value beyond them: the immutability of sent document content, the field-group branching, the note-only side effect on the thread, and that memo is never printed or exposed on the link. What's missing is whether non-specified fields are preserved or cleared (partial vs. full replacement) and how the note interacts with other content changes.

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 sentences, front-loaded with the capability, then the restrictions and the fallback tools. Dense but no wasted words; the lock rule precedes the alternative-tool routing, which is the correct reading order.

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 13-parameter destructive mutation with no output schema, the description does the important work: it explains the draft-vs-sent gating, the replacement of labels/memo, and where notes go. Remaining gap is the absence of any statement about partial-update semantics or what the call returns, though no output schema exists to cover that.

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 46%, so the description should carry more weight; it does add semantics for memo ('never printed, never on the link'), note (posted to thread), and enumerates the content fields. However, several parameters (document id, dates, currency, lines quantity/unitPrice) get no elaboration beyond what the schema already says, so it only partially compensates for the coverage gap.

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 (change/update) plus the exact resources it touches: a draft's content fields, a document's labels, and its memo, with the status condition ('at any status') called out. It also names two siblings (new_version, copy_document) and the precise situations that select them, so an agent can tell it apart from other document operations 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 Guidelines5/5

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

Explicit routing: locked content on sent documents, use new_version for quotes/contracts, copy_document to redo an invoice, and a note alone goes to the thread. Both when-to-use and when-not-to-use are covered with named alternatives and the deciding condition.

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