Get TestRail Tests
get_testsRetrieve test cases from TestRail test runs with filtering options for status, labels, and pagination to analyze test execution data.
Instructions
Returns a list of tests for a test run.
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": {
"run_id": "<run_id>"
},
"name": "get_tests"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run_id | Yes | The ID of the test run | |
| status_id | No | A comma-separated list of status IDs to filter by | |
| limit | No | The number that sets the limit of tests to be shown on the response (max 250, default 250) | |
| offset | No | The number that sets the position where the response should start from (pagination offset) | |
| label_id | No | IDs of labels as comma separated values to filter by |