Skip to main content
Glama

Run a test

run_test
Destructive

Start a run of one test. Runs take minutes: poll get_run until final is true. watchUrl opens the run live without signing in. App tests run the newest build of their app unless buildId names another (see list_builds). watchUrl is a view-only link anyone can open (no sign-in) to watch the run live and read its result for a while after it ends; give it to the person waiting for the result. Absent when the workspace turned watch links off. REST: send an Idempotency-Key header so a retried request does not start a second run. Reference: https://testsy.dev/docs/mcp/

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": {
      "testId": "<testId>"
    },
    "name": "run_test"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoWebsites: start at this address instead of the test's saved one — a preview or staging deploy of the same site. The run then explores (cold).
modeNoauto (default) replays the learned path when it is fresh, else explores; cold always explores; warm only replays.
deviceNoApp tests: this run on a phone or tablet, whatever the test is set to (the test does not change; see list_devices)
testIdYesTest id (t_…)
buildIdNoApps: run this build (ab_…)
osVersionNoApp tests: this run on this OS version, for example latest, iOS 26 or Android 14 (the test does not change; see list_devices)
orientationNoApp tests: this run started in this orientation, default, portrait or landscape (the test does not change)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Beyond the annotations it discloses that runs take minutes, that watchUrl is an unauthenticated view-only link that is absent when watch links are disabled, and that retried REST calls need an Idempotency-Key — which usefully reinforces idempotentHint=false. It never explains the destructiveHint=true side, i.e. what resource or state a run consumes or overwrites.

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?

The operational guidance is front-loaded and useful, but watchUrl is explained twice in near-identical terms ("opens the run live without signing in" then "a view-only link anyone can open… to watch the run live"), and the trailing REST/Reference line breaks the flow.

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?

With seven params, full schema coverage, and annotations present, the description covers the async lifecycle, the build default, and the idempotency requirement. It never states what the call returns (a run id or object with watchUrl), which the agent must guess before it can poll.

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 semantics the schema lacks: app tests default to the newest build unless buildId names another. The other documented parameters (url, mode, device, osVersion, orientation) are left entirely to the schema.

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?

"Start a run of one test" gives a specific verb plus a scoped resource, and the "one test" qualifier implicitly separates it from the sibling run_project. It never names run_project, so the sibling distinction is inferable rather than stated.

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 tells the agent what to do after starting (poll get_run until final is true), where to look for build alternatives (list_builds), and who to hand watchUrl to. There is no explicit "do not use this when…" clause or cost/quota caution, but the surrounding workflow is clear.

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.