Skip to main content
Glama

memory_retrieve

Retrieve memories for an actor using filters, semantic search, and date constraints to access relevant past context.

Instructions

Retrieve memories for an actor with optional filtering, semantic search, and date range constraints.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tagsNoFilter by tags (any match)
limitNoMaximum number of memories to return
queryNoSemantic search query (used with semantic/hybrid strategies)
actorIdNoActor ID. Defaults to the current session actor.
strategyNoRetrieval strategy. Default: recent.
memoryTypesNoFilter by memory types
createdAfterNoISO-8601 date. Only memories created after this time.
createdBeforeNoISO-8601 date. Only memories created before this time.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.1/5.0
Behavior2/5

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

There are no annotations provided, so the description carries the full burden of behavioral transparency. It states the action but does not disclose potential side effects (e.g., whether it is read-only), performance implications, or any other behavioral constraints or requirements.

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 a single, concise sentence that effectively summarizes the tool's functionality without any unnecessary words or repetition. It is well-structured and directly to the point.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description is complete enough for a basic understanding, but it lacks some context. It does not describe the output format or structure (though no output schema is provided), nor does it explain the relationship to sibling tools or the meaning of 'actor' and 'memories' in this domain. This missing context may lead to ambiguity in edge cases.

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?

The schema covers all 8 parameters with individual descriptions, so schema coverage is 100%. The tool description does not add additional meaning beyond the schema, but per the rubric, the baseline for high schema coverage is 3. The parameter names and descriptions are clear enough.

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') and the resource ('memories for an actor'), and mentions optional filtering, semantic search, and date range constraints. However, it does not explicitly differentiate from sibling tools like memory_get, which might also retrieve a specific memory, so it is not perfectly distinct.

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 does not provide any guidance on when to use this tool versus alternatives such as memory_compile_context, memory_summarize, or memory_get. No explicit use cases or conditions are mentioned, leaving the agent to infer the appropriate context.

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