Skip to main content
Glama

retrieve_memory

Search stored memories by keyword and optionally filter by tags to locate relevant context and past decisions for codebase tasks.

Instructions

Search memories by keyword; optionally filter by tags

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": {
      "query": "<query>"
    },
    "name": "retrieve_memory"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagsNoRestrict results to memories matching these tags
queryYesKeyword to search in key, content, and tags

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. 'Search' implies a read operation, but the description says nothing about result ordering, match semantics (substring vs. exact), whether key/content/tag matches are ranked, or whether access is scoped to a user or project — all meaningful gaps for a tool with zero annotation coverage.

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?

A single clause pair with no filler; the core operation is front-loaded and the optional filter follows. It is efficient, though the extreme brevity leaves the definition feeling under-specified rather than polished.

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?

For a two-parameter read-style tool with a fully documented schema and no output schema, the definition is adequate to invoke correctly. However, with no annotations and no statement of safety or scoping behavior, it falls short of complete for a tool whose results and access boundaries are unstated.

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%, and the schema already documents both parameters, including that the query matches key, content, and tags. The description only restates 'keyword' and 'tags' without adding syntax, matching behavior, or combination logic, so the baseline 3 applies.

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 names a specific verb and resource ('Search memories') plus the matching mechanism ('by keyword') and the optional narrowing ('filter by tags'). It is clearly distinct from store_memory or delete_memory, but it never names a sibling such as list_memories, so the differentiation is implicit rather than explicit.

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?

There is no when-to-use guidance at all: nothing says when to search instead of listing all memories, or when a tag filter is preferable to a bare keyword. The only hint is the phrase 'optionally filter by tags', which implies narrowing but leaves the choice to the agent.

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