Skip to main content
Glama
bun913

TestRail MCP Server

by bun913

addCase

Create new test cases in TestRail by specifying section, title, steps, and custom fields to organize testing workflows.

Instructions

Creates a new test case in TestRail. REQUIRED: sectionId, title. OPTIONAL: typeId, priorityId, templateId, customSteps, customExpected, customStepsSeparated, customFields, etc. Use getCaseTypes to find valid typeId values. NOTE: templateId=2 is required to use customStepsSeparated (array of step objects with 'content' and 'expected' fields). For simple text steps, use customSteps and customExpected instead. Use customFields for any additional custom fields (e.g., {custom_case_security_score: 'high'}).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sectionIdYesTestRail Section ID
titleYesTest case title
typeIdNoTest case type ID
priorityIdNoTest case priority ID
estimateNoTest case estimated time
milestoneIdNoTestRail Milestone ID
refsNoTest case references
templateIdNoTemplate ID (use 2 for custom_steps_separated support)
customPrerequisitesNoPrerequisites
customStepsNoTest case steps
customExpectedNoExpected results
customStepsSeparatedNoSeparated test steps array (requires template_id=2)
customFieldsNoAdditional custom fields as key-value pairs (e.g., {custom_case_security_score: 'high'})
Behavior3/5

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

No annotations provided, so description carries full burden. Discloses critical behavioral constraint (templateId=2 required for customStepsSeparated) and field structure requirements. Missing: return value description, idempotency characteristics, error conditions, and auth requirements.

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?

Well-structured with purpose front-loaded, followed by requirements, optional parameters, and specific constraints. Uses capitalization (REQUIRED, NOTE) effectively for scanning. Dense but information-rich with zero redundancy.

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?

Adequate for a 13-parameter tool with nested objects: covers critical domain constraints (template dependencies) and field formats. Gaps remain around output structure, error handling, and side effects given no output schema or annotations.

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?

Despite 100% schema description coverage, adds significant semantic value: REQUIRED/OPTIONAL categorization, business logic for step format selection (simple text vs separated steps), and concrete customFields example ({custom_case_security_score: 'high'}).

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?

Opens with specific verb ('Creates') + resource ('test case') + system ('TestRail'). Clearly distinguishes from sibling updateCase/deleteCase/getCase through the creation semantics.

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?

Provides clear parameter-level guidance: references getCaseTypes for valid typeId lookup, explains templateId=2 requirement for customStepsSeparated, and contrasts when to use customSteps vs customStepsSeparated. Lacks explicit contrast with updateCase for new vs existing cases.

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

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