Skip to main content
Glama

Restore a deleted item

restore_item

Brings back an item from Recently deleted (ids from recently_deleted), with its photos, documents, warranties and maintenance. Use it when the person wants a deleted thing back within 30 days.

Instructions

Brings back an item from Recently deleted (ids from recently_deleted), with its photos, documents, warranties and maintenance. Use it when the person wants a deleted thing back within 30 days. If its place or box was removed meanwhile, it comes back without one — update_item can put it somewhere. Returns the restored item's id and name.

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": {
      "id": "<id>"
    },
    "name": "restore_item"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe deleted item's id, from recently_deleted

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.1
    • addedInput schema / properties / id / description
      Added value: +"The deleted item's id, from recently_deleted"
  2. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only declare readOnly=false and destructive=false; the description goes further by disclosing the cascade behavior (photos, documents, warranties and maintenance come back too), the 30-day recovery window, and the edge case where a deleted location or box causes the item to return unplaced. It also states the return payload (id and name) despite there being no output schema.

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?

Three tight sentences: the what and cascade first, the usage condition second, the edge-case recovery and follow-up third. No filler, and the most decision-relevant information is front-loaded.

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 mutation with no output schema, the description covers the action, its side effects on related records, the eligibility window, the degraded-location outcome, the follow-up tool, and the return shape. An agent could call this correctly without opening anything else.

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?

Schema coverage is 100% and the single 'id' parameter already documents 'The deleted item's id, from recently_deleted.' The description repeats that same provenance hint ('ids from recently_deleted') without adding format, lookup, or error semantics, so the schema is doing the heavy lifting.

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?

States a specific verb and resource ('Brings back an item from Recently deleted') and immediately scopes the input source by naming the sibling recently_deleted. It also enumerates what is restored along with the item (photos, documents, warranties, maintenance), which distinguishes it from generic update tools.

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?

Explicit when-to-use condition: 'Use it when the person wants a deleted thing back within 30 days.' It also routes the agent onward, naming update_item as the tool to reassign a restored item whose place/box was removed. It stops short of an explicit when-not case (e.g. items past the 30-day purge window), so not a full 5.

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