Skip to main content
Glama

brain_auto_retrieve

Retrieves relevant memories from a local Markdown vault using prompt or query text, ranked by BM25 and recency; supports project, tag, and cognitive-tier filters.

Instructions

Alias per brain_search_memory per auto-retrieval contestuale usando prompt/query con ranking FTS5 BM25 + recency.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "brain_auto_retrieve"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagNoFiltro facoltativo per tag associato.
limitNoNumero massimo di memorie restituite (default: 5).
queryNoTermini di ricerca full-text (alternativo a prompt).
promptNoPrompt o contesto del task corrente.
projectNoFiltro facoltativo per progetto associato.
memory_typeNoFiltro facoltativo per tier cognitivo.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.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 burden; it does disclose the ranking mechanism (FTS5 BM25 plus recency), which is genuinely useful behavioral context. However it says nothing about whether retrieval has side effects (e.g. auto-capture), permission requirements, pagination, or what an empty result looks like.

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 compact sentence with the core identity (alias of brain_search_memory) and the mechanism front-loaded. It is dense with jargon but wastes no words.

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?

Six optional parameters are fully described in the schema and no output schema exists, so the description is minimally sufficient. It still omits return shape and any behavioral caveats that would matter for a retrieval tool with zero annotation coverage.

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 coverage is 100%, so each of the six parameters is already documented. The description adds only one piece of meaning beyond the schema: that prompt and query are alternatives for the retrieval input.

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?

Names a concrete operation (contextual auto-retrieval via prompt/query with FTS5 BM25 + recency ranking) and explicitly frames itself as an alias of brain_search_memory, so an agent can tell it is a retrieval tool. It stops short of explaining why both the alias and the sibling exist, which dulls differentiation.

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?

'auto-retrieval contestuale' hints at a use case (pulling context for the current task), but there is no explicit when-to-use, when-not-to-use, or rule for choosing this over the sibling brain_search_memory. Guidance is left almost entirely to inference.

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