Skip to main content
Glama
testrail-mcp
by tmurraypt

close_run

Closes a TestRail test run by run ID, preventing any further changes to it.

Instructions

Close a test run (no further changes allowed after closing)

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

Input Schema

NameRequiredDescriptionDefault
run_idYesRun ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full behavioral burden and does deliver the key trait: closing locks the run against further changes. It does not state whether the close is reversible/reopenable, what permissions are required, or whether results become read-only versus deleted, leaving meaningful gaps 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.

Conciseness5/5

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

A single short sentence with the critical constraint placed inline immediately after the action. Nothing is wasted and the action is front-loaded.

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 one-parameter mutation tool with no output schema and no annotations, the description covers the essential irreversibility but omits reversibility, permissions, and what state the run ends in. It is minimally adequate rather than 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?

Only one parameter (run_id), and schema description coverage is 100%, so the schema already documents it. The description adds no extra meaning about the identifier's format or valid values, which is acceptable at this coverage level but not value-adding.

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?

States a specific verb+resource ("Close a test run") and adds the consequence of closing. It does not explicitly distinguish itself from close siblings like delete_run or update_run, so an agent must infer the difference from the names alone.

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 guidance on when to close versus delete or update a run, nor any stated prerequisites (e.g., all tests must be reported first). Usage is only implied by the word "close" and the parenthetical consequence.

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