Skip to main content
Glama

Update document

update_document
Idempotent

Partially update a document's metadata — only provided fields change. Does not touch the underlying file; to replace a file's content, upload a new document and set supersedes_id to the old one's id, then archive the old one.

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": "update_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
notesNo
titleNo
statusNo
agent_idNo
categoryNo
entity_idNo
project_idNo
source_urlNo
descriptionNo
document_idYes
entity_typeNo
supersedes_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly=false, idempotent=true and destructive=false; the description adds genuinely new behavior beyond them, namely patch-style partial mutation and the guarantee that the underlying file is untouched. It stops short of stating permission requirements or clarifying that "archive the old one" is itself performed by calling this tool with status=archived, which is left implicit.

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?

Two sentences, zero waste, and the patch-semantics constraint is front-loaded before the alternative-workflow sentence. Every clause carries information an agent needs to pick the right operation.

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?

The description is complete on the operation's core semantics and the replacement path, which is the main risk an agent would stumble into. However, for a 12-parameter tool with no schema descriptions and no output schema, it leaves the majority of parameters opaque, so an agent cannot confidently populate fields such as entity_type/entity_id or agent_id from this definition.

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 0% across 12 parameters, so the description carries the full burden and largely does not: title, notes, category, agent_id, entity_id, entity_type, project_id, source_url and description get no explanation at all. Only supersedes_id and the archive status get any semantic context, and that appears in the context of a different upload workflow rather than this tool's parameters.

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 precise verb scope ("partially update") plus the resource boundary ("a document's metadata"), which immediately separates it from content-upload operations like add_document or finalize_document_upload. It never names a sibling tool by name, so it sits just below the top mark despite the operation class being unmistakable.

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 clear when-to-use rule ("only provided fields change", i.e. patch semantics) and an explicit when-not rule with the alternative workflow spelled out: replacing file content means uploading a new document, pointing supersedes_id at the old id, and archiving the old record. The guidance is strong but is expressed as a workflow rather than named tools, and no exclusions for delete_document or get_document are stated.

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