Skip to main content
Glama

memory_kibitzer_candidates

Read-onlyIdempotent

Retrieve ranked live memory candidates for a query, filtering out surfaced and excluded paths so a host can judge relevance and submit a factual nudge through its own admission gate.

Instructions

Kibitzer-shaped live candidates, not autonomous resident nudges.

Lower score is better, excerpt <=200 UTF-16 units. Description and body are ranked; system/archive/expired and surfaced/excluded paths are removed before the final cap. A host still judges relevance and submits a factual nudge through its own offered-path/admission gate. When the server has MNEMOSYNE_RERANK_API_KEY and limit <= 5, candidates are reranked across languages by a hosted judge (selector "crosslingual-rerank"); otherwise, or on any judge failure, BM25 is used and fallback says why. MNEMOSYNE_RERANK=off disables it.

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

Input Schema

NameRequiredDescriptionDefault
limitNo
queryYes
surfacedNo
exclude_pathsNo
force_refreshNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive, closed-world, so the extra detail here is genuine surplus: lower score is better, excerpts capped at 200 UTF-16 units, system/archive/expired and surfaced/excluded paths stripped before the final cap, and rerank behavior with env-var conditions plus a `fallback` reason field. The env-var gating (MNEMOSYNE_RERANK_API_KEY, limit<=5, MNEMOSYNE_RERANK=off) is exactly the kind of operational context annotations cannot express.

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

Conciseness3/5

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

Sentences are information-dense with little padding, but the opening line is the most cryptic sentence rather than the clearest, so it is not front-loaded for a reader unfamiliar with the terminology. Config and fallback details occupy the back half and could be compressed.

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?

An output schema exists, so return shape need not be re-explained, and the ranking/filtering/rerank behavior is well covered. Gaps remain around the one undocumented parameter (`force_refresh`), the absence of guidance relative to sibling search tools, and the undefined notion of 'offered-path/admission gate' that the caller must implement.

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 0%, so the description must carry all five parameters; it partially does. It implies that `limit` drives the cap and the rerank threshold, that `surfaced` and `exclude_paths` cause removals, and that `query` drives BM25 ranking, but `force_refresh` is never mentioned and the semantics of 'surfaced removal' are only gestured at.

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 description says it returns ranked 'live candidates' with a score and excerpt, which conveys the resource type, but there is no plain verb and the framing ('Kibitzer-shaped', 'autonomous resident nudges') uses undefined project jargon rather than a recognizable retrieval verb. An agent can infer it produces candidate memory snippets, but must reverse-engineer 'kibitzer' from context.

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?

It distinguishes itself negatively from 'autonomous resident nudges' and mentions a host judging relevance, but never states when to choose this over memory_search, memory_related, or memory_get_note. No preconditions or exclusions are given beyond a note that the host applies its own admission gate.

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