Skip to main content
Glama

document-restore

DestructiveIdempotent

Restore a previously archived document.

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": {
      "documentId": "<documentId>"
    },
    "name": "document-restore"
  }
}

Input Schema

NameRequiredDescriptionDefault
documentIdYesThe document ID to restore

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and readOnlyHint=false, so the safety profile is covered. The description contributes the 'previously archived' precondition, which is genuine context, but says nothing about what state the document returns to, what is overwritten, error behavior on non-archived documents, or required permissions.

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?

A single front-loaded sentence with no filler or redundancy. Brevity is on the thin side for a destructive operation, but nothing is wasted and the key qualifier appears first.

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 one-parameter tool with full schema coverage and annotations carrying the safety hints, this is close to adequate. What is missing is behavioral payoff information – whether restore is reversible, what happens to the document's prior state, and how failures on non-archived documents surface.

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?

There is a single parameter and schema description coverage is 100%, with the schema already stating 'The document ID to restore'. The description adds no format, sourcing, or validation detail beyond that, so the schema does all the work and 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?

The description states a specific verb (restore) and resource (document) plus the scope qualifier 'previously archived', which implicitly separates it from the sibling document-archive. It never names an alternative tool, so it falls short of a 5, but an agent can still tell what this does and which direction it moves a document.

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?

Usage is implied by the phrase 'previously archived' – this applies to documents already in the archived state rather than active ones. There is no explicit when-not guidance, no mention of what happens if the document is not archived, and no reference to alternatives such as document-archive for the reverse direction.

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.

Resources