Skip to main content
Glama

add_result

Adds a single test result to a TestRail run by case ID, with status, comment, defects, elapsed time, and version.

Instructions

Post a single test result by case_id (TestRail looks up the test inside the run).

status accepts a string ("passed" | "failed" | "blocked" | "retest" | "untested") or a raw TestRail status_id (1..5 by default). elapsed is a TestRail time string ("30s", "1m 30s", "1h 5m"). defects is a comma-separated list of bug-tracker IDs ("BUG-1, BUG-2").

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
run_idYes
statusYes
case_idYes
commentNo
defectsNo
elapsedNo
versionNo
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations provided, so description carries full burden. It explains parameter formats (status, elapsed, defects) but does not disclose behavioral traits like mutability, error handling, or side effects. Lacks explicit mutation warning.

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?

Extremely concise with front-loaded main purpose. Each line adds value, using efficient formatting (newlines and backticks). No redundant information.

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 mutation tool with 7 parameters, no annotations, and no output schema, the description covers parameter formats but lacks behavioral context (e.g., what happens on error, success, or invalid inputs). Not fully complete.

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 0%, so description must compensate. It explains status (accepted strings and IDs), elapsed (time format), and defects (comma-separated), but does not explain run_id, case_id, comment, or version. Partial coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states 'Post a single test result by case_id' with a specific verb and resource, and distinguishes from siblings like 'add_bulk_results' (multiple) and 'get_results_for_run' (retrieval).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Implied usage for single test results, but no explicit when-to-use, when-not-to-use, or comparison with siblings like 'add_bulk_results' or 'get_results_for_run'.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Sergey-Bl/testrail-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server