Skip to main content
Glama

Restore a deleted item

restore_deleted
Idempotent

Restores a saved model or a run you deleted with delete_graph or delete_run, putting it back exactly as it was. Use this when the user wants back something they deleted, within 30 days of deleting it; find its kind and id with list_deleted. Restoring a model brings back the runs that were deleted with it, and their share links work again. A run whose model is still deleted cannot be restored on its own (parent_deleted): restore the model first. After the 30 days it is refused with restore_window_expired and the item cannot be recovered. Restoring something that is not deleted changes nothing. It returns the kind, the id and when it was restored. It needs a Neumann account: send your key, or your signed-in token, in the Authorization header as a Bearer credential. No Neumann tool takes an api_key argument. Example: {"kind":"graph","id":"8f3c2a"} Cost: free -- it debits no credits and spends none of your free daily runs -- but it needs an account; an anonymous caller gets account_required.

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

Input Schema

NameRequiredDescriptionDefault
idYesThe id of the item to restore: the graph_id or run_id, as list_deleted reported it.
kindYesWhat to restore: graph for a saved model (its runs come back with it), or run for one result. Use the kind list_deleted reported.

Output Schema

NameRequiredDescriptionDefault
idYesThe id of the item restored, as you passed it.
kindYesgraph or run, as you passed it.
billingNoWho you are and what this call cost.
restored_atYesWhen it was restored, as an ISO-8601 time.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the annotations (readOnlyHint=false, idempotentHint=true, destructiveHint=false) by disclosing cascade behavior (restoring a model brings back its runs and their share links work), the 30-day recovery limit, the no-op semantics that justify idempotency, the return payload, Bearer auth requirements, and that anonymous callers get account_required. Nothing contradicts the annotations.

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?

Front-loaded with the core action and the sibling routing, and nearly every sentence carries distinct operational information. It is dense and slightly kitchen-sink toward the end (cost, credits, 'No Neumann tool takes an api_key argument'), which adds length without changing the call decision.

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 two-parameter, non-destructive-but-account-required tool, the description covers preconditions, failure modes, cascade side effects, and account requirements. An output schema exists, yet the description also names the returned fields (kind, id, restored time), leaving no gap an agent must guess at.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning: it ties both parameters to list_deleted as the source of truth for kind and id, and supplies a concrete example payload showing enumeration value 'graph'. The cascade nuance for kind=graph is also explained.

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 ('Restores a saved model or a run') and directly names the two sibling tools whose effects it reverses (delete_graph, delete_run), so an agent can tell it apart from the delete family immediately.

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

Usage Guidelines5/5

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

Explicitly says when to use it ('when the user wants back something they deleted, within 30 days'), how to obtain the arguments (list_deleted), and gives named failure branches: restore the model first for parent_deleted, and restore_window_expired after 30 days. It even covers the no-op case for items that were never deleted.

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