Skip to main content
Glama

Stash — Shared AI Memory

Restore memory

restore
DestructiveIdempotent

Bring back a removed memory entry, or revert an entry to a past version. A revert becomes a new version, so it can be undone too. Restoring an entry leaves its retired pins off. Check history first and confirm with the user before reverting. Uses no embedding tokens.

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": {
      "entry_uuid": "<entry_uuid>"
    },
    "name": "restore"
  }
}

Input Schema

NameRequiredDescriptionDefault
versionNoPast version to revert to, from history. Omit to just bring back a removed entry.
entry_uuidYesUUID of the memory entry.

Output Schema

NameRequiredDescriptionDefault
versionYes
undeletedNo
entry_uuidYes
next_actionsNo
namespace_pathYes
reverted_to_versionNo

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses that a revert materializes as a new version (so it is itself undoable), that retired pins stay off after a restore, that no embedding tokens are consumed, and that user confirmation is expected. These are non-obvious consequences that the destructiveHint and idempotentHint flags alone cannot convey.

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?

Four short sentences, front-loaded with the two modes, then consequences, then the caution, then the cost note. Every sentence carries distinct information with no repetition of the name or title.

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?

Given a rich annotation set and an existing output schema, the description fills the remaining gaps an agent needs: reversibility model, pin side effect, confirmation etiquette, and token cost. Nothing material is missing for correct invocation.

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 schema already explains that omitting version simply brings back a removed entry. The description's restatement of that behavior adds convenience but no new semantic detail about entry_uuid or version formats.

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?

Names a specific verb (bring back / revert) and resource (memory entry), and explicitly covers the two distinct modes: undeleting a removed entry versus reverting to a past version. This distinguishes it clearly from siblings like rm, update, and history.

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?

Gives an explicit prerequisite workflow: check history first and confirm with the user before reverting, which names the sibling tool to consult and sets a safety gate. It does not, however, state when to prefer restore over update for editing an entry, leaving one boundary implicit.

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