Skip to main content
Glama

Recall

recall

Search stored memories semantically to retrieve relevant project facts and patterns, using confidence gating and precision/balanced/exploratory ranking to prevent hallucinations.

Instructions

Semantic search with confidence gating and composite ranking.

Modes:

  • 'precision': High threshold (0.8), few results (3), prioritizes similarity

  • 'balanced': Default settings, good for general use

  • 'exploratory': Low threshold (0.5), more results (10), diverse ranking

Returns memories with confidence level and hallucination-prevention guidance.

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

Input Schema

NameRequiredDescriptionDefault
modeNoRecall mode: 'precision' (high threshold, few results), 'balanced' (default), 'exploratory' (low threshold, more results)
limitNoMax results (overrides mode default)
queryYesSearch query for semantic similarity
thresholdNoMin similarity (overrides mode default)
memory_typeNoFilter by type: project, pattern, reference
include_relatedNoInclude related memories from knowledge graph for top results
expand_relationsNoExpand results via knowledge graph (Engram-style associative recall). Related memories are added with decayed scores. None uses config default.

Output Schema

NameRequiredDescriptionDefault
modeYes
guidanceYes
memoriesYes
confidenceYes
gated_countYes
context_summaryNo
ranking_factorsYes
related_memoriesNo
formatted_contextNo
promotion_suggestionsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.8.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 burden. It usefully discloses ranking behavior, threshold defaults, and that results carry confidence levels plus hallucination-prevention guidance, but says nothing about side effects (e.g., whether retrieval marks memories as used) or cost/latency characteristics.

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-loads the purpose, then a compact per-mode breakdown that is easy to scan. Slight redundancy with the schema's own mode description, but no sentence is filler.

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?

Output schema exists, so return values need not be explained, and the description covers modes and defaults adequately for a 7-parameter search tool. The remaining gap is the absence of cross-tool routing guidance versus sibling memory-retrieval tools.

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 100%, so the baseline is 3, but the description adds concrete numeric values (0.8/3 for precision, 0.5/10 for exploratory) that the schema descriptions omit, giving the agent real defaults to reason about. Override relationships between mode, limit, and threshold are only partly conveyed.

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 and resource ('Semantic search' returning 'memories') with an added qualifier about confidence gating and composite ranking. It is distinguishable from list_memories or forget by the retrieval semantics, though it never names a sibling explicitly.

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?

The mode list gives clear in-tool guidance on when to pick precision vs balanced vs exploratory. It lacks any statement about when to prefer this over sibling retrieval tools such as list_memories or get_related_memories, so routing between tools is left to inference.

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