Skip to main content
Glama

search_test_cases

Retrieve test cases from TestRail based on project, suite, section, or title, with configurable result limit.

Instructions

List test cases in a project, optionally filtered by suite, section, or title substring.

Both project_id and suite_id fall back to env defaults (TESTRAIL_PROJECT_ID / TESTRAIL_SUITE_ID) when omitted or 0.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
suite_idNo
project_idNo
section_idNo
title_containsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations provided, the description carries the full burden. It discloses the read nature (listing) and env defaults, but does not mention rate limits, permissions, result ordering, or other behavioral traits. Adequate but not thorough.

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?

Two well-structured sentences: first states the purpose, second explains defaults. No extraneous information, front-loaded with key action.

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, 0% schema coverage, and an output schema (not shown), the description covers the core use case well. It explains the listing action and filters, but could mention limit or pagination behavior. Overall, complete enough for a list tool.

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 0%, so the description must compensate. It names four of five parameters (project_id, suite_id, section_id, title_contains) but omits 'limit'. It adds context about env defaults but does not explain each parameter's meaning beyond the schema.

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 tool's purpose: 'List test cases in a project' with optional filters. This distinguishes it from sibling tools like get_test_case (single) or add_test_cases_bulk (create).

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?

The description provides guidance on default values: 'Both project_id and suite_id fall back to env defaults when omitted or 0.' This helps agents know when to omit these parameters. However, it does not explicitly state when not to use this tool or suggest alternatives.

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/Sergey-Bl/testrail-mcp'

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