Skip to main content
Glama

recall_memory

Ask a natural-language question and receive a synthesized answer with cited sources and related graph context in one call, enabling quick retrieval of workspace knowledge without manual searching.

Instructions

One-shot recall: ask the Memory Vault a natural-language question and get a synthesized answer with sources in a single call. BoteX gathers the top search hits plus their 1-hop graph neighbourhood (wikilinks + backlinks), then a server-side curator model (Ollama -> NVIDIA -> Gemini -> OpenRouter free) answers strictly from those notes. Falls back to a deterministic digest when no model is available. Use read_memory on a returned source only when you need the full raw note.

Args: query: Natural-language question or topic. workspace_dir: Workspace root directory. Empty = engine.default_workspace from the config, else the server's current directory. topic: Optional tag restricting the search to a thematic bucket. scope: 'local', 'global', or 'all'. Default is 'all'. project: Optional project slug filter restricting initial search hits.

Returns: {ok, answer, sources, confidence (HIGH|MEDIUM|LOW|NOT_FOUND), tier_used, context_nodes, truncated}

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

Input Schema

NameRequiredDescriptionDefault
queryYes
scopeNoall
topicNo
projectNo
workspace_dirNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.1.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the retrieval strategy (top hits plus 1-hop wikilink/backlink neighbourhood), the server-side curator model chain, a deterministic-digest fallback when no model is available, and the confidence/truncated signals. It omits latency/cost expectations and any auth or rate-limit notes, which keeps it short of a 5.

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?

Front-loaded with the one-line purpose and the sibling routing note, then structured Args/Returns blocks with zero filler. The model-chain parenthetical '(Ollama -> NVIDIA -> Gemini -> OpenRouter free)' is marginal detail but plausibly useful for anticipating fallback behaviour.

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?

For a five-parameter tool with a non-trivial retrieval pipeline, the definition covers selection, inputs, and failure modes (deterministic fallback, NOT_FOUND confidence). Since an output schema already exists, the Returns block is partly redundant, but it does not detract from an otherwise sufficient definition.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, and the description compensates fully by explaining all five parameters: query semantics, workspace_dir resolution order (empty -> engine.default_workspace -> server cwd), topic as a thematic tag filter, and project as a slug filter on initial hits. It even supplies the scope enum values ('local', 'global', 'all') that the schema itself lacks.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource with scope: 'One-shot recall: ask the Memory Vault a natural-language question and get a synthesized answer with sources in a single call.' It also explicitly delineates itself from the sibling read_memory ('only when you need the full raw note'), so an agent can discriminate without opening either schema.

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?

Gives a clear directive for the main follow-up case: use read_memory on a returned source only when the full raw note is needed. It does not address how recall_memory compares to other retrieval-style siblings such as search_memory or reflect_memory, so the routing guidance is clear but not exhaustive.

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