Skip to main content
Glama
gracexiaowork

testrail-mcp-server

testrail_add_result_for_case

Add a test result for a specific case in a test run by providing run ID, case ID, and status. Track pass/fail outcomes with optional comments, defects, and elapsed time.

Instructions

Add a test result for a case in a specific test run

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
run_idYesThe ID of the test run
case_idYesThe ID of the test case
commentNoOptional comment
defectsNoOptional defects/bugs
elapsedNoOptional elapsed time
versionNoOptional version tested
status_idYesStatus ID (1=Passed, 2=Blocked, 3=Untested, 4=Retest, 5=Failed)
assignedto_idNoOptional user ID to assign

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 provided, so the description carries the full burden of behavioral disclosure for a write operation. It does not say whether the target run must be open, whether prior results are overwritten, what permissions are needed, or that status_id drives pass/fail semantics — all material for a mutation tool.

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?

A single sentence with zero padding, and the scope constraint is front-loaded. Nothing needs trimming.

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 an eight-parameter mutation tool with no annotations and no output schema, the description is too thin: it omits run-state prerequisites, overwrite behavior, and any distinction from the three sibling result-adding tools. It leans entirely on the schema without compensating for the missing behavioral context.

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 100%, so all eight parameters (including the status_id code mapping) are already documented in the schema. The description adds only the run-scoping framing, which the schema's run_id entry already conveys; baseline 3 applies.

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 states a specific verb and resource ('Add a test result') plus the scoping context ('for a case in a specific test run'), so the agent knows exactly what is being created. It does not, however, distinguish itself from close siblings like testrail_add_result, testrail_add_results, or testrail_add_results_for_cases, which differ only in whether they target a case or a test.

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, no exclusions, and no mention of the alternative tools (e.g., testrail_add_result for a test ID, or the bulk testrail_add_results_for_cases). The agent must infer the case-vs-test distinction purely from the tool name.

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