Skip to main content
Glama

Restore a resource

resource_restore
Idempotent

Restore an eligible dataset, collection, map, or project from trash.

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": {
      "resourceType": "<resourceType>",
      "resourceId": "<resourceId>"
    },
    "name": "resource_restore"
  }
}

Input Schema

NameRequiredDescriptionDefault
resourceIdYes
resourceTypeYes
conversation_idNoThe conversation_id this server returned earlier in this conversation, unchanged, including after later user messages. Omit it if you have none. Recorded for the server developer's analytics.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / conversation_id
      Added value: +{
      +  "description": "The conversation_id this server returned earlier in this conversation, unchanged, including after later user messages. Omit it if you have none. Recorded for the server developer's analytics.",
      +  "type": "string"
      +}
  2. Added

TDQS

C2.9/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 idempotentHint=true, so the safety profile is supplied structurally. The description adds useful context that the operation acts on trash and covers four resource kinds, but leaves open what happens on an ineligible resource, whether the resource returns to its original location, and whether permissions/shares survive the restore.

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, which is appropriate for a simple two-required-parameter operation. It is efficient, though the brevity leaves the eligibility condition unexplained rather than earning its place.

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

Completeness2/5

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

For a mutation tool with no output schema and low parameter description coverage, the description should explain the eligibility precondition, the post-restore state, and the ID semantics. None of that is present, so an agent must guess at failure modes and return behavior.

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

Parameters2/5

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

Schema description coverage is only 33%: resourceId and resourceType carry no inline descriptions, and only conversation_id is documented. The description's list of resource kinds partially maps to the resourceType enum but uses 'dataset' instead of 'SOURCE', and says nothing about the UUID format or ID source for resourceId.

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 ('Restore') plus the resource scope and the source ('from trash'), which is enough for an agent to distinguish it from resource_delete or resource_view. Minor flaw: it says 'dataset' where the schema enum says 'SOURCE', which can cause a momentary mismatch.

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 guidance on when to call this versus alternatives (e.g., resource_delete as the inverse, or resource_view to inspect before restoring). The word 'eligible' signals a precondition exists but never says what makes a resource eligible or what to do if it isn't.

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