Skip to main content
Glama

Restore Item

restore_item
Idempotent

Restores items from the Trash back into the library. Takes the item ids of delete_item or list_trash (at most 50 per call). Every id is reported: restored (it was in the Trash and is back), already_active (it was never trashed) or not_found (it does not exist: it belongs to somebody else or it was purged for good).

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

Input Schema

NameRequiredDescriptionDefault
item_idsYesThe trashed item ids to restore (at most 50).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations cover the safety profile (non-read-only, idempotent, non-destructive), and the description adds real value on top: a per-id outcome taxonomy (restored / already_active / not_found) that explains idempotency in practice and tells the agent that some ids will silently not be restored. It stops short of describing permission requirements explicitly or whether restoring affects collections/tags.

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?

Three tight sentences, front-loaded with the action, then constraints, then outcomes. The 'at most 50 per call' clause and the 'it was in the Trash and is back' gloss mildly duplicate the schema and the previous sentence, but the overall shape is efficient.

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?

With one parameter, full schema coverage, no output schema, and safety annotations supplied, the description closes the remaining gaps by enumerating exactly what each returned id can mean. Nothing an agent needs in order to call this correctly and interpret the result is missing.

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 item_ids array is already documented in the schema. The description reinforces the 50-id cap and the provenance of the ids, but adds no new format or sizing detail beyond the schema — the baseline 3 applies.

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 with scope: 'Restores items from the Trash back into the library.' It also names the sibling tools whose ids it consumes (delete_item, list_trash), so an agent can distinguish it from delete and list operations without opening a schema.

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?

It tells the agent where the required ids come from (delete_item or list_trash) and gives a hard constraint of at most 50 per call. What's missing is an explicit negative case, e.g. what to do for items not in Trash or how to handle not_found results on retry, though the outcome list implies the expected situations.

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.