Skip to main content
Glama
testrail-mcp
by tmurraypt

add_result

Records a test result for a specified TestRail test, including status, elapsed time, comments, and linked defects.

Instructions

Add a test result to a test

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": {
      "test_id": "<test_id>",
      "status_id": "<status_id>"
    },
    "name": "add_result"
  }
}

Input Schema

NameRequiredDescriptionDefault
commentNo
defectsNoComma-separated defect IDs
elapsedNoTime spent, e.g. '30s', '1m 45s'
test_idYesTest ID
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

D1.7/5.0
Behavior1/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure, and it says nothing about side effects, permissions, whether results are immutable once added, or what the call returns. A mutation tool with 7 parameters gets only the bare verb "add", which conveys nothing an agent could not already read in the name.

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

Conciseness2/5

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

The single sentence is short but under-specified rather than concise; brevity here costs the agent all information it needs. There is no structure to front-load because there is no content.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness1/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 7-parameter mutation with no annotations and no output schema, the description is completely inadequate — it explains no parameter, no return value, and no relationship to the run/test the result attaches to.

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 coverage is 57%, leaving comment, version, and assignedto_id undocumented anywhere, and the description adds zero meaning beyond the schema. It does not explain the status_id code mapping, defect ID format, or elapsed time syntax — all of which are already in the schema but remain unmentioned as a whole workflow.

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

Purpose2/5

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

"Add a test result to a test" restates the tool name almost word for word, so it reads as a tautology rather than a specification. It never distinguishes this tool from the sibling add_result_for_case or add_results_for_cases, which is exactly the ambiguity an agent needs resolved here.

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_for_case (single case) or add_results_for_cases (bulk), and no prerequisites such as needing an existing run/test. The agent is left to infer the choice purely from tool names.

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