Skip to main content
Glama

palace_recall_check

Verifies known memories are retrievable by running hybrid-search probes and checking expected sources in top results, reporting pass/fail counts and ranks; use after mining or embedding-model changes.

Instructions

Test whether known memories can actually be found. For each probe it runs the same hybrid search as palace_search and checks whether a drawer whose source_file equals expected_source appears in the top limit results. Returns ok (all passed), passed/failed counts, and per-probe rank, top source and top similarity. Read-only. Use it after mining or switching embedding models to confirm recall; to simply look something up use palace_search.

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": {
      "checks": "<checks>"
    },
    "name": "palace_recall_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax results per probe (default 5)
checksYesProbes to run; at least one is required

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.20.7
    • addedInput schema / properties / checks / description
      Added value: +"Probes to run; at least one is required"
    • addedInput schema / properties / checks / items / properties / expected_source / description
      Added value: +"Exact source_file the matching drawer must have to pass"
    • addedInput schema / properties / checks / items / properties / query / description
      Added value: +"Search text for this probe"
    • addedInput schema / properties / checks / items / properties / room / description
      Added value: +"Restrict the probe to this room (optional)"
    • addedInput schema / properties / checks / items / properties / wing / description
      Added value: +"Restrict the probe to this wing (optional)"
  2. First observedv0.20.5

TDQS

A4.9/5.0
Behavior5/5

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

No annotations are provided, so the description carries the full burden and does so: it discloses the mechanism (same hybrid search as palace_search), the exact pass condition (drawer whose source_file equals expected_source in the top `limit`), the read-only nature, and the returned fields (ok, passed/failed, per-probe rank, top source, top similarity). Little behavioral context an agent needs is missing.

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

Conciseness5/5

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

Front-loaded with purpose, then mechanics, then return values, then usage and the sibling alternative. Every sentence carries distinct information with no repetition or filler.

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?

The tool is a non-trivial diagnostic that replays a search pipeline, yet with no output schema the description still spells out both the pass semantics and the return shape. Nothing needed to invoke or interpret it correctly is absent.

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 adds real meaning by explaining that `limit` bounds results per probe and that `expected_source` is matched by exact equality against a drawer's source_file to determine pass/fail. It does not elaborate on room/wing scoping, which the schema already covers.

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: 'Test whether known memories can actually be found' by replaying the hybrid search and checking top-`limit` results. It distinguishes itself from palace_search explicitly (diagnostic verification vs. lookup), so an agent can route without opening either 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?

Gives concrete when-to-use triggers ('after mining or switching embedding models to confirm recall') and a when-not-to-use with the named alternative ('to simply look something up use palace_search'). No inference is required.

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