Skip to main content
Glama

restore_item

Idempotent

Bring soft-deleted items back. Example: id="".

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
idYesItem ID or array of IDs
reasonNoWhy, for the change history

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / id / description
      Previous value: -"Item ID or array of item IDs to restore"New value: +"Item ID or array of IDs"
    • changedInput schema / properties / id / oneOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "items": {
      -      "type": "string"
      -    },
      -    "type": "array"
      -  }
      -]New value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "items": {
      +      "type": "string"
      +    },
      +    "maxItems": 20,
      +    "type": "array"
      +  }
      +]
    • changedInput schema / properties / reason / description
      Previous value: -"Why this change was made (shown to user in change history)"New value: +"Why, for the change history"
  2. First observed

TDQS

B3.4/5.0
Behavior3/5

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

The annotations already declare readOnlyHint=false, idempotentHint=true and destructiveHint=false, so the mutation and repeat-safety profile is largely covered. The description adds real value in saying 'soft-deleted', signalling that restore applies only to soft deletions rather than hard-deleted records, but it says nothing about failures, permissions, or what state the item returns in.

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?

Two short sentences with the core action front-loaded and no redundant restatement of the title. The example sentence adds marginal value, since the schema already types 'id' as a string or string array, but it costs no reading effort.

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

Completeness3/5

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

For a two-parameter tool with full annotation coverage and no output schema, the definition is adequate but thin. It omits the batch-restore behavior implied by the array-typed id and the purpose of the reason field, both of which materially affect how an agent invokes the tool.

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 description coverage is 100%, with both 'id' (single string or array up to 20) and 'reason' (recorded for change history) documented in the schema itself. The description only echoes the id format through a single-UUID example and never mentions the array/batch capability or the reason parameter, so it adds little beyond the schema.

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 states a specific action and resource: bringing soft-deleted items back, which is clearly the inverse of delete_item among the siblings. It is unambiguous, but it does not name delete_item explicitly or clarify how it differs from update_item when an item merely needs modification.

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

Usage Guidelines3/5

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

The phrase 'soft-deleted items' implies the condition under which this tool applies, since only previously soft-deleted records can be restored. There is no explicit when-not guidance, no mention of what happens if the item is not deleted, and no routing to alternatives such as delete_item or update_item.

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