Skip to main content
Glama
mcp-knowledge-base

mcp-knowledge-base

by shelldon0x

update_document

Modify an existing document and automatically reindex its content to keep local knowledge base search results current.

Instructions

Update an existing document and reindex if content changes.

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
titleNo
contentNo
metadataNo
document_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.7/5.0
Behavior2/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 a side effect—reindexing triggers when content changes—but omits permissions required, whether omitted fields are cleared (full replace vs partial update), reversibility, and what the call returns. For a mutation tool with zero annotation coverage, that leaves major gaps.

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?

One front-loaded sentence with no filler; the side-effect clause is placed where it is read early. Brevity tips into under-specification rather than padding, so it is efficient but thin.

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?

Given no annotations, no output schema, four undocumented parameters, and a nested object, the description is far too sparse. It states purpose and one side effect but leaves an agent unable to determine update semantics or parameter usage without guessing.

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 four parameters, including a nested metadata object with constrained value types. The description only alludes to 'content' and never explains title, metadata key/value semantics, or document_id expectations, so it fails to compensate for the schema gap.

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?

Names a specific verb and resource ('Update an existing document') and adds a concrete consequence ('reindex if content changes'). The update verb is clearly separable from the read/list/search/ingest/delete siblings, though the description never explicitly contrasts them.

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 or when-not-to-use guidance, no prerequisites, and no mention of alternatives such as ingest_document for new documents. Only the implicit signal that an existing document (required document_id) must already exist.

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