Skip to main content
Glama

hub_recall

Search project knowledge across cards, decisions, journals, and tasks, ranking hits by term coverage, source importance, and recency with dated stale flags for verification.

Instructions

What do we know about X — ranked across project cards, their sections, decisions, the journal and tasks, instead of hub_search's flat exact-substring list or hub_get's everything-about-one-project. Scoring is deterministic and readable: term coverage first, then where the line lives (a decision outranks a passing note), then recency. EVERY hit carries the date it was true as of and a stale flag — recall's real failure mode is handing over a two-month-old fact with this morning's confidence.

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

Input Schema

NameRequiredDescriptionDefault
fullNoreturn everything, uncapped. By default long lists are trimmed (and, where the description says so, long texts cut) to fit an agent context, and what was left out is reported in `truncated`.
limitNodefault 20
queryYeswords that name the thing; stop-words (the, not, of, and their Russian counterparts) are dropped and listed back as `dropped`; a term matches at the start of a word, never inside one
projectNoonly this project — a slug, or several comma-separated
staleDaysNoa hit older than this is flagged stale, default 30

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.9.88
    • changedInput schema / properties / full / description
      Previous value: -"return everything, uncapped. By default long lists are trimmed to fit an agent context and what was left out is reported in `truncated`."New value: +"return everything, uncapped. By default long lists are trimmed (and, where the description says so, long texts cut) to fit an agent context, and what was left out is reported in `truncated`."
  2. Changed2 schema fields changedv0.9.15
    • addedInput schema / properties / project
      Added value: +{
      +  "description": "only this project — a slug, or several comma-separated",
      +  "type": "string"
      +}
    • addedInput schema / properties / query / description
      Added value: +"words that name the thing; stop-words (the, not, of, and their Russian counterparts) are dropped and listed back as `dropped`; a term matches at the start of a word, never inside one"
  3. Addedv0.9.0

TDQS

A4.3/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 deterministic scoring order (term coverage, source authority, recency), states that every hit is annotated with an as-of date and a stale flag, and names the tool's main failure mode. It doesn't cover read-only/rate/permission traits, but those are secondary for a retrieval tool.

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?

Three sentences, front-loaded with the core question and the sibling contrast, then scoring rules, then the staleness caveat. Slightly editorial in the closing clause ('this morning's confidence'), but it justifies itself by motivating the stale flag.

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 retrieval tool with no output schema, the description covers ranking, cross-source scope, per-hit date/staleness metadata, and routes to alternatives. Result payload shape beyond date and stale flag is left implicit, but that gap is minor.

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 the schema already explains query tokenization, project slugs, staleDays and the full/limit trimming behavior. The description adds no parameter-level detail beyond the ranking notion, so the baseline of 3 applies.

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?

The description defines a specific resource and behavior: ranked recall across project cards, sections, decisions, journal and tasks. It explicitly contrasts this with hub_search's flat exact-substring list and hub_get's single-project dump, so an agent can pick it out from its nearest siblings without reading any schema.

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?

The opening question ('What do we know about X') frames the use case, and the alternatives are named with the condition that selects them: ranked multi-source recall here, flat substring matching via hub_search, single-project retrieval via hub_get. Nothing essential 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.