Skip to main content
Glama

Restore a document from the Trash (deprecated)

restore_diagram

Deprecated: use restore_document instead; this name is removed on 2027-04-30. It takes the same input as restore_document.

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
idYesThe document id.
urlYesLink that opens the document in the livediagram editor.
nameYesThe restored document name, or null if unknown.
restoredYesAlways "document": tabs have no Trash.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +{}
    • removedInput schema / properties / documentId
      Removed value: -{
      -  "description": "The document to restore (from list_trash).",
      -  "type": "string"
      -}
    • removedInput schema / required
      Removed value: -[
      -  "documentId"
      -]
  2. Changed8 schema fields changed
    • removedInput schema / properties / diagramId
      Removed value: -{
      -  "description": "The diagram to restore (from list_trash).",
      -  "type": "string"
      -}
    • addedInput schema / properties / documentId
      Added value: +{
      +  "description": "The document to restore (from list_trash).",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "diagramId"
      -]New value: +[
      +  "documentId"
      +]
    • changedOutput schema / properties / id / description
      Previous value: -"The diagram id."New value: +"The document id."
    • changedOutput schema / properties / name / description
      Previous value: -"The restored diagram name, or null if unknown."New value: +"The restored document name, or null if unknown."
    • changedOutput schema / properties / restored / const
      Previous value: -"diagram"New value: +"document"
    • changedOutput schema / properties / restored / description
      Previous value: -"Always \"diagram\": tabs have no Trash."New value: +"Always \"document\": tabs have no Trash."
    • changedOutput schema / properties / url / description
      Previous value: -"Link that opens the diagram in the livediagram editor."New value: +"Link that opens the document in the livediagram editor."
  3. First observed

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and openWorldHint=false, so the safety profile is covered and nothing here contradicts it. The description adds the useful facts that it is an alias scheduled for removal and that it accepts the same input as restore_document, but it says nothing about what restoring actually does (e.g. where the item reappears, side effects on shared links).

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?

One sentence, front-loaded with 'Deprecated', followed immediately by the replacement and the deadline. Every clause earns its place and there is no filler.

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

Completeness4/5

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

An output schema exists, so return values need no explanation, and for a zero-parameter deprecated alias the description covers the decisions an agent must make. The only omission is a plain-language restatement of the operation, which the name and title already supply.

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 schema declares zero parameters at 100% coverage, so the baseline is 4. The note that it 'takes the same input as restore_document' adds a small but real pointer for an agent that knows that tool's signature.

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 never states the operation in its own words; the purpose is carried by the name/title ('Restore a document from the Trash'). It does, however, unambiguously distinguish itself from the sibling restore_document by declaring itself a deprecated alias, so an agent can route correctly without opening the schema.

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

Usage Guidelines5/5

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

It explicitly names the alternative ('use restore_document instead') and gives the removal date (2027-04-30), which is exactly the when-not-to-use and replacement guidance an agent needs. Nothing is left to inference.

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