Skip to main content
Glama
testrail-mcp
by tmurraypt

add_case

Create a new TestRail test case in a specified section, with fields for title, steps, expected results, priority, and references. Use it to add cases directly to project sections.

Instructions

Create a new test case in a section

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": {
      "section_id": "<section_id>",
      "title": "<title>"
    },
    "name": "add_case"
  }
}

Input Schema

NameRequiredDescriptionDefault
refsNoComma-separated reference IDs
titleYesTest case title
type_idNo
estimateNoTime estimate, e.g. '30s', '1m 45s'
section_idYesSection ID to add the case to
priority_idNo
template_idNo
custom_stepsNoTest steps (text format)
milestone_idNo
custom_expectedNoExpected result (text format)
custom_precondsNoPreconditions
custom_steps_separatedNoSeparated test steps

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it discloses almost nothing: not whether a case ID is returned, whether fields like type_id/priority_id default silently when omitted, what permissions are needed, or whether the created case is immediately visible in runs. Only the target container ('a section') is added beyond the tool name.

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?

A single front-loaded sentence with zero filler, so nothing is wasted. It is arguably under-sized for a twelve-parameter mutation tool, but the content it does contain is well structured.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a twelve-parameter write operation with no annotations and no output schema, one sentence is inadequate: required-field behavior, defaulting of the optional IDs, and the return payload are all undocumented. The description does not leave an agent able to call this confidently without reading the schema closely.

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 coverage is 67% and eight of twelve parameters carry their own descriptions (refs, estimate, custom_steps, custom_expected, custom_preconds, custom_steps_separated, title, section_id). The description adds nothing beyond implying section_id placement, and the undescribed parameters (type_id, priority_id, template_id, milestone_id) get no compensating explanation of defaults or valid value sources.

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 description gives a specific verb and resource ('Create a new test case') plus placement context ('in a section'), which separates it cleanly from update_case, delete_case, and get_case by the verb alone. It stops short of stating the target system or naming an alternative, but the purpose is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

There is no when-to-use guidance: nothing says what prerequisites exist (e.g. a pre-existing section_id), when to prefer add_case over a bulk import or update_case, or how duplicate titles are handled. An agent must infer usage entirely from the name and required fields.

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