Skip to main content
Glama

get_evaluation_scores

Read-onlyIdempotent

Scores a saved evaluation batch against passages marked relevant in any batch over the same sources, returning hit rate, recall, MRR, nDCG, and precision.

Instructions

Score one saved evaluation batch (hit rate, recall, MRR, nDCG, precision) against passages marked relevant in any batch over the same sources.

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": {
      "workspace_id": "<workspace_id>",
      "batch_id": "<batch_id>"
    },
    "name": "get_evaluation_scores"
  }
}

Input Schema

NameRequiredDescriptionDefault
batch_idYes
workspace_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the bar is lower; the description still adds real behavioral value by disclosing that scoring is computed against relevant-marked passages pooled from any batch on the same sources, which tells the agent the result depends on cross-batch labels rather than a single batch's answers. It stops short of describing output shape or what happens when no relevant passages exist.

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?

A single dense sentence with the action and metrics front-loaded and the scoring-scope clause trailing. No filler, though the parenthetical metric list and the trailing clause make it slightly hard to parse in one pass.

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?

For a two-parameter read tool with no output schema, the description covers what is computed and against what reference set, which is the core need. It is nonetheless incomplete on parameter meaning and on what the response contains (per-metric values? per-query breakdown?), leaving gaps an agent would notice at invocation time.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% and both required parameters (workspace_id, batch_id) are bare strings, so the description must carry the burden. It gestures at "one saved evaluation batch" and "the same sources", but never maps or explains either parameter, nor whether batch_id must belong to workspace_id.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb ("Score") plus a specific resource ("one saved evaluation batch") and enumerates the metrics produced (hit rate, recall, MRR, nDCG, precision). The word "saved" implicitly separates this from run_evaluation, which presumably creates the batch, though it does not name that sibling directly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies the precondition (an existing saved batch) and explains where the relevance ground truth comes from ("passages marked relevant in any batch over the same sources"), which is useful context for choosing this tool. However, it never states when to prefer it over run_evaluation or get_evaluation_answers, and offers no exclusions or prerequisites such as requiring labels to already exist.

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