Skip to main content
Glama
testrail-mcp
by tmurraypt

get_runs

Retrieve and filter test runs for a TestRail project by suite, milestone, creator, completion status, and creation date to track testing progress.

Instructions

List test runs for a project

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": "get_runs"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
offsetNo
suite_idNoComma-separated suite IDs
created_byNoComma-separated user IDs
project_idYesProject ID
is_completedNo1=completed, 0=active
milestone_idNoComma-separated milestone IDs
created_afterNoUnix timestamp
created_beforeNoUnix timestamp

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.8/5.0
Behavior2/5

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

With no annotations supplied, the description carries the full burden of behavioral disclosure, and it says nothing about ordering, default page size, whether results are truncated, or the shape of the response. "List" implies a read-only operation, but nothing confirms permissions, volume limits, or pagination defaults for a 9-parameter query tool.

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

Conciseness3/5

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

Six words with zero filler and the scope front-loaded, so nothing needs trimming. However, the brevity reflects under-specification rather than efficiency for a tool with nine filter parameters and no annotations.

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 nine-parameter filtered list tool with no annotations and no output schema, the description leaves too much unsaid: no return shape, no pagination behavior, no filter interaction or precedence. The schema covers parameter meanings but the description does not compensate for the missing behavioral layer.

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 78%, so the schema already documents nearly all parameters including the comma-separated ID formats and the Unix timestamp convention. The description adds no meaning beyond "for a project", so the baseline of 3 applies rather than a penalty.

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 ("List test runs") and scopes it to a project, which separates it cleanly from the singular sibling get_run. It stops short of explicitly naming alternatives, but the plural/list framing is unambiguous.

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 get_run, get_results_for_run, or get_plans, and no mention of pagination strategy despite limit/offset parameters. The agent must infer usage entirely from the name.

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