Skip to main content
Glama

Evaluate the agent on a golden set

evaluate

Run a golden set of reference SQL questions against a database to measure answer accuracy, diagnose each failure, and report the agent path and model cost.

Instructions

Run a golden set of questions with hand-written reference SQL against this database and report accuracy, every failure with its reason, the tool path taken and the cost. Pass the path to a YAML file of cases; omit it to use the one bundled with the sample database. Each case runs the full agent loop, so this calls the model once per step of every case and is not free — use only to run a single case first.

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

Input Schema

NameRequiredDescriptionDefault
onlyNo
golden_pathNo

Output Schema

NameRequiredDescriptionDefault

No arguments

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?

With no annotations supplied, the description carries the full behavioral burden and does so well: it discloses that each case runs the full agent loop, that the model is called once per step, and that this is not free. It also enumerates what gets reported (accuracy, every failure with reason, tool path, cost), which is exactly the cost and side-effect context an agent needs before invoking.

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?

Three sentences, front-loaded with the action and output, followed by the parameter mechanics and then the cost warning. The em-dash clause about per-step model calls earns its place by justifying the `only` recommendation.

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?

An output schema exists, so return values need not be spelled out, yet the description still summarizes the reported fields, which is helpful. For a two-parameter, zero-required evaluation tool with real monetary cost, the definition covers cost, defaults, scope and the recommended trial path.

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 0%, so the description must explain both parameters, and it does: golden_path is the path to a YAML file of cases with the bundled default described, and `only` restricts the run to a single case. The one gap is that the accepted form of `only` (case name, index, or id) is never specified.

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 a golden set of questions with hand-written reference SQL against this database, and report accuracy, failures, tool path and cost. That is unmistakably a batch evaluation harness rather than a single-query tool like ask or run_sql, so an agent can route correctly without opening the schema.

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 concrete operating guidance: pass a YAML path for cases, omit it to fall back to the bundled set, and use `only` to run one case first. The 'run a single case first' line is a genuine workflow recommendation, though there is no explicit statement of when not to use this tool versus the siblings.

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

Deploy Server

Other Tools