Skip to main content
Glama

Update document

update-document
DestructiveIdempotent

Update an existing document's content, title, tags, or folder.

WHEN TO USE:

  • To edit a policy document after reviewing it

  • To append notes to an existing memory document

  • To update tags or folder for organization

RETURNS: The updated document's metadata.

NOTES: Only provided fields are updated — omit fields you don't want to change. Content changes are re-indexed in OpenSearch.

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
tagsNoNew tags (omit to keep current)
titleNoNew title (omit to keep current)
folderNoNew folder (omit to keep current)
contentNoNew content (omit to keep current)
document_idYesDocument ID to update

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 destructiveHint=true and idempotentHint=true; the description adds genuine value on top by disclosing partial-update semantics ("only provided fields are updated") and the OpenSearch re-indexing side effect. What is missing is the destructive angle itself: it never says whether overwriting content is recoverable, versioned, or permanent, which is the one thing destructiveHint=true raises.

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?

Front-loaded with the core action, then cleanly sectioned into WHEN TO USE, RETURNS, and NOTES. Every line is informative and nothing is redundant, though the header markup is slightly heavier than the content warrants.

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 five-parameter mutation with no output schema, the definition covers the action, scenarios, return value (updated metadata), and partial-update mechanics. The remaining gap is behavioral consequence: what happens to the prior content and whether tags are replaced or merged when supplied.

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% and each property already carries an "omit to keep current" note, so the schema does the explanatory work. The description's partial-update statement largely restates that; the only added meaning is that content changes trigger re-indexing.

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 and resource ("Update an existing document") and enumerates the mutable fields (content, title, tags, folder), which clearly separates it from create-document and delete-document. It stops short of naming or contrasting any sibling explicitly, so it lands at clear-but-not-differentiating.

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?

The WHEN TO USE block gives three concrete scenarios (post-review edits, appending notes, reorganizing tags/folder), which is real context rather than an implied purpose. It offers no when-not-to-use guidance and does not point at alternatives such as delete-document or complete-document-upload for other workflows.

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.