Skip to main content
Glama

testrail_add_cases

Create test cases in a TestRail section with steps, expected results, references, and custom fields. Supports dry run to preview payloads without creating cases.

Instructions

Create test cases in a TestRail section.

cases: [{"title": "Verify ...", "preconditions": "...", "refs": "optional per-case refs", "steps": [{"content": "one action", "expected": "one expected result"}]}] section_id: defaults to TESTRAIL_SECTION_ID. refs: references applied to every case (e.g. a story key), unless a case sets its own. fields: custom field values for every case, e.g. {"custom_automation_type": "Not Automated"}. Dropdowns accept the option id or its label. Merged over TESTRAIL_DEFAULT_FIELDS. dry_run: return the payloads that would be sent, without creating anything.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
refsNo
casesYes
fieldsNo
dry_runNo
project_idNo
section_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description must carry the full behavioral burden. It does disclose meaningful traits: dry_run returns payloads without creating anything, refs/fields semantics, and environment-variable defaults. But it says nothing about permissions, rate limits, duplicate handling, or failure modes for a write operation.

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?

Purpose is front-loaded in one sentence, followed by tight per-parameter annotations with a compact JSON example for cases. No filler sentences, though the dense param block is slightly terse rather than maximally scannable.

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?

For a 6-parameter mutation tool with no annotations, no output schema, and 0% schema description coverage, this is close to complete — payload shape, defaults, and dry-run behavior are all covered. The gap is project_id and any error/permission context, which keeps it from a 5.

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 0%, so the description does the heavy lifting and largely succeeds: it documents cases (with a full nested example), section_id, refs, fields (including dropdown id-or-label handling), and dry_run. Only project_id is left completely undocumented in both schema and description, which caps this below 5.

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?

The first sentence gives a specific verb and resource ('Create test cases in a TestRail section'), which is clearly distinct from siblings like testrail_list_cases or testrail_upload_case_file. It stops short of naming an alternative explicitly, so it earns a solid 4 rather than 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 Guidelines3/5

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

The description supplies useful operational context — section_id falls back to TESTRAIL_SECTION_ID, fields merge over TESTRAIL_DEFAULT_FIELDS, and dry_run lets you preview without writing. However it never says when to prefer this tool over a sibling (e.g. testrail_upload_case_file) or what prerequisites exist, leaving usage only implied.

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