Skip to main content
Glama

Restore memory

restore_memory
Idempotent

Use this when the person wants a forgotten memory back. Find its id with list_memories filter 'forgotten'. Only within the trash period after forgetting (30 days by default); then it is erased for good. Restoring an active memory is rejected.

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": {
      "memory_id": "<memory_id>",
      "reason": "<reason>"
    },
    "name": "restore_memory"
  }
}

Input Schema

NameRequiredDescriptionDefault
agentNoYour agent label.
reasonYesWhy, for the audit; ask the person if unsure.
run_idNoYour run id.
memory_idYesMemory id ('mem_' prefix optional).

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / reason
      Added value: +{
      +  "description": "Why, for the audit; ask the person if unsure.",
      +  "maxLength": 500,
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "memory_id"
      -]New value: +[
      +  "memory_id",
      +  "reason"
      +]
  2. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=false, idempotentHint=true, destructiveHint=false. The description adds the behavior the annotations omit: the act is only valid inside a 30-day trash period after which the memory 'is erased for good', and the failure mode for an active memory. This is exactly the non-obvious state and error information an agent needs before calling a mutation.

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?

Three short sentences, front-loaded with the situation that triggers the tool, then the discovery step, then the constraint. Every sentence carries operational information; no restatement of the 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?

For a 4-param mutation with an output schema, the description covers the trigger, the id-discovery path, the validity window, and the rejection case. Return values need not be described because an output schema exists, so nothing material is missing.

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% and the schema already explains memory_id format and that reason is 'for the audit; ask the person if unsure', so the schema carries the load. The description contributes only an indirect hint that memory_id comes from list_memories 'forgotten' filtering; it says nothing extra about agent/run_id.

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 ('wants a forgotten memory back' → restore) and makes the scope explicit: only forgotten memories, not active ones. An agent can distinguish it from forget_memory, get_memory, and list_memories without opening any schema.

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?

Gives the triggering situation, the prerequisite discovery step ('Find its id with list_memories filter "forgotten"'), and an explicit when-not ('Restoring an active memory is rejected'), plus the 30-day window constraint. Nothing about routing or precondition checking is left to inference.

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