Skip to main content
Glama

Restore Archived or Deleted Item

restore_item
Idempotent

Restore archived or soft-deleted customers, contacts, tasks, projects, and financial records to active status before the 30-day purge window closes.

Instructions

Restore a previously archived or soft-deleted item back to active state. Works for any entity type that supports archiving or deletion: customer, contact, task, tag, playbook, playbook_step, project, financial_account, financial_category, financial_transaction. Soft-deleted items are automatically purged after 30 days - restore before then to recover. Permission rules: org-scoped items can be restored by any company member; personal-scoped items (tasks) can only be restored by the creator.

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

Input Schema

NameRequiredDescriptionDefault
entity_idYesUUID of the archived or soft-deleted entity.
entity_typeYesType of entity to restore.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.4.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare this is a non-destructive, idempotent, non-open-world mutation, so the safety profile is covered. The description goes beyond them by disclosing the 30-day retention/purge window and a two-tier permission model (any company member for org-scoped, creator-only for personal-scoped tasks), which are exactly the kind of operational constraints an agent cannot infer from the schema.

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 sentences, front-loaded with the core action and then the retention rule and permission rule in descending order of importance; nothing is padded. The long inline entity enumeration is dense but functional, since it doubles as the applicability list.

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?

For a two-parameter mutation tool with no output schema, the description covers action, applicability, retention window, and authorization, which is most of what an agent needs. It leaves unstated what happens when the target is not archived/deleted or when the caller lacks permission (error versus no-op), which an agent reasoning about failure paths would want.

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%, so both parameters are already documented and the enum is fully enumerated, making the baseline a 3. The description adds useful nuance by tying 'task' to personal-scope restore permissions, but its own entity-type list omits 'interaction', which is present in the schema enum - a small inconsistency that slightly undercuts the added value.

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 first sentence states a specific verb and resource ('Restore a previously archived or soft-deleted item back to active state') and the second enumerates the supported entity types, so the agent knows exactly what the tool acts on. It does not, however, distinguish itself from the sibling bulk tool 'restore_items' or from 'purge_item', which share the same domain and could be confused at selection time.

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 gives a concrete temporal condition ('soft-deleted items are automatically purged after 30 days - restore before then to recover') that tells the agent when this tool must be used rather than deferring. It also spells out who may invoke it for org-scoped versus personal-scoped items, but never explicitly routes multi-item recovery to the sibling 'restore_items'.

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

Deploy Server

Other Tools