Skip to main content
Glama
mcp-document-intelligence

mcp-document-intelligence

undo_operation

Restore original filenames and locations by reverting the last batch of rename or move operations, helping recover from unwanted document organization changes.

Instructions

Undo the last batch of rename/move operations. Restores original filenames and locations.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "undo_operation"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.6.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It does disclose what the operation changes (filenames and locations restored) and that it is scoped to a single batch, which is useful, but it omits whether undo is itself reversible, whether it requires permissions, what happens when no prior operation exists, and how far back the history goes.

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 short sentences with no waste, with the action and its scope front-loaded ahead of the outcome. Nothing is repeated or padded.

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 zero-parameter mutation tool with no annotations and no output schema, the description covers the core action and result but leaves out error/empty-history behavior and whether the undo is single-level or repeatable. Complete enough to recognize the tool, but thin for a state-changing operation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool takes zero parameters, so there are no parameter semantics to explain; the schema being empty means the description is not required to compensate for anything. Baseline for a parameterless tool 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?

Names a specific verb ('Undo') and a specific resource/scope ('the last batch of rename/move operations'), and the second sentence clarifies the effect: original filenames and locations are restored. It is not explicitly contrasted with siblings like rename_document or batch_organize, but the undo semantics are distinct enough that an agent can distinguish it.

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 'last batch' implies the tool applies after a batch rename/move, which gives implicit usage context, but there is no explicit when-to-use guidance, no statement about what to do if there is no undo history, and no mention of alternatives.

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