Skip to main content
Glama

brain_search_memory

Search long-term memory with full-text BM25 queries to retrieve relevant decisions, architecture notes, or facts, with optional filters for project, tag, and memory type.

Instructions

Cerca nella memoria a lungo termine usando FTS5 BM25 per trovare decisioni, architetture o fatti rilevanti.

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

Input Schema

NameRequiredDescriptionDefault
tagNoFiltro facoltativo per tag associato.
limitNoNumero massimo di memorie restituite (default: 5).
queryYesTermini di ricerca full-text o semantica.
projectNoFiltro facoltativo per progetto associato.
memory_typeNoFiltro facoltativo per tier cognitivo (memory/episodic, memory/semantic, memory/procedural, memory/working).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/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 behavioral burden. It usefully discloses the FTS5 BM25 ranking approach, which tells the agent results are keyword/relevance-ranked rather than exhaustive. However, it omits the read-only safety profile, result ordering guarantees, and whether a search covers all projects by default, and it slightly conflicts with the schema's mention of 'semantica' search.

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?

A single, front-loaded sentence with no filler. It is efficient, though it could have used its one sentence to also route the agent toward or away from a sibling tool.

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 read-only search tool with full schema coverage and no output schema, the description covers purpose and retrieval mechanism adequately. It falls short on the behavioral details an agent would need without annotations: permission requirements, default project scoping, and how this differs from other memory-retrieval siblings.

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 five parameters are already documented in the schema. The description adds no additional meaning about filtering semantics, default scoping, or how filters interact with the BM25 query. Baseline 3 applies when the schema does the heavy lifting.

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 ('Cerca') and resource ('memoria a lungo termine'), plus the retrieval mechanism (FTS5 BM25) and the kind of content targeted (decisioni, architetture, fatti). It is clear what the tool does, but it never distinguishes this from sibling retrieval tools such as brain_auto_retrieve or brain_read_memory.

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?

The phrase 'per trovare decisioni, architetture o fatti rilevanti' implies the intended use case, but there is no explicit when-to-use or when-not-to-use guidance and no named alternative for different retrieval needs. The agent must infer selection from the purpose statement alone.

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