Skip to main content
Glama

cortex_recall

Retrieve persistent project memory by natural language query, combining vector, full-text, and graph search to return relevant context without LLM calls.

Instructions

Sub-65ms Zero-LLM hierarchical recall combining Tri-Stream Master Identity, Hybrid Vector+FTS RAG, Smart Canonical Project Summaries, and Neo4j Exact Cosine graph edges.

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

Input Schema

NameRequiredDescriptionDefault
queryYesNatural language search query or current user prompt.
compactNoOptional token-saving mode for CLI/IDE agents.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.7/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, and it does add real behavioral facts: sub-65ms latency, 'Zero-LLM' (no model invocation cost), and a hybrid vector+FTS plus graph retrieval strategy. It omits what an agent most needs — whether the call is read-only and safe to repeat, what the response shape looks like, and any result-size or scope limits.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is a single sentence, but it is front-loaded with a latency claim rather than the purpose, and most clauses are vendor-style name-dropping ('Tri-Stream Master Identity', 'Smart Canonical Project Summaries') that does not help an agent decide or invoke. The words spent on architecture crowd out usage and return-value information.

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?

The tool is simple (two params, one required) and read-shaped, so the bar is modest, but there is no output schema and the description says nothing about what comes back. Combined with absent usage guidance, an agent knows the tool is fast and hybrid but not when to call it or what to expect.

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 both 'query' and 'compact' are already documented in the schema, and 3 is the correct baseline. The description adds nothing about parameter semantics — notably it never explains when 'compact' should be set, which is the one choice an agent has to make.

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

Purpose3/5

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

The verb 'recall' does identify a retrieval operation, but the resource is never named — nothing says whether it returns memories, project context, or graph nodes. The rest of the sentence is architecture jargon ('Tri-Stream Master Identity', 'Neo4j Exact Cosine graph edges') that describes how it works rather than what an agent gets back, and it gives no signal for choosing it over siblings like cortex_get_project_spec or cortex_triage_general.

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?

There is no when-to-use guidance, no prerequisites, and no mention of alternatives among the eight siblings. An agent must guess whether this is the right retrieval entry point versus cortex_get_project_spec or cortex_triage_general. The only implicit cue is that it takes a natural-language prompt.

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