Skip to main content
Glama

memory_restore

Restore a soft-deleted memory entry by ID, recovering deleted facts from the trash so agents can use them again.

Instructions

Restore a soft-deleted memory entry by id (from trash).

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": "memory_restore"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesEntry id from memory_search / trash.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden. It usefully discloses that the operation is a reversal of a soft delete, but says nothing about failure behavior when the id is unknown or not in trash, whether the entry retains its original id, or whether restoring is itself reversible.

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?

One short sentence with the action, the resource, the key, and the source all front-loaded; no filler or redundant restatement of the name.

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 one-parameter tool with no output schema and no annotations, the description covers what the tool does and where the input comes from. The remaining gap is post-call behavior on invalid or non-trashed ids, which is modest for this complexity.

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?

There is a single required parameter whose schema description is complete ('Entry id from memory_search / trash'), so the schema does the heavy lifting. The description's 'by id (from trash)' only lightly reinforces the id source and adds no format or edge-case detail.

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?

States a specific verb and resource ('Restore a soft-deleted memory entry') plus the source ('from trash') and lookup key ('by id'), so an agent can tell this is the undo counterpart to memory_forget rather than a read like memory_get. It does not name any sibling explicitly, so differentiation is implied rather than stated.

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 ... (from trash)' implies the precondition for use — the entry must currently be in the trash — but there is no explicit when-to-use/when-not guidance or pointer to an alternative for entries 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.