Skip to main content
Glama
gracexiaowork

testrail-mcp-server

testrail_add_result

Record a test result for a specific TestRail test by supplying test ID and status ID, with optional comments, defects, elapsed time, version, and retest assignee.

Instructions

Add a test result for a specific test

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
commentNoOptional comment
defectsNoOptional defects/bugs (comma-separated)
elapsedNoOptional elapsed time (e.g., "30s", "1m", "2h")
test_idYesThe ID of the test
versionNoOptional version tested
status_idYesStatus ID (1=Passed, 2=Blocked, 3=Untested, 4=Retest, 5=Failed)
assignedto_idNoOptional user ID to assign for retest

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/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 behavioral burden. It does not disclose that this is a mutation, whether it requires auth, whether it overwrites or appends, or what the response contains. For a write tool with zero annotation coverage this is a significant omission.

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 front-loaded sentence with zero redundancy. Appropriately sized for the tool.

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?

For a 7-parameter mutation tool with no annotations and no output schema, the description is thin. The schema covers parameters well, but behavioral context (auth, append semantics, response shape) is entirely absent.

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 7 parameters including the status_id enum mapping are already documented in the schema. The description adds nothing beyond the schema, so the 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?

States a specific verb and resource: 'Add a test result for a specific test.' This clearly distinguishes it from read siblings like testrail_get_results, but it does not differentiate from the very close sibling testrail_add_result_for_case, leaving ambiguity about which add-tool applies.

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?

No when-to-use guidance, no prerequisites, and no mention of alternatives such as testrail_add_result_for_case or testrail_add_results. The agent is left to infer that this is the single-result-by-test-id variant.

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