Skip to main content
Glama

Update document

update_document
Idempotent

Update a document by id (only provided fields): name, description, folder, visibility, status, review date.

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

Input Schema

NameRequiredDescriptionDefault
idYes
nameNo
statusNoactive|archived|deleted
folder_idNo
visibilityNopublic|internal|restricted
descriptionNo
review_due_atNoISO timestamp
target_tenant_idNoPlatform super-admins only: operate on this tenant instead of your own.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3/5.0
Behavior3/5

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

Annotations already declare readOnly=false, destructive=false and idempotent=true, so the safety profile is partly covered, and the description adds that unlisted fields are left untouched. However, it says nothing about permission requirements, that status='deleted' is effectively a soft-delete despite destructiveHint=false, or that target_tenant_id performs a cross-tenant operation — the riskiest behavior is left undisclosed.

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 compact sentence with the resource and id requirement front-loaded, followed by the partial-update guarantee and field list. There is no filler, though the field list is arguably redundant given the schema.

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 an 8-parameter mutation tool with no output schema, the definition covers the core update contract but leaves gaps an agent needs: cross-tenant scope, permission requirements, and the effect of setting status to 'deleted'. It is adequate for the common case but not complete for the risky ones.

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?

Schema description coverage is only 50%, so the description needs to compensate, but it merely restates field names in prose and drifts from the schema ('folder' vs folder_id, 'review date' vs review_due_at). Most importantly, the super-admin-only target_tenant_id parameter is omitted entirely, leaving the single most consequential parameter explained only by a terse schema note.

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?

The description uses a specific verb+resource ('Update a document by id') and states the partial-update semantics ('only provided fields'), which lets an agent distinguish it from create/get/delete siblings. It does not explicitly differentiate from sibling mutators such as move_document or update_document_folder, so it stops short of a 5.

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 routing to alternatives. With siblings like move_document and update_document_folder in the catalog, the agent must guess whether a folder change belongs here or in a dedicated tool; the definition neither confirms nor rules this out.

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