Skip to main content
Glama

brain_search

Search persistent AI-agent memories by keyword and return ranked, decay-adjusted results, optionally scoped by project or category for focused recall.

Instructions

Search memories using keyword matching. Returns ranked results with decay-adjusted scoring.

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

Input Schema

NameRequiredDescriptionDefault
limitNoMax results. Default: 10.
queryYesSearch query.
projectNoScope to project.
categoryNoFilter by category.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.1

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden, and it does disclose that results are ranked with decay-adjusted scoring — useful non-obvious context about how relevance is computed. It says nothing about read-only safety, result size limits, or cost, so the behavioral picture is only partially drawn.

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?

Two short sentences, zero filler, with the action and the matching mechanism front-loaded before the return-behavior note. Nothing redundant or padded.

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?

For a simple four-parameter read tool with a fully described schema and no output schema, the description covers what the tool does and what comes back. The missing piece is routing guidance relative to the other brain_* retrieval tools, which an agent needs in order to choose correctly.

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 all four parameters (query, limit, project, category) are already documented and the baseline is 3. The description adds a small amount of meaning by framing the query as keyword-based rather than semantic, but does not elaborate on how project or category scoping interacts with ranking.

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 the matching mechanism ("keyword matching"), plus the nature of the output (ranked, decay-adjusted results). It is clear what the tool does, though it never names a sibling such as brain_recall to sharpen the distinction.

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?

"Keyword matching" implicitly signals that this is literal-term retrieval rather than semantic recall, which is the only usage cue present. There is no explicit when-to-use or when-not-to-use statement and no alternative named, so the agent must infer the boundary with brain_recall/ brain_remember on its own.

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