Skip to main content
Glama

get_experiment_run

Retrieve a scoring run report to inspect cell outcomes, per-metric summaries, and grid rows, with filters for session origin, deployment, or pipeline version.

Instructions

Reads one scoring run: how its cells ended, a summary per Metric, then the grid rows.

A scoring run is a Metric Group judging chosen Sessions of one pipeline. Find one with list_metric_groups (last_run) or list_experiments (a side's scoring_runs). It judges each chosen Session with each Evaluator; one cell per pair. counts says how the cells ended: errored is the Evaluator's own code breaking (see the cell's error_detail), not a low Metric; failed is a cell that never ran and can be retried. metrics summarises each Evaluator's Metric over every row, rows past max_rows included: mean, min and max for a Score, a count per label for a Label, and how often it did not apply. Each row is a Session with its cells; a cell's metrics carry the value per address (session, turn/2, ...) and the rationale the Evaluator wrote, which is what to group failures by. run.selection says whether the Sessions were SAMPLED or HAND_PICKED; only sampled runs say anything about traffic as a whole. composite is the Metric Group's single number for the run, 0 to 1 with 1 best, from normalized_means (each Metric on that scale) weighted by run.composite_weights, the formula the run started with. When it has no value it says reason and lists the Metrics that block it in missing. aggregate is the API's whole-run result per Metric: how its Sessions fell out (valued, errored, failed, pending, ...), coverage and the Metric's mean or label shares, in the units it declares; it is null until the run ends. usage is what the pipeline spent on the run's Sessions (tokens, duration, cost in USD, null unless cost_status is priced). evaluator_versions says which version of each Evaluator judged and what its Metrics declare. The filters keep only the cells whose Session's origin, Service or pipeline version match (a cell still running has no origin and matches none): they narrow counts, rows and metrics, but not aggregate, usage, normalized_means or composite, which stay whole-run. :param pipeline_name: Name of the pipeline. :param metric_group_id: The id of the Metric Group the run scored with. :param run_id: The run's id. :param max_rows: Most rows to return; the summaries still cover every row. :param origin: Only cells whose Session came from a Service, the pipeline's own API, or the Playground. :param deployment_id: Only cells whose Session this Service served. :param pipeline_version_id: Only cells whose Session this pipeline version served. :param session_id: Only this Session's row. :returns: The run report, or an error message.

The output is automatically stored and can be referenced in other functions. Returns a formatted preview with an object ID (e.g., @obj_123). Use the object store tools in combination with the object ID to view nested properties of the object. Use the returned object ID to pass this result to other functions.

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": {
      "pipeline_name": "<pipeline_name>",
      "metric_group_id": "<metric_group_id>",
      "run_id": "<run_id>"
    },
    "name": "get_experiment_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
originNo
run_idYes
max_rowsNo
session_idNo
deployment_idNo
pipeline_nameYes
metric_group_idYes
pipeline_version_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.1.44
    • addedInput schema / properties / deployment_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Deployment Id"
      +}
    • addedInput schema / properties / origin
      Added value: +{
      +  "anyOf": [
      +    {
      +      "enum": [
      +        "SERVICE",
      +        "PIPELINE_RUN",
      +        "PLAYGROUND"
      +      ],
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Origin"
      +}
    • addedInput schema / properties / pipeline_version_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Pipeline Version Id"
      +}
    • addedInput schema / properties / session_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Session Id"
      +}
  2. Changed3 schema fields changedv0.1.31
    • removedInput schema / properties / experiment_id
      Removed value: -{
      -  "title": "Experiment Id",
      -  "type": "string"
      -}
    • addedInput schema / properties / metric_group_id
      Added value: +{
      +  "title": "Metric Group Id",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "pipeline_name",
      -  "experiment_id",
      -  "run_id"
      -]New value: +[
      +  "pipeline_name",
      +  "metric_group_id",
      +  "run_id"
      +]
  3. Addedv0.1.29

TDQS

A4.4/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 burden and does so thoroughly: it explains that 'errored' means Evaluator code breaking rather than a low Metric, that 'failed' cells can be retried, that aggregate/usage/composite are null until the run ends or unless cost_status is 'priced', and that run.selection (SAMPLED vs HAND_PICKED) determines whether traffic-wide inference is valid. It also discloses the important side effect that output is auto-stored and returned as an @obj_123 reference for reuse via object store tools.

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

Conciseness3/5

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

It is front-loaded with the core purpose, but the body is a dense, unbroken prose block covering return fields, filter semantics, and object-store boilerplate without headings or bullets, making it hard to scan. Nearly every sentence is substantive, so the length is largely earned by the complexity, but the structure could be much tighter.

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 an 8-parameter, no-output-schema tool, the description explains return values in unusual depth, including null conditions and exactly which fields filters do and do not narrow. Minor gaps remain around error behavior beyond 'The run report, or an error message' and any access/permission requirements.

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 description coverage is 0%, so the description must compensate, and it does: every one of the 8 parameters has a documented meaning, including that max_rows limits rows but summaries still cover every row, and that origin maps to Service/pipeline API/Playground. The descriptions for pipeline_name, metric_group_id, and run_id are terse ('Name of the pipeline', 'The run's id'), which is the main residual gap given zero schema coverage.

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?

The opening sentence states a specific verb and resource ('Reads one scoring run') and then enumerates exactly what is returned: cell outcomes, a per-Metric summary, and the grid rows. It further anchors the concept ('a scoring run is a Metric Group judging chosen Sessions of one pipeline'), so an agent can distinguish it from list-level siblings 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?

It gives a concrete discovery path for the required identifiers ('find one with list_metric_groups (last_run) or list_experiments (a side's scoring_runs)'), which is actionable routing guidance. It does not, however, contrast this tool with close siblings such as get_experiment_results, get_evaluation_run, or list_experiment_runs, nor state when not to use it.

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