Skip to main content
Glama

Run a version's tests

run_version_tests
Read-onlyIdempotent

Run every test in a version's tests[] against that version's stored model and compare each with its expected output. Takes version_reference (any status but archived — a draft after patch_version, or a live version for a baseline). Runs against the stored model, so a patch saved a moment ago is included. A test passes when its result is within 0.005 of the expected result and its valid flag equals the expected valid. Expectations are read from output { result, valid }, or, when output has neither (tests imported from the hosted service), from result { result, valid }; expected_from says which. A test with neither is run but unchecked (passed: null). Returns { project_reference, version_reference, version, status, updated_at, total, passed, failed, unchecked, results: [{ id, name, passed, expected: { result, valid }, expected_from, actual: { result, valid }, problems, errors }], version_url, next_steps } — problems says why a test failed, errors is up to 5 of the engine's step errors for that run. Nothing is persisted. Use after patch_version, after adding or changing tests, or before a change to record the baseline. To change a test's expected output, patch_version on /tests//output/result (drafts only) — output takes precedence over result.

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": {
      "version_reference": "<version_reference>"
    },
    "name": "run_version_tests"
  }
}

Input Schema

NameRequiredDescriptionDefault
version_referenceYesUUID of the version whose tests to run — e.g. get_project's latest_draft.version_reference, or the version_reference patch_version returned.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Goes well beyond the readOnly/idempotent annotations: nothing is persisted, the run uses the stored model so a just-saved patch is included, pass tolerance is 0.005 with expected valid flag, unchecked tests return passed: null, and errors is capped at 5 engine step errors. The only gap is that the description is verbose and mixes behavioral disclosure into a long prose block.

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 purpose and dense with useful detail, but it reads as one long paragraph and repeats the full return shape inline. No sentence clearly lacks a purpose, yet readability would improve with structure.

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?

There is no output schema for this tool, so the description must supply the return contract; it does so completely, listing every top-level key and explaining results[], problems, errors, expected_from, and version_url. This is sufficient for an agent to call the tool and interpret the result.

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?

The single parameter's schema already covers 100% of parameters, and the description adds real meaning: the reference may point to any version except archived ones, including a fresh draft after patch_version or a live version used for baselining. It does not add much beyond that constraint, so it lands just above the high-coverage baseline.

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 the specific verb and resource plus scope: run every test in a version's tests[] against that version's stored model and compare each with its expected output. This is unmistakably distinct from siblings like patch_version or run_quote, which name different resources.

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?

Explicitly names when to use it: after patch_version, after adding or changing tests, or before a change to record the baseline. It also gives the constraint on which versions qualify (any status but archived), states what to do instead when changing expected output (patch_version on /tests/<id>/output/result, drafts only), and notes output takes precedence over result.

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