Skip to main content
Glama

Restore a retired memory

restore_memory
Idempotent

Puts a retired memory back exactly as it was and re-indexes it. Refuses to overwrite a file that now occupies the same path.

Input Schema

NameRequiredDescriptionDefault
idYesA memory id (note:<path>, entry:<path>#<hash> or fact:<eventId>) from memory_map; memory_map with a query finds one by its words without loading the whole map

Output Schema

NameRequiredDescriptionDefault
atYes
idYes
okYes
titleYes
actionYes
currentNo
eventIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": {},
      +  "properties": {
      +    "action": {
      +      "enum": [
      +        "retired",
      +        "restored"
      +      ],
      +      "type": "string"
      +    },
      +    "at": {
      +      "type": "string"
      +    },
      +    "current": {
      +      "type": "boolean"
      +    },
      +    "eventId": {
      +      "type": "string"
      +    },
      +    "id": {
      +      "type": "string"
      +    },
      +    "ok": {
      +      "type": "boolean"
      +    },
      +    "title": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "ok",
      +    "id",
      +    "action",
      +    "title",
      +    "at"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare idempotent=true, destructiveHint=false and closed-world, so the safety profile is largely covered. The description adds real value beyond that: it discloses the re-index side effect and the conflict behavior ('Refuses to overwrite a file that now occupies the same path'), which is exactly the kind of failure mode an agent needs to anticipate.

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?

Two short sentences, front-loaded with the primary action and followed by the key constraint. No padding or restatement of the title.

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?

With an output schema present and full schema coverage on the lone parameter, the description only needs to convey behavior, which it does well including the conflict case. It stops short of noting permission requirements or what happens to references on re-index, but nothing critical 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?

There is a single parameter with 100% schema coverage, and the schema already explains the id format and points to memory_map. The description adds nothing about the id, so the baseline 3 applies.

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 precise verb+resource ('Puts a retired memory back') plus the side effect of re-indexing, which cleanly separates it from the sibling retire_memory. An agent knows exactly what operation this performs without opening the schema.

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 description implies the use case (undoing a retirement) but never says when to prefer this over siblings like save_memory or remember, nor states any preconditions. Usage is inferable rather than explicit.

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.