Skip to main content
Glama

restore_document

Idempotent

Retrieves an accidentally deleted document from the trash and restores it to active status within 30 days.

Instructions

Recovers a document from the trash back to active status.

Use this tool when you need to:

  • Retrieve accidentally deleted documents

  • Restore documents from trash to active use

  • Recover documents deleted within the last 30 days

  • Access content that was previously trashed

Args: document_id: The document ID to restore

Returns: Result message confirming restoration

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
document_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Annotations indicate idempotentHint=true, and the description adds context about restoring from trash within the last 30 days and accessing previously trashed content. No contradictions, and adds non-obvious details.

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?

The description is well-structured with a clear overview and bullet points for use cases. Each sentence adds value, no fluff or redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single-parameter tool with straightforward functionality, the description covers purpose, usage guidance, return value (via output schema), and behavioral constraints. It is complete for the complexity level.

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?

Input schema has one parameter with no description. The description simply restates it as 'The document ID to restore'. With 0% schema coverage, this adds minimal value beyond the schema.

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?

The description clearly states the tool's action ('Recovers a document from the trash back to active status') and specifies the resource (document). It is distinct from siblings like 'delete_document', 'archive_document', and 'unarchive_document'.

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

Usage Guidelines4/5

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

The description explicitly lists use cases (retrieve accidentally deleted, restore from trash, etc.), providing clear context. It does not explicitly state when not to use it, but the purpose is well-defined.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/fastmcp-me/mcp-outline'

If you have feedback or need assistance with the MCP directory API, please join our Discord server