Skip to main content
Glama

memory_search

Search past conversation logs and notes with hybrid full-text and vector search, then filter results by project, tags, session, or date range to retrieve relevant memories.

Instructions

Search past memories using hybrid search (FTS5 full-text + vector similarity with RRF fusion). Returns relevant conversation logs and notes matching the query.

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

Input Schema

NameRequiredDescriptionDefault
tagsNoFilter: tags to match
limitNoMaximum number of results (default: 10)
queryYesSearch query (keywords or natural language). Supports FTS5 syntax: AND, OR, NOT, quotes for phrases.
date_toNoFilter: latest date (ISO 8601 format)
projectNoFilter: project name
date_fromNoFilter: earliest date (ISO 8601 format)
session_idNoFilter: specific session ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden; it does disclose the hybrid retrieval mechanism and that results are read-only conversation logs and notes, which is useful. However, it says nothing about result ordering/ranking, pagination behavior, cost, or permissions, leaving meaningful gaps for a search tool.

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?

Two sentences, front-loaded with purpose and mechanism, with no filler. The second sentence partially restates the retrieval outcome already implied by the first, a minor redundancy.

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?

There is no output schema, so the description must indicate what comes back, and it does briefly (relevant conversation logs and notes). With seven fully documented parameters and implicit read-only behavior, this is complete enough to call correctly, though ranking and result-shape detail would strengthen it.

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%, so every parameter (query, tags, limit, date_from, date_to, project, session_id) is already documented in the input schema. The description adds no parameter-level meaning beyond noting that queries match conversation logs and notes, 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?

States a specific verb and resource ("Search past memories") and explains the retrieval mechanism (FTS5 full-text + vector similarity with RRF fusion) plus what is returned (conversation logs and notes). It does not distinguish itself from siblings such as memory_associate or memory_summarize, so it stops short of a 5.

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 implies the tool is used to look up past memories by query, but it provides no explicit when-to-use criteria, no exclusions, and no named alternatives among the memory_* siblings. An agent must infer that this is the retrieval entry point rather than memory_save or memory_associate.

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