Skip to main content
Glama

recall

Search OmniMem memories by semantic similarity and return ranked results with abandoned-approach warnings, licence/provenance details, and optional valid-time or belief-time filters.

Instructions

Search memories by semantic similarity. Returns ranked results; abandoned-approach warnings appear first.

Every result carries its licence and provenance. When any result's licence is still unknown, a trailing entry with result_type 'licence_notice' (no key) lists them so the human can classify.

top_k is a ceiling, not a quota. Results below the relevance floor (RECALL_MIN_SCORE, default 0.15) are dropped instead of padding the list, so fewer results than you asked for — including none — is a normal answer.

A result flagged weak_match scored inside the band where relevant and irrelevant results genuinely overlap on this model. Read it, but do not build on it and do not go looking for a connection to the query: if it is not obviously about what you asked, it isn't.

valid_at asks what was true at a time ('where did Sam live last March'); known_at asks what OmniMem believed at a time ('what did we think in March'). Both together ask what was believed then about then. Without them, a memory that has stopped being true still comes back, ranked lower and carrying its valid_to.

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
queryYes
top_kNo
known_atNoOnly what OmniMem believed at this time ("what did we think in March"), with trust as it stood then.
valid_atNoOnly what was true at this time ("where did Sam live last March"): an ISO date, a timestamp or a phrase.
namespacesNo
domain_filterNo
expand_queriesNo
project_filterNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv7.1.7

TDQS

A4.1/5.0
Behavior5/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 so well: it discloses ranking order (abandoned-approach warnings first), that top_k is a ceiling with a RECALL_MIN_SCORE=0.15 floor, that empty results are normal, that abandoned or expired memories still surface ranked lower with valid_to, and that licence_notice pseudo-entries are appended. These are exactly the non-obvious behaviors an agent would otherwise misread.

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 return order, then organized into short thematic paragraphs (licence handling, top_k semantics, weak_match, temporal parameters). Some sentences are longer than needed (the licence_notice sentence is convoluted), but almost every line carries operational meaning.

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 an 8-parameter, annotation-free retrieval tool with no output schema, the description covers return structure, ranking rationale, empty-result semantics, result flags, and temporal filtering — enough to interpret output correctly. The remaining gap is the unexplained scoping parameters (namespaces, domain_filter, project_filter, expand_queries), which could cause the agent to retrieve from unintended scopes.

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 only 25% across 8 parameters, and the description compensates thoroughly for top_k, valid_at, and known_at but leaves namespaces, domain_filter, project_filter, and expand_queries entirely unexplained in both the schema and the prose. The agent can call it with just a query, but cannot reason about the filtering and expansion parameters.

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?

Opens with a specific verb and resource ('Search memories by semantic similarity') and states the return shape ('ranked results'). It does not name or contrast with the obvious siblings recall_detail or recall_index, so the agent must infer that this is the fuzzy/semantic search rather than the exact-lookup variants.

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 explicit conditional guidance for parameters (valid_at = what was true, known_at = what was believed, both together for believed-then-about-then) and explicit instructions for how to treat weak_match results ('do not build on it'). What it lacks is routing guidance: nothing tells the agent when to prefer recall_detail, recall_index, or recent_knowledge instead.

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