Skip to main content
Glama

get_test_case

Retrieve a single Allure TestOps test case by ID to access its text, status, workflow, layer, tags, links, and automated/flaky/deleted/duration flags; scenario steps are excluded and need a separate steps lookup.

Instructions

Get one test case by id: texts, status, workflow, testLayer, tags, links, flags.

Flags are automated, flaky, deleted and duration. The answer does NOT contain the scenario/steps (TestCaseDto has none) and says so with "steps_not_included": true - read them with get_test_case_steps.

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_case_id": "<test_case_id>"
    },
    "name": "get_test_case"
  }
}

Input Schema

NameRequiredDescriptionDefault
test_case_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.5

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and usefully discloses the return composition, including that steps are omitted and signaled by 'steps_not_included': true. It also explains the flag meanings, though it does not mention permissions, error behavior, or rate limits.

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?

The description is compact and front-loaded: verb and scope first, then returned fields, then the important steps caveat and alternative. Every sentence contributes useful selection or interpretation guidance.

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

Completeness5/5

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

For a simple single-parameter read tool with an output schema and no annotations, the description covers the critical missing context: what is returned and what is intentionally absent. Nothing essential to correct invocation is omitted.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The single parameter is named test_case_id and the description reinforces that lookup is 'by id.' Schema description coverage is 0%, but the parameter is self-explanatory and the description adds the essential meaning of retrieving exactly one test case.

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?

The description uses a specific verb and resource: 'Get one test case by id,' and immediately lists the fields returned. It also explicitly distinguishes itself from get_test_case_steps by noting that steps are not included.

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

Usage Guidelines4/5

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

It clearly directs the agent to get_test_case_steps for scenario/steps, which is the most important alternative given the tool's scope. However, it does not discuss when to use this versus list_test_cases or search_test_cases when the caller does not already have an id.

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