Skip to main content
Glama

Update document

document_update
DestructiveIdempotent

Update document metadata (title / category / project filing).

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_id": "<document_id>"
    },
    "name": "document_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleNoNew title.
project_idNoProject to move the document into (id from project_list).
document_idYesId of one language version of a document (from document_list or document_create).
document_categoryNoCategory that tunes the prompts: general_document, legal, marketing or technical.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / document_category / description
      Added value: +"Category that tunes the prompts: general_document, legal, marketing or technical."
    • addedInput schema / properties / document_id / description
      Added value: +"Id of one language version of a document (from document_list or document_create)."
    • addedInput schema / properties / project_id / description
      Added value: +"Project to move the document into (id from project_list)."
    • addedInput schema / properties / title / description
      Added value: +"New title."
  2. First observed

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the description's job is to explain what that destruction means — e.g., whether moving a document to another project detaches it from its prior filing, or whether title/category changes are reversible. Instead it only restates the fields. It does not contradict the annotations, but it adds no behavioral context beyond them.

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?

A single front-loaded sentence with no filler. It is efficient, though its brevity borders on under-specification rather than tightness.

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

Completeness2/5

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

This is a destructive, non-read-only mutation with no output schema, so the description must carry the burden of explaining effects and permissions. It is silent on what happens to a document when it is re-filed into a different project, whether a partial update overwrites anything, and what a successful response contains — significant gaps for a destructive tool.

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 description coverage is 100%, so all four parameters are already documented, including the enumerated category values and the source of project_id. The description's field list ('title / category / project filing') maps onto those parameters without adding format, constraint, or side-effect detail, which is the baseline expectation when the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb ('Update') and resource ('document metadata') and enumerates the affected fields (title / category / project filing), so an agent can tell this apart from block_update or document_content_get. It lacks an explicit statement of how it differs from siblings like document_create or document_delete, but the scope is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

There is no when-to-use guidance, no prerequisites, and no mention of alternatives (e.g., document_create for new documents, block_update for content). The agent must infer the correct invocation context entirely from the tool name and schema.

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.