Skip to main content
Glama

get_test_case_steps

Retrieve a test case's scenario steps as a nested tree or raw map, including resolved shared steps, to inspect expected results and attachments.

Instructions

Read the scenario (steps) of a test case.

as_tree=true (default) returns nested steps: {id, body, expectedResult, attachmentId, sharedStepId, children}. as_tree=false returns the raw scenarioSteps map by id. A case without a scenario answers "steps": []. A shared step appears as a node with sharedStepId plus a "sharedStep" object: {id, name, steps} with its own steps resolved. Attachment contents are not inlined either - only attachmentId.

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_steps"
  }
}

Input Schema

NameRequiredDescriptionDefault
as_treeNo
test_case_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.5

TDQS

A3.8/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 it does meaningful work: it discloses that the default is nested output, that a case without a scenario yields an empty array, that shared steps are resolved into a nested object, and that attachments are returned as ids only. It stops short of noting auth needs, error cases for invalid ids, or cost/size characteristics of deep trees.

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?

Front-loaded with the core purpose, then a compact mode comparison and edge-case notes; each sentence adds something. Minor waste remains, such as describing the exact returned key set despite an output schema existing, and the dangling "either" in the attachment sentence.

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 read tool with an output schema present, the definition is close to complete: default behavior, the alternative mode, and two edge cases (no scenario, shared step) are all covered. The missing pieces are the meaning/origin of test_case_id and any failure behavior for unknown cases.

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?

Schema coverage is 0%, so the description must compensate, and it explains as_tree thoroughly, contrasting the nested tree shape against the raw scenarioSteps-by-id map. The required test_case_id receives no explanation of what a valid id is or where to obtain one, which is the only real gap.

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?

Opens with a specific verb and resource: "Read the scenario (steps) of a test case." That distinguishes it from get_test_case (case metadata) and add_test_case_step (mutation), though it never names a sibling explicitly, so the differentiation is implied rather than stated.

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

Usage Guidelines3/5

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

Usage is conveyed indirectly through the as_tree modes and the empty-steps behavior: an agent learns this returns step data only, not the case itself. There is no explicit when-to-use versus get_test_case or when to prefer as_tree=false, leaving the agent to infer the selection.

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