Skip to main content
Glama
Context-MCP Document Server

Context-MCP Document Server

by lxgbrl

update_document

Update a document's title or tags without altering its content. Use it to revise metadata while keeping the original file body unchanged.

Instructions

Update document metadata (title, tags) without changing content

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
idYesDocument ID
tagsNoNew tags (replaces existing tags)
titleNoNew title

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does usefully disclose that document content is left untouched, but it says nothing about permissions, what happens to fields omitted from the call (partial vs. full update), or behavior when the id does not exist.

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?

A single front-loaded sentence with zero filler; the scope constraint is stated immediately after the action, so nothing needs to be skimmed for.

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 simple three-parameter mutation with full schema coverage and no output schema, the essentials are present: what changes, which fields, and that content is preserved. What keeps it short of complete is the absence of partial-update semantics and any note on required permissions or failure modes.

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 the schema already documents that tags replaces existing tags while title is simply the new title. The description only echoes the field list and adds no format, length, or replacement nuance beyond that baseline.

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 (update), a specific resource subset (document metadata), enumerates the affected fields (title, tags), and draws an explicit boundary against content changes. An agent can immediately tell this apart from add_document, delete_document, or a hypothetical content-editing tool.

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

Usage Guidelines3/5

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

The phrase 'without changing content' implicitly signals when to reach for this tool (metadata-only edits) rather than a content write, but no sibling is named and there is no explicit 'use X instead when...' routing. Guidance is inferable rather than stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.