Skip to main content
Glama
mcp-document-intelligence

mcp-document-intelligence

rename_document

Rename local documents safely with collision protection and undo tracking, using original path and desired filename to prevent overwrites and enable reversal.

Instructions

Safely rename a document with collision protection and undo tracking.

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": {
      "originalPath": "<originalPath>",
      "newName": "<newName>"
    },
    "name": "rename_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
newNameYesDesired new filename (e.g. '2024-01-01_Invoice.pdf')
originalPathYesAbsolute path of the file

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.6.0

TDQS

B3.3/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 burden. It does disclose two valuable traits beyond the schema: collision protection (it will not silently overwrite) and undo tracking (the change is reversible, presumably via undo_operation). It does not say what actually happens on a collision (error vs. auto-suffix), what permissions are needed, or whether renaming can move a file across directories — meaningful gaps for a mutation tool.

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 safety traits are packed into the same clause as the action rather than buried later.

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 a two-parameter mutation with no annotations and no output schema, the description covers the safety profile but not the outcome: it says nothing about the return value (new path?), error behavior on collision, or how the undo entry is consumed. An agent can call it, but cannot predict the result shape.

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 both parameters carry inline descriptions including an example filename and the 'absolute path' constraint, so the schema does the heavy lifting. The description adds nothing about the parameters — notably it never clarifies that newName is a bare filename rather than a path, which is exactly the confusion an agent could hit. Baseline 3 applies.

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 ('rename a document'), so the operation is immediately identifiable. It does not differentiate itself from the sibling smart_rename or explain how it relates to move_document, which are the closest overlapping tools.

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 named alternative. With siblings like smart_rename and move_document present, the agent is left to guess which rename path applies; only the phrase 'collision protection' hints at a use case (renaming into an occupied namespace).

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