Skip to main content
Glama

Agent memory: recall

memory_get
Read-only

Recalls stored agent memory by fetching a key, listing keys by prefix, or searching keys and values, and returns each value with its last-updated time.

Instructions

Recall what an agent saved with memory_set: get one key, list keys (optionally by prefix), or search keys and values for words. Returns values with their last-updated times. Costs $0.001 per call.

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": {
      "secret": "<secret>"
    },
    "name": "memory_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyNoGet this key.
limitNoMax items for list/search (default 50).
prefixNoList keys starting with this, e.g. "user:42:".
searchNoFind keys whose key or value contains this text (case-insensitive).
secretYesYour private memory secret (16+ chars). The same secret always opens the same memory; share it to share memory between agents. Keep it secret: anyone with it can read and write.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, so safety is covered; the description still adds real value by disclosing cost ($0.001 per call) and that results carry last-updated times. It omits behavioral details an agent might want, such as result ordering, what happens at the limit ceiling, or whether key/prefix/search are mutually exclusive.

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 sentences, front-loaded with the core purpose, then modes, then return shape and cost. Nothing is redundant with the title or schema, and every clause carries information.

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 no output schema, the description helpfully indicates return content (values plus last-updated times) and the per-call cost, and the secret/auth requirement is thoroughly documented in the schema. Minor gaps remain around pagination behavior and how conflicting mode parameters interact.

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 baseline is 3, but the description adds mode-level semantics the schema cannot: it groups key with single-get, prefix with listing, and search as a key-and-value text match, implying these are alternative modes rather than combinable filters. It adds no format hints beyond the schema's own examples.

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 ('Recall') and resource ('what an agent saved with memory_set'), then enumerates the three operating modes: single-key get, prefix listing, and text search. It explicitly names the sibling it complements, so an agent can distinguish read from write without opening either schema.

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?

The phrase 'Recall what an agent saved with memory_set' cleanly frames this as the read counterpart to the write tool and the mode clauses indicate which parameter shape to use for each intent. It stops short of explicit exclusions (e.g., 'use memory_set to write') or stating which mode wins if several are supplied.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.