Skip to main content
Glama
g-tiwari

@g-tiwari/mcp-testrail

by g-tiwari

get_cases

Retrieve TestRail test cases filtered by project, suite, section, status, priority, and other attributes. Use it to locate specific cases for test planning, review, or automation.

Instructions

List test cases with filters

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
refsNoComma-separated reference IDs
limitNoMax items (max 250, default 250)
filterNoFull text search filter
offsetNoOffset for pagination (default 0)
type_idNoComma-separated case type IDs
suite_idNoSuite ID (required for multi-suite projects)
status_idNoComma-separated status IDs (1=Passed,2=Blocked,3=Untested,4=Retest,5=Failed)
created_byNoComma-separated creator user IDs
project_idYesProject ID
section_idNoSection ID filter
updated_byNoComma-separated updater user IDs
priority_idNoComma-separated priority IDs
template_idNoComma-separated template IDs
milestone_idNoComma-separated milestone IDs
created_afterNoCreated after timestamp
updated_afterNoUpdated after timestamp
created_beforeNoCreated before timestamp
updated_beforeNoUpdated before timestamp

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It tells the agent this is a list/read operation with filters, which implies non-destructive behavior, but it does not disclose pagination defaults, response shape, or the fact that no output schema exists. The description is safe but thin on behavioral specifics such as limit default and maximum.

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?

The description is a single short sentence with no filler, and the core action 'List test cases' is front-loaded. It is concise enough, though it omits useful context that could be added without bloating the text, such as 'use suite_id for multi-suite projects'.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool has 18 parameters, no output schema, no annotations, and no usage guidance, the description is minimal. It covers the basic purpose but does not explain pagination behavior, the multi-suite requirement, or how filtering parameters combine. The schema covers parameter semantics, but an agent would benefit from a sentence about pagination and response structure for a list operation of this complexity.

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

Parameters3/5

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

Schema coverage is 100%, so the schema already documents all 18 parameters and their meanings. The description adds no additional parameter nuance beyond 'filters', and it does not mention relationships like suite_id being required for multi-suite projects. With full schema coverage, a baseline of 3 is appropriate, but the description misses a chance to clarify filter semantics like comma-separated values.

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?

The description 'List test cases with filters' clearly identifies a list operation on the test-cases resource and signals that filtering is supported. It is brief but sufficient to distinguish it from get_case (singular) and from add_case/update_case/delete_case siblings. It could be stronger by naming the project context or noting pagination, but it is not tautological or vague.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies this is the go-to tool for listing test cases, and the schema shows required project_id plus a suite_id required for multi-suite projects. However, it does not explicitly state when to prefer this over get_case, get_test, or get_results, nor does it mention the suite_id prerequisite for multi-suite projects. Usage context is implied rather than stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.