Skip to main content
Glama
testrail-mcp
by tmurraypt

add_results_for_cases

Bulk-add test results for multiple cases in a TestRail run, capturing statuses, comments, defects, and elapsed time in one request.

Instructions

Add multiple test results for cases in a run (bulk)

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>",
      "results": "<results>"
    },
    "name": "add_results_for_cases"
  }
}

Input Schema

NameRequiredDescriptionDefault
run_idYesRun ID
resultsYesArray of result objects

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?

With no annotations provided, the description carries the full behavioral burden, yet it says nothing about whether existing results are overwritten, what permissions or run state are required, whether the array size is capped, or what happens on partial failure. 'Bulk' is the only behavioral hint, which is thin 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.

Conciseness4/5

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

A single front-loaded sentence with no wasted words; the '(bulk)' qualifier lands at the end where it is easy to scan. It is efficient but too terse to earn a 5.

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 mutation tool with a nested array of result objects, no annotations, and no output schema, the description omits outcome information (returned IDs, partial-failure behavior) and any prerequisites such as run state or permissions. It is not enough for an agent to call this safely and correctly.

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%, and the nested result object documents every field including the status_id value mapping (1=Passed, 2=Blocked, 4=Retest, 5=Failed). The description adds no meaning beyond that, 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?

The description states a specific verb and resource ('Add multiple test results for cases in a run') and adds the '(bulk)' qualifier, which implicitly separates it from the singular add_result_for_case sibling. It stops just short of naming that alternative explicitly.

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 explicit when-to-use or when-not-to-use guidance; the word 'bulk' is the only signal that this is the multi-result counterpart to add_result_for_case. An agent must infer the routing decision from the adjective alone.

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