Skip to main content
Glama
testrail-mcp
by tmurraypt

get_cases

List test cases for a TestRail project with optional filters for suite, section, priority, milestone, type, and timestamps to retrieve targeted cases.

Instructions

List test cases for a project with optional filters

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": {
      "project_id": "<project_id>"
    },
    "name": "get_cases"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax results (1-250)
offsetNoNumber of records to skip
type_idNoComma-separated type IDs
suite_idNoSuite ID
project_idYesProject ID
section_idNoSection ID
priority_idNoComma-separated priority IDs
milestone_idNoMilestone ID
created_afterNoUnix timestamp
updated_afterNoUnix timestamp
created_beforeNoUnix timestamp
updated_beforeNoUnix timestamp

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description bears the full disclosure burden, and it says almost nothing about behavior. It does not mention pagination defaults, result ordering, caps on returned rows, or whether the call is read-only — all of which matter for a 12-parameter list endpoint.

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?

A single front-loaded sentence with no filler or redundant wording. Its brevity is efficient rather than padded, though it also leaves the definition thin overall.

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

Completeness2/5

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

For a tool with 12 parameters, no annotations, and no output schema, the description covers too little. It omits guidance on pagination (limit 1-250, offset), timestamp formats, filter combination behavior, and what a response contains, so an agent must infer most operating details.

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 description coverage is 100%, so every parameter is already documented in the schema and baseline 3 applies. The description only echoes two aspects ('for a project' and 'optional filters') without adding semantics such as how comma-separated type_id/priority_id combine with other filters.

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?

Names a specific verb and resource ('List test cases') plus the scoping entity ('for a project'), so the core operation is unambiguous. It does not, however, distinguish itself from the singular sibling 'get_case' or explain how a list differs from a single-case fetch, which keeps it below a 5.

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

Usage Guidelines2/5

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

The phrase 'with optional filters' implies filtering exists but never states when to reach for this tool instead of 'get_case', 'get_tests', or other retrieval siblings. There are no exclusions, prerequisites, or alternative-routing guidance at all.

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