Skip to main content
Glama
testrail-mcp
by tmurraypt

add_run

Create a new TestRail test run by specifying a project and name, with optional suite, cases, milestone, and assignee details.

Instructions

Create a new test 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": {
      "project_id": "<project_id>",
      "name": "<name>"
    },
    "name": "add_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesRun name
refsNo
case_idsNoArray of case IDs (when include_all=false)
suite_idNoSuite ID (required for multi-suite projects)
project_idYesProject ID
descriptionNo
include_allNoTrue to include all cases, false to use case_ids
milestone_idNo
assignedto_idNoUser ID to assign the run to

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It only says "Create," without disclosing required permissions, side effects, whether the run starts open or closed, or what happens when include_all is omitted.

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?

The description is a single front-loaded sentence with no wasted words. Its brevity is efficient, though it leaves too much unsaid for a nine-parameter mutation tool.

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 non-annotated mutation tool with nine parameters and no output schema, the description is substantially incomplete. It does not explain required context, default behavior, or what a successful creation returns.

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?

The description adds no meaning beyond the input schema for nine parameters. With schema coverage at 67%, several parameters including refs, description, and milestone_id are undocumented, and the important include_all versus case_ids interaction is only implied by schema text.

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: "Create a new test run." It is clear what the tool does, but it does not distinguish this from related creation tools such as add_plan or add_suite.

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?

The description provides no guidance on when to use this tool, when not to use it, or how it relates to sibling tools. There is no mention of prerequisites such as whether a suite or project must already exist.

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