Skip to main content
Glama

retrieveMemory

retrieveMemory
Read-only

Search everything known about the user — stored memories, knowledge base, profile facts, contacts, and skills — and return whatever is relevant to the query. Use this to recall context before answering questions about the user, their work, or people they know. Requires the "read" scope.

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": "retrieveMemory"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesWhat to search for. Use natural language describing the topic, person, or situation you need context on.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds context the annotations cannot: the "read" scope requirement, plus the fact that it fans out across five distinct data sources and returns only what is relevant. It stops short of describing ranking, result limits, or empty-result behavior.

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?

Three sentences, each doing distinct work: what it searches, when to call it, and what it requires. The capability statement is front-loaded and there is no filler or restatement of the tool name.

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?

For a single-parameter read tool with no output schema, the definition covers purpose, trigger, source breadth, and the auth prerequisite. The only meaningful omission is any hint about result shape or volume, which matters somewhat since there is no output schema to fall back on.

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 single parameter already carries guidance to use natural language describing the topic, person, or situation. The description's phrase "whatever is relevant to the query" reinforces the semantic-search framing but adds no syntax, format, or scoping detail beyond the schema. Baseline 3 applies when the schema does the heavy lifting.

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 ("Search") and enumerates the resource scope precisely: stored memories, knowledge base, profile facts, contacts, and skills. This clearly separates it from the write-side sibling storeMemory and tells an agent it is an aggregated recall tool rather than a scoped list.

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?

"Use this to recall context before answering questions about the user, their work, or people they know" gives a concrete trigger condition tied to the agent's own workflow. It does not name an explicit alternative or a when-not-to-use case, but the read/write split against storeMemory is implicit in the verb choice.

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.

Resources