Skip to main content
Glama

Run tests

run_tests

Run a single test (test_id), all tests of a suite version (suite_version_id, optional group_name), or a suite's current version (suite_id) against an environment (environment_id). Executes the runner(s), stores runs + artifacts, updates each test's traffic light, and returns a summary. target_version/target_commit are recorded on each run.

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

Input Schema

NameRequiredDescriptionDefault
test_idNoRun just this test
suite_idNoRun the suite's current version
group_nameNoRestrict a suite/version run to one group
target_commitNoGit commit under test (recorded on the run)
environment_idNoEnvironment to run against (provides base_url)
target_versionNoSoftware version under test (recorded on the run)
suite_version_idNoRun all tests of this suite version

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Goes well past the annotations by disclosing concrete side effects: it executes runners, stores runs and artifacts, updates each test's traffic light, and returns a summary. This is meaningful because annotations only say readOnly=false and idempotent=false; the description explains *what* gets written. It omits permission/auth requirements and expected duration for long-running suites.

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?

Two dense sentences with zero filler; the mode list is front-loaded and the side-effect/return clause follows logically. Every clause carries information an agent needs before calling.

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 a 7-parameter side-effecting tool with no output schema, it still conveys enough to call correctly and even hints at the return shape ('returns a summary'). The remaining gap is that all parameters are optional in the schema, yet the description never states exactly one scoping mode (plus environment_id) must be supplied, nor what a zero-argument call does.

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 100%, so the baseline is 3, but the description adds real meaning the schema cannot express: the relationship between test_id, suite_version_id/group_name and suite_id as alternative scoping modes, and the clarification that target_version/target_commit are merely recorded on the run rather than used for selection.

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?

Names a specific verb (run) and enumerates the three distinct invocation modes with the exact parameter that selects each: test_id, suite_version_id (+ optional group_name), or suite_id. This makes the tool clearly distinct from the read-only sibling get_test_run without needing to name it.

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?

The mode enumeration implicitly tells the agent when to use which parameter combination, and the parenthetical on environment_id ('provides base_url') explains its role. It stops short of explicit exclusions or a statement that the modes are mutually exclusive, and says nothing about when a plain get_test_run would be preferable.

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