Skip to main content
Glama

search_memory

Retrieves past decisions, preferences, and session details from long-term memory. Search with distinctive keywords, disambiguate with a clue, and filter by date or project.

Instructions

Search the user's long-term memory (IHMT): decisions, setup, preferences, people, earlier sessions.

Use several distinctive words, not a bare name. Returns the best memory with its date (plus one line per other match). AMBIGUOUS means several memories fit equally: ask the user or call again with clue (a place, date, project). Always relay OUTDATED notices.

Args: query: What to look for, in any language. clue: Distinguishing detail, only after an AMBIGUOUS reply. detail: "compact" (default) or "full" (adds ids, tree paths and excerpts). also: Other phrasings of the same question (another language, synonyms), searched in this same call; matching is by words, so this replaces retrying. since: Only memories dated on or after "YYYY-MM-DD" — for the current state of a topic. scope: "memory" (curated notes, default) or "conversations" (what was said and done in past sessions; use it when the notes have nothing). project: With scope="conversations", only sessions of this project (its folder name).

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

Input Schema

NameRequiredDescriptionDefault
alsoNo
clueNo
queryYes
scopeNomemory
sinceNo
detailNocompact
projectNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv1.4.0
    • addedInput schema / properties / also
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Also"
      +}
    • addedInput schema / properties / project
      Added value: +{
      +  "default": "",
      +  "title": "Project",
      +  "type": "string"
      +}
    • addedInput schema / properties / scope
      Added value: +{
      +  "default": "memory",
      +  "title": "Scope",
      +  "type": "string"
      +}
    • addedInput schema / properties / since
      Added value: +{
      +  "default": "",
      +  "title": "Since",
      +  "type": "string"
      +}
  2. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations, the description carries the disclosure burden, and it does explain response semantics that go beyond schema: the best memory is returned with its date plus one line per other match, an AMBIGUOUS signal means several memories fit equally, and OUTDATED notices must be relayed. It says nothing about permissions, rate limits, or whether the tool is strictly read-only, though a search tool's read-only nature is largely self-evident.

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?

Front-loads purpose, then usage protocol, then an Args block, so an agent can stop reading at any level it needs. Sentences are dense but each carries a distinct instruction; nothing is repeated verbatim or padding.

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?

All 7 parameters are documented despite zero schema coverage, the ambiguity/retry loop is spelled out, and an output schema exists so return values need only be sketched. The main remaining gap is the absence of any statement about how this differs from sibling memory tools, which matters for a 7-parameter tool in a crowded namespace.

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 description coverage is 0% across 7 parameters, so the description must compensate, and it does: every arg is explained with intent and constraints, including the conditional coupling of `clue` to an AMBIGUOUS reply and `project` to scope='conversations'. It also supplies the allowed values for `detail` and `scope` that the schema lacks as enums, and the date format for `since`.

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?

States a specific verb and resource with enumerated content ('Search the user's long-term memory (IHMT): decisions, setup, preferences, people, earlier sessions'), which is far beyond a restated title. It does not, however, distinguish itself from plausible siblings such as recall or save_memory, leaving the agent to infer the boundary.

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?

Gives concrete query-crafting advice ('Use several distinctive words, not a bare name') and an explicit branch protocol for AMBIGUOUS replies (ask the user or retry with `clue`), plus a clear when-to-use rule for scope='conversations' ('use it when the notes have nothing') and for `since` ('for the current state of a topic'). It stops short of naming any sibling tool as an alternative.

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