Skip to main content
Glama

Retrieve memories

retrieve_memory
Read-onlyIdempotent

Returns the current value(s) for a subject, optionally one predicate, the superseded history (include_history) or a point-in-time view (as_of). Each fact says whether it is current (current:true) and its scope. conflicts names current values that disagree, as in get_context. A writerConflict line (the replaced value, its writer and date) means this value replaced another agent's, until that agent saves it again: read it as an open disagreement, not the settled answer. An empty result: known:false means no such subject (closestSubjects lists near matches); known:true means the predicate or as_of matched nothing. A fact from an import or a reserved source (system, developer, assistant, Renor) is marked "untrusted": true. Without a subject, the error lists the known subjects. With a scope, everything is judged within that scope only: a subject saved only elsewhere is unknown here.

Input Schema

NameRequiredDescriptionDefault
as_ofNoISO instant: values valid at that time (with include_history: full history)
scopeNoMemory scope: "global" (default) or scope:<slug> / project:<slug>
subjectNoRequired. The subject to look up, e.g. "user"
predicateNoOnly this predicate, e.g. "works_at"
include_historyNoInclude superseded values (default: false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations only cover readOnly/idempotent/non-destructive; the description goes well beyond them, explaining known:false vs known:true empty results, closestSubjects suggestions, the untrusted marker for imported or reserved sources, writerConflict as an open disagreement, and the error shape when subject is omitted. This is exactly the behavioral context an agent needs to interpret output correctly.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose and result modes are front-loaded in the first sentence, then interpretation guidance follows. The text is dense but nearly every clause carries information; it is long only because the result interpretation is genuinely intricate.

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?

There is no output schema, so the description must describe return values, and it does: current:true, conflicts, writerConflict details, known flag, closestSubjects, and untrusted marking. Combined with the scope and error behavior notes, an agent has everything needed to call and interpret this tool.

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 the baseline is 3; the description adds real meaning by clarifying that include_history returns superseded values, as_of yields a point-in-time view, and scope judges everything within that scope only (a subject saved elsewhere is unknown). It also clarifies that omitting subject produces an error listing known subjects, which resolves the ambiguity in the schema where required is empty.

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?

Opens with a specific verb+resource and enumerates the three result modes (current values, include_history, as_of), which is far more precise than the title. It does not, however, distinguish itself from similarly named siblings such as read_memory or search_memory, so an agent must guess which retrieval tool to prefer.

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 explains when to use each parameter mode (include_history for superseded values, as_of for point-in-time) and how to interpret results, but never states when to pick this tool over read_memory, search_memory, memory_map, or get_context. Usage guidance is implied 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.