Skip to main content
Glama
testrail-mcp
by tmurraypt

add_result_for_case

Records a test result for a specific case in a TestRail run using run ID, case ID, and status ID.

Instructions

Add a test result for a case in a run

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": {
      "run_id": "<run_id>",
      "case_id": "<case_id>",
      "status_id": "<status_id>"
    },
    "name": "add_result_for_case"
  }
}

Input Schema

NameRequiredDescriptionDefault
run_idYesRun ID
case_idYesCase ID
commentNo
defectsNo
elapsedNo
versionNo
status_idYes1=Passed, 2=Blocked, 4=Retest, 5=Failed
assignedto_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.6/5.0
Behavior2/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, but it only implies a mutation. It does not state permissions required, whether existing results are overwritten, side effects, or what the response contains.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The single sentence is front-loaded and free of filler, but for an eight-parameter mutation tool it is under-specified rather than genuinely concise. Structure is fine; substance is thin.

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?

An eight-parameter, three-required mutation tool with no annotations, no output schema, and only 38% parameter coverage needs far more context than one sentence. The description does not explain required fields beyond the schema or the effect of the operation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 38%, so the description should compensate for five undocumented parameters (comment, defects, elapsed, version, assignedto_id). It adds no meaning beyond the schema's own 'Run ID' and 'Case ID' labels and the status code mapping.

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 for a case in a run,' which lets an agent identify it as a single-result creation tool. It does not explicitly name the sibling `add_results_for_cases` or `add_result` to differentiate scope, so it falls short of 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 Guidelines2/5

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

There is no guidance on when to use this tool versus `add_result`, `add_results_for_cases`, or `get_results_for_case`. The usage is only implied by the verb 'Add.'

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