Skip to main content
Glama
uarlouski

TestRail MCP Server

get_cases

Retrieve test cases from a TestRail project. Filter by section, priority, type, or custom fields using API or client-side where clause. Returns case IDs, titles, and additional requested fields.

Instructions

Get all test cases for a project. Filter by section, API params (priority, type), or any field including custom fields via 'where'. Returns case IDs, titles, and any additional requested fields.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_idYesThe ID of the project. Use get_projects to find available projects
sectionNoSection filter configuration. Use get_sections to find available sections
filterNoOptional API-side filters (more efficient for large datasets). Supported: priority_id, type_id, created_by, updated_by, milestone_id, refs, created_after, created_before, updated_after, updated_before. Use comma-separated values for IDs. Example: {"priority_id": "1,2", "type_id": "3"}
whereNoOptional client-side filter for any field including custom fields (filters after fetching all cases). Supports exact value matching. Example: {"custom_automation_status": 1, "priority_id": 2}
fieldsNoAdditional fields to include in response beyond id, title, and suite_id. Use get_case_fields to see available fields. Example: ["priority_id", "type_id", "custom_automation_status"]
Behavior4/5

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

With no annotations, the description carries full burden. It discloses return format (IDs, titles, additional fields), filtering types (API-side efficient vs client-side for custom fields), and implies a read operation. Lacks detail on pagination or performance implications but is otherwise transparent.

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 sentences, front-loaded with purpose, no redundancy. Every sentence adds distinct information: retrieval scope, filtering options, and return content. Highly efficient.

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?

Given 5 parameters (nested objects), no output schema, and no annotations, the description covers key aspects: required parameter, filter options, and return fields. It lacks mention of pagination or error handling, but is largely complete for typical use.

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%, baseline 3. The description adds value by explaining the difference between filter (efficient, API-side) and where (client-side for custom fields), and clarifies the fields parameter. This goes beyond the schema's descriptions.

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 clearly states the action ('Get all test cases for a project'), specifies filtering options, and indicates the return fields (IDs, titles, additional fields). This distinguishes it from siblings like get_case (single case) or add_case (creation).

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 provides clear context for use (retrieving test cases with filters) but does not explicitly mention when not to use it or suggest alternatives (e.g., get_case for a single case, add_case for creation). Sibling names imply alternatives but are not referenced.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/uarlouski/testrail-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server