Skip to main content
Glama

xray_get_test_run_by_id

Fetch an Xray test run using its internal run ID to inspect its status and details; if you have test and execution keys instead, use the key-based lookup.

Instructions

Get a test run by its internal Xray run ID. Use xray_get_test_run if you have test+execution keys instead.

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": {
      "id": "<id>"
    },
    "name": "xray_get_test_run_by_id"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe internal Xray test run ID (e.g. 'run-42')
formatNoResponse format: toon (compact, default), json (full), summary (one-line)toon

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4/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, yet it discloses nothing beyond the fact that a run is retrieved by ID. It does not say what happens on an unknown ID, what the response contains, or whether any permissions are required for read access.

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?

Two short sentences with no filler; the disambiguation is placed immediately after the purpose statement where it is most needed. Every clause earns its place.

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

Completeness4/5

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

For a two-parameter lookup with full schema coverage, no nested objects, and no output schema, the definition covers identification and sibling routing adequately. The only gap is return-shape expectation, which is minor given the absence of an output schema.

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 100%, so both the 'id' format example and the 'format' enum are already documented in structured data. The description adds only the hint that 'id' is an internal run key rather than a test+execution pair, which is useful but marginal against a fully described schema.

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?

States a specific verb and resource ('Get a test run') plus the exact key it accepts ('internal Xray run ID'), and explicitly contrasts itself with the similarly named sibling xray_get_test_run. An agent can distinguish the two lookup tools without opening either schema.

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

Usage Guidelines5/5

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

Names the alternative tool and the precise condition that selects it ('if you have test+execution keys instead'), which is the exact routing decision an agent faces between the two getters. Nothing is left to inference about which lookup path to choose.

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

Deploy Server

Other Tools