Skip to main content
Glama

eval

Evaluate retrieval quality against a golden query set, returning nDCG@10, recall@10, and MRR per query and overall for CI regression detection.

Instructions

Run the ranking-quality harness against a golden query set and return nDCG@10 / recall@10 / MRR per query and aggregated. Indexless in the sense that it never builds — consumes whatever index already lives at the project root (run index first if missing). Intended as a CI regression guard. MCP defaults to json: true so agents receive structured EvalReport JSON instead of the human-readable summary the CLI emits.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
jsonNoEmit the EvalReport as JSON to stdout. Default `true` in MCP context (agents want structured output) — note the CLI default is `false`. Set explicitly to `false` to fall back to the human-readable summary.
benchNoPath to the golden-set TOML. Defaults to the bundled `benches/ranking_golden/queries.toml` on the CLI side; pass this when running against a fixture.
min_ndcgNoFail with non-zero exit if mean nDCG@10 drops below this floor. Default 0.0 (always succeed). CI pins a recorded floor.
project_rootNoAbsolute path to the project root (defaults to the MCP working directory)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.27.3

TDQS

A4.2/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 that the tool is indexless (never builds), consumes only the existing index, and that min_ndcg drives a non-zero exit — i.e. it can fail. It omits behavioral traits like runtime cost or idempotency, so it is strong but not exhaustive.

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?

Four sentences, all substantive: action, indexless precondition, CI intent, and the MCP json default lead in order of importance. Slightly dense with parentheticals, but nothing is pure 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?

For a four-param, no-output-schema tool with no annotations, the description covers action, deliverables, dependency ordering, failure semantics, and a default divergence between MCP and CLI. There is no output schema, but the return shape (per-query and aggregated metrics as EvalReport JSON) is named.

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 documents all four parameters, including the MCP-vs-CLI default for `json`. The description's parameter remarks largely restate schema content, so the baseline 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?

States a specific verb and resource ("Run the ranking-quality harness against a golden query set") and enumerates the exact outputs (nDCG@10, recall@10, MRR). This clearly separates it from sibling tools like `index`, `tests_for`, or `check`.

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 context ("Intended as a CI regression guard") and a prerequisite ("run `index` first if missing"). It lacks an explicit when-not-to-use or a direct comparison against a sibling such as `check`, so it falls just short of a 5.

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