Skip to main content
Glama

Robot Actions — Remote Device Control

TestRail list cases

testrail_list_cases
Read-onlyIdempotent

List test cases in a TestRail project, optionally scoped to a suite and/or section. Use this to discover case ids before calling testrail_get_case, or to check what already exists before creating a new case with testrail_create_case. Returns { cases: [...], paging: {...} }, where each case is a compact summary (id, title, section_id, suite_id, priority_id, type_id, refs) — call testrail_get_case for full step detail on a specific case. Results are NOT auto-paged: TestRail caps a page at 250, so always check paging.hasMore and re-call with offset=paging.nextOffset before concluding a case does not exist. Prefer scoping with sectionId/suiteId over paging the whole project.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMax cases to return in this page (TestRail default 250)
offsetNoRow offset for paging past the first page
compactNoReturn only id + title per case instead of all 7 fields. Roughly 15x smaller — use when scanning for whether a case exists, then call testrail_get_case for detail.
suiteIdNoSuite id — required for multi-suite projects, optional for single-suite
projectIdYesTestRail project id
sectionIdNoSection id — scope results to cases directly inside this section

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing the return envelope ({ cases, paging }), the exact fields per case, and critically that results are NOT auto-paged with a hard cap of 250 — instructing the agent to check paging.hasMore and re-call with offset=paging.nextOffset. This is behavior an agent cannot infer from readOnlyHint/idempotentHint alone.

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?

Front-loads the core action, then usage, then return shape, then the pagination caveat. Dense but every sentence carries non-redundant operational guidance; nothing could be cut without losing information.

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?

With no output schema, the description compensates by describing the return structure and paging fields, plus the compact-summary nature of results. Combined with the parameters and annotations, an agent has everything needed to call and page correctly.

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. The description adds real semantic value on top: it states that sectionId/suiteId scoping is preferred over paging the whole project and ties offset to paging.nextOffset, clarifying intended parameter usage beyond the raw schema text.

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?

States a specific verb (List) and resource (test cases in a TestRail project) with its optional scoping. It distinguishes from testrail_get_case and testrail_create_case by naming them, but never distinguishes itself from the close siblings testrail_find_cases or testrail_list_all_cases, which an agent could easily confuse it with.

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?

Gives explicit when-to-use context: discover case ids before testrail_get_case, or check existence before testrail_create_case. It also advises preferring sectionId/suiteId over paging the whole project. However, it offers no exclusion against testrail_find_cases or testrail_list_all_cases, so sibling selection remains ambiguous.

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