Skip to main content
Glama

recall

Search past AI agent sessions semantically to retrieve verbatim passages on prior decisions, rationale, measurements, and investigations, so earlier work can be reused instead of re-derived.

Instructions

Semantic search over the user's past AI agent sessions: describe what you are after, get back the verbatim passages — what was decided, tried, measured or investigated. Call it when they refer to earlier work, or when you are about to re-derive something a session may already have settled. Call it too before claiming that something was never built, was dropped, or was never discussed: the code cannot show that, only the sessions can. Ranked top-k, so it gives you a foothold on a topic, not every session touching it. Ranking weighs relevance, not age: for the latest word on a topic, or one stretch of time, bound it with since/until. Each hit is a passage framed by its exchange, the prompt that asked, the assistant's last word on it and the user's reply, so the answer is usually in the reply itself: k is the token cost, candidates the reach, and a pool larger than k is reranked, at seconds of latency that grow with the pool, so the reach can grow without the reading. oneline lists the hits without their passages, to choose what to read.

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
kNoHits returned (default 8). Each is a verbatim passage of a few hundred tokens, so `k` is what a call costs to read.
repoNoRestrict to turns whose checkout resolved to this repo, as `owner/name`
roleNoRestrict to a role, as the turns carry it (an agent's turns say user | assistant | tool | system)
queryYesNatural-language description of what to recall from past sessions. A query matches best in the language they are written in, which `status` reports.
sinceNoRestrict to turns on or after this date, `YYYY-MM-DD`
untilNoRestrict to turns on or before this date, `YYYY-MM-DD`
memoryNoMemory to read for this call, as it stands — `<org>/<repo>`, an `hf://…` URI, a local path, or `local`. Omitted, the server's memory, with this host's turns not yet pushed to it when the host is bound to it.
harnessNoRestrict to a harness facet, as the turns carry it (`claude` also matches the older `claude_code`)
onelineNoOne row per hit, no passage: the provenance, the `→ get` target and the hit's opening words. For choosing what to read before a `get`, at a fraction of the tokens.
block_typeNoRestrict to a block type: text | thinking | tool_use | tool_result
candidatesNoSize of the fused pool the hits are cut from (default 30): how far the search looks. Larger than `k`, the pool is reranked by the cross-encoder before the cut, which costs seconds and grows with the pool, so `k` can stay small while the search looks deep. A pool of `k` rows or fewer is read whole, in the fused order.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv1.12.0
    • addedInput schema / additionalProperties
      Added value: +false
    • removedInput schema / properties / neighbors
      Removed value: -{
      -  "description": "Adjacent chunks attached to each hit for context; 0 returns the hits alone.",
      -  "format": "int64",
      -  "type": [
      -    "integer",
      -    "null"
      -  ]
      -}
    • addedInput schema / properties / oneline
      Added value: +{
      +  "description": "One row per hit, no passage: the provenance, the `→ get` target and the hit's opening words. For choosing what to read before a `get`, at a fraction of the tokens.",
      +  "type": [
      +    "boolean",
      +    "null"
      +  ]
      +}
  2. First observedv1.10.0

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does: it discloses ranking by relevance rather than age, top-k truncation, reranking cost ("seconds of latency that grow with the pool"), and the token cost model where `k` is what a call costs to read. It also describes the shape of each hit (passage framed by its exchange, prompt, assistant's last word, user reply) and where the answer usually lives.

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 purpose and triggers, then moves to cost/ranking, then to hit structure and parameters — a sensible ordering with no filler sentences. Some phrasing is dense and slightly awkward ("so the reach can grow without the reading", the layering of `k`/`candidates` in two separate places), which costs it the top mark.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema and 11 parameters, so the description must explain both shape and cost of results — it does, including hit anatomy, ranking semantics, latency behavior, and the `oneline` variant. An agent can decide whether, how, and how expensively to call this without opening the schema.

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 baseline is 3; the description nonetheless adds operational meaning the schema does not — `k` as reading cost, `candidates` as reach that can grow "without the reading", `since`/`until` as the fix for recency, and `oneline` as a cheap pre-read for `get`. It says less about `repo`, `role`, `harness`, `block_type`, and `memory`, leaving those to the schema.

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 and resource — "Semantic search over the user's past AI agent sessions" — and immediately specifies the input style ("describe what you are after") and output style ("verbatim passages"). The framing "what was decided, tried, measured or investigated" distinguishes it from a code-read tool like `get`.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives three concrete trigger conditions: the user refers to earlier work, you are about to re-derive something a session may have settled, or you are about to claim something was never built/dropped/discussed. It also bounds expectations ("a foothold on a topic, not every session") and routes recency needs to `since`/`until` and reading needs to the `→ get` target. This is explicit when-to-use and when-not guidance.

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

Deploy Server

Other Tools