Skip to main content
Glama

Robot Actions — Remote Device Control

testrail_list_tests_for_run

List EVERY test inside a TestRail run, walking all pages server-side so the caller never handles offsets. Returns each test with its T-id (test instance, e.g. T1234), C-id (underlying case_id — feed this to testrail_get_case), title, and status_id. Filter by statusIds (TestRail status: 1=passed, 2=blocked, 3=untested, 4=retest, 5=failed) to e.g. list only failed tests when triaging. Capped at 20 pages (5000 tests); check capReached before concluding a test is not in the run.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
runIdYesTestRail run id (R-number)
statusIdsNoOptional status filter — e.g. [5] for failed only, [2,5] for blocked+failed

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations, the description carries the full burden, and it delivers: it discloses server-side pagination, the exact fields returned (T-id, C-id, title, status_id), the status-code mapping, and the 20-page/5000-test cap with the capReached warning. This is far beyond a vague 'list tests' phrasing.

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?

Three dense sentences, each earning its place: the first establishes scope and pagination behavior, the second defines the return payload, the third documents filtering and the hard cap. No filler, no repetition of schema fields.

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 and no annotations, so the description must explain returns, parameters, and edge behavior. It does all three: return fields, status filter semantics, and the cap/capReached caveat. Nothing critical is missing for an agent to invoke it correctly.

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

Parameters5/5

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

The schema covers the parameters, but the description adds substantial meaning: statusIds is fully enumerated with TestRail's numeric meanings, and the C-id is explicitly linked to testrail_get_case. This goes well above the schema-only 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?

The description states a specific verb ('List EVERY test') and a clear resource ('inside a TestRail run'), and distinguishes test instances (T-id) from underlying cases (C-id). This makes its purpose unmistakable and separates it from sibling TestRail case-listing tools.

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 explains that pagination is handled server-side so the caller never manages offsets, and it gives a concrete use case: filtering by statusIds to list only failed tests when triaging. It does not explicitly name alternative sibling tools or state when not to use it, but the intent 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.

Resources