Skip to main content
Glama
g-tiwari

@g-tiwari/mcp-testrail

by g-tiwari

add_result_for_case

Add a test result to a case in a run by specifying run ID, case ID, and status ID. Include comments, defects, time spent, version, or reassigned user as needed.

Instructions

Add a result for a case in a run

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
run_idYesTest run ID
case_idYesTest case ID
commentNoResult comment/notes
defectsNoComma-separated defect IDs
elapsedNoTime spent (e.g. '30s', '1m 45s')
versionNoVersion or build tested
status_idYesStatus ID (1=Passed,2=Blocked,3=Untested,4=Retest,5=Failed)
assignedto_idNoReassign to user ID

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 behavioral burden. It merely says 'Add', which implies mutation, but it does not disclose side effects, required preconditions (e.g., run/case must exist), idempotency, or whether a result can be overwritten. This is a significant gap 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?

The description is a single, front-loaded sentence with no filler. It is appropriately concise, though it does not add much beyond the tool name.

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?

This is a mutating tool with 8 parameters, no output schema, and no annotations, yet the description offers only the bare action. An agent would not know what happens after calling it, whether the operation is reversible, or what constraints exist beyond the schema. The description is not complete enough for safe autonomous invocation.

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 8 parameters are already documented in the schema. The description adds no additional parameter-level meaning. Per the baseline, this is acceptable at a score of 3.

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 action ('Add a result') and a specific target ('for a case in a run'). It is clear on what the tool does, but it does not explicitly differentiate itself from closely related siblings like add_result, add_results, or add_results_for_cases, so it stops short of full distinction.

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 guidance about when to choose this tool over alternatives. The singular 'a case' implies single-case use, but no explicit conditions, exclusions, or comparisons to add_result, add_results, or add_results_for_cases are provided.

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