Skip to main content
Glama

search_memory

Find past agent decisions, tool calls, and conversations across logged events to inform a new task. Filter by agent and use keyword, semantic, or hybrid matching.

Instructions

Search over all logged agent events.

Finds past decisions, tool calls, conversations, or any event. Works on any
server: keyword search without embeddings, keyword + meaning (hybrid) with
them. Useful before a new task to see what happened in similar situations.

Args:
    query: Natural language description of what you're looking for
    agent: Filter to a specific agent (optional -- leave blank to search all)
    limit: Number of results (default 10, max 50)
    mode:  Leave blank for the server default, or "keyword", "semantic", "hybrid"

Returns:
    List of matching events with relevance scores

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
modeNo
agentNo
limitNo
queryYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

No annotations exist, so the description carries the full behavioral burden. It does disclose a real behavioral trait — mode availability depends on whether the server has embeddings ('keyword search without embeddings, keyword + meaning (hybrid) with them') — and that results carry relevance scores. It omits permissions, cost/latency, and whether results are scoped to a workspace or time range.

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?

The opening line is front-loaded and the Args/Returns block is easy to scan. There is mild redundancy between 'Search over all logged agent events' and 'Finds past decisions, tool calls, conversations, or any event', but nothing is verbose enough to impede selection.

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?

With no annotations and no output schema, the description still covers the return shape ('List of matching events with relevance scores') and every parameter. For a read-only search tool this is close to sufficient; only permission/scope and fallback-mode behavior are left unstated.

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 coverage is 0%, so the description must compensate, and it does: it documents all four parameters, including the max limit of 50 (not in the schema) and the accepted mode values 'keyword', 'semantic', 'hybrid' (the schema has no enum). The only gap is that it doesn't explain what happens when 'semantic' is requested on a server without embeddings.

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 first line states a specific verb and resource ('Search over all logged agent events') and the second line enumerates what is searchable (decisions, tool calls, conversations, any event). The purpose is unmistakable, but it never distinguishes this from the sibling 'query_events', which sounds like a near-overlapping capability.

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?

It gives a concrete when-to-use: 'Useful before a new task to see what happened in similar situations.' It also implies the agent filter should be left blank to search all. There is no when-not guidance and no explicit routing to sibling tools such as query_events or why, so it stops short of full alternative coverage.

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