Skip to main content
Glama

Caisson

Search Verified Cache & Dead Ends

query_cache
Read-onlyIdempotent

Search the verified Memoization Registry for existing kernel-verified lemmas, scripts, literature checks, and KNOWN DEAD ENDS before starting proof search or code generation. CALL THIS FIRST whenever starting a node, encountering a subgoal blocker, or testing a proof strategy—a single call often eliminates 50k+ tokens of redundant reasoning. Returns content-addressed artifact_ids you MUST pass in submit_artifact.derived_from when reusing results. Filter by environment_version (e.g. "lean4:v4.33.1") for exact compatibility and keep include_dead_ends=true to avoid known traps. Do NOT use this to inspect current node claim leases or DAG structure (use read_graph instead).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "query_cache"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagsNoOptional semantic tags that results must match.
limitNoMax results to return (default 10, max 50).
queryNoConcise mathematical terms, Lean declaration/type fragments (e.g. 'Nat.Prime Chebyshev upper bound'), or error keywords. Avoid full file dumps. Required unless content_hash or lineage_of is provided.
cursorNoOpaque pagination cursor from a previous query_cache response.
domainNoOptional Domain Pack filter (e.g., 'math-lean4').
lineage_ofNoOptional artifact_id to inspect transitive lineage (ancestors, descendants, depth) with privacy airlock enforcement.
search_modeNoSearch ranking mode: 'hybrid' (default, vector similarity + FTS/BM25 RRF fusion), 'lexical' (FTS/BM25 only), or 'semantic' (vector cosine similarity only).hybrid
content_hashNoOptional exact SHA-256 content_hash lookup via the Memoization Artifact Index.
workspace_idNoOptional workspace scope to include authorized private artifacts alongside public ones.
artifact_typesNoOptional filter by artifact type (solution, script, lemma, dead_end, literature_check).
include_dead_endsNoDefault true. Keep true to retrieve failed approaches and counterexamples that prevent wasted branches.
environment_versionNoExact or prefix match on pinned toolchain version (e.g., "lean4:v4.33.1") for compatibility.
environment_lock_hashNoOptional exact SHA-256 environment_lock_hash filter for strict toolchain compatibility.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), and the description adds materially more: expected token savings, that results are content-addressed artifact_ids which must be threaded into submit_artifact.derived_from, and that include_dead_ends should stay true to avoid known traps. This is behavior an agent could not infer from the annotations or schema.

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 the imperative call-first guidance and free of filler, but dense with parenthetical asides and a specific token-savings claim that reads slightly promotional. Still, every sentence carries actionable information.

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 13-parameter search tool with no output schema, the description covers purpose, invocation timing, key compatibility filters, and downstream use of returned artifact_ids. Minor gaps remain on result ordering and the non-highlighted filters, but the 100%-covered schema carries those adequately.

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 the baseline is 3, but the description adds real meaning for two key parameters: environment_version is framed as an exact-compatibility filter and include_dead_ends as trap avoidance rather than just a boolean. The remaining parameters (tags, search_mode, cursor, workspace_id, lineage_of) are left to the schema, which documents them well.

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 ("Search the verified Memoization Registry") plus the artifact categories it covers, including KNOWN DEAD ENDS. It also explicitly distinguishes itself from read_graph, so an agent can separate the two without opening schemas.

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 explicit when-to-use triggers ("CALL THIS FIRST whenever starting a node, encountering a subgoal blocker, or testing a proof strategy") and an explicit when-not with the named alternative ("Do NOT use this to inspect current node claim leases or DAG structure (use read_graph instead)"). Nothing 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.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources