Skip to main content
Glama

recall

Read-only

Retrieve relevant persisted memories using semantic, temporal, priority, or hybrid routing. Requires a reason for audit compliance.

Instructions

Retrieve relevant persisted memory using semantic, temporal, priority, or hybrid routing. Governance: requires reason (10–200 chars). Rate limit: 20/min.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNoRecall routing mode. "temporal" = pure chronological, "semantic" = FTS + TQ ranking, "priority" = critical/high-TQ first, "hybrid" = weighted blend, "auto" = detect from query (default).
limitNoMaximum memories to return (1–50, default: 10).
queryYesWhat to recall — natural language query for memory retrieval.
scopeNoExplicit memory scope. "agent" (default, fail-closed) = limits recall to the given agent_id (or the token agent). "tenant" = cross-agent recall within the authenticated tenant. If omitted with agent_id present, "agent" is inferred; if both omitted, the token agent is used (verified-token scope).
reasonYesREQUIRED (10–200 chars). Audit policy: MEMORY_EXPORT_GOVERNANCE_V1. Human-readable justification for retrieving PLAINTEXT memory. Without this parameter the call WILL fail with code -32602. Example: "User asked me to summarize last week decisions."
agent_idNoAgent identifier (canonical or alias). Used only when scope="agent" or scope is inferred.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
countYes
scopeYes
memoriesYes
Behavior4/5

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

Annotations already provide readOnlyHint=true, so the read-only nature is covered. The description adds meaningful behavioral context by requiring a human-readable reason (10–200 chars) and stating a rate limit of 20/min, which are governance and operational constraints beyond what annotations declare. This is exactly the kind of context that helps an agent understand side conditions.

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?

The description is two sentences, immediately states the primary action, and then packs governance and rate-limit details without any fluff. Every word earns its place, and the structure is front-loaded with the core purpose.

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?

Given the rich input schema (100% coverage), output schema presence, and annotations, the description is sufficient to convey what the tool does and key constraints. It lacks explicit alternative usage guidance, but the combination of schema + annotations + concise description covers most of the operational context needed. A slightly stronger mention of when to prefer this over sibling tools would make it a 5.

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%, so all six parameters are already documented with detailed meanings. The description adds little beyond the schema—it mentions routing modes but the schema already enumerates and explains them. This aligns with the baseline score of 3, as the schema does the heavy lifting.

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?

The description clearly states the action ('Retrieve relevant persisted memory') and specifies routing modes (semantic, temporal, priority, hybrid), giving a specific verb+resource. However, it does not explicitly differentiate from the sibling tool 'recall_memory', which likely serves a very similar purpose, so it misses the full 'distinguishes from siblings' bar.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no explicit guidance on when to use this tool versus alternatives. It mentions governance (required reason) and a rate limit, but these are constraints, not usage direction. There is no 'use this when...' or 'instead of...' context, so the agent has limited help in choosing between 'recall' and siblings like 'search' or 'list_memories'.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/SynapseLayer/synapse-layer'

If you have feedback or need assistance with the MCP directory API, please join our Discord server