Skip to main content
Glama

search_memories

Retrieve relevant stored memories using semantic similarity, keyword matching, or hybrid search to find the right context for a query.

Instructions

Search memories using semantic similarity, full-text search, or hybrid mode. Supports hybrid search combining both methods for best results.

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_memories"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoSearch mode: 'semantic' for meaning similarity, 'text' for keyword match, 'hybrid' for both (default)
limitNoMaximum results (default 10)
queryYesText query for semantic/full-text search. Finds memories with similar meaning.
store_idNoStore/fork ID (default 'main')
semanticWeightNoWeight for semantic results in hybrid mode (0-1, default 0.7)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

B3.2/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 burden, yet it never states that search is read-only and side-effect free, whether any auth or store access is required, or anything about result pagination or ranking beyond the hybrid hint. For a tool with zero annotation coverage this is a notable gap.

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 short sentences, front-loaded with the core action and modes. The second sentence partially restates the hybrid mode already named in the first, but it does add the 'best results' recommendation, so the redundancy is minor rather than wasteful.

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?

With five parameters, no output schema and no annotations, an agent needs the description to say what comes back and how results are ranked or capped. The schema covers parameters, but return-shape and safety context are left unaddressed, making this adequate rather than complete.

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 mode, limit, query, store_id and semanticWeight are already documented in the input schema. The description only re-summarizes the three modes and adds no syntax, defaults, or interaction detail beyond what the schema provides, 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') and enumerates the three retrieval strategies (semantic, full-text, hybrid). An agent can distinguish this from get_memory or list_memories by the 'search' framing, though the description never explicitly contrasts itself with those siblings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It recommends hybrid mode 'for best results', which is genuine usage guidance, but it does not say when to prefer pure semantic vs. pure text search, nor when a caller should fall back to list_memories instead. The guidance is implied rather than spelled out.

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