Skip to main content
Glama

Get test tree

get_test_tree
Read-onlyIdempotent

Return the traffic-light tree for a project: environments and suites → versions → groups → tests, each with its cached status (pass/warn/fail/unknown) and last run. Parent nodes aggregate their children (fail > warn > pass > unknown). Fast — reads cached last_status, no test execution.

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

Input Schema

NameRequiredDescriptionDefault
suite_idNoOptional: restrict to one suite
project_idYesProject UUID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, closed-world), and the description goes beyond them with behavior the agent could not otherwise know: parent nodes aggregate children by precedence (fail > warn > pass > unknown), statuses are cached, and no execution occurs. The precedence rule and caching model materially affect how an agent interprets the result.

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?

Three short sentences, each doing distinct work: what is returned, how statuses aggregate, and how it is computed. The return shape is front-loaded and nothing is redundant or padded.

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?

There is no output schema, so the description must describe the return value — and it does, including the node hierarchy, per-node fields (status plus last run), and aggregation semantics. For a two-parameter read tool with full annotation coverage, nothing an agent needs in order to call or interpret it is missing.

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 100% and both parameters are already documented ('Project UUID', 'Optional: restrict to one suite'), so the schema carries the load. The description adds a little framing by placing suites inside the returned hierarchy, reinforcing what suite_id scopes, but adds no syntax or format detail beyond the schema — solid baseline behavior.

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 ('Return the traffic-light tree for a project') and spells out the exact hierarchy returned: environments and suites → versions → groups → tests. It also implicitly separates itself from the execution-oriented siblings by noting it reads cached status rather than running tests, so an agent knows what it gets without opening the schema.

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?

The line 'Fast — reads cached last_status, no test execution' tells the agent this is the cheap overview call rather than a run/inspection call, which is clear usage context. It stops short of naming an alternative by name (e.g. get_test_run for a specific run's details) or stating an explicit when-not condition, so it is strong but not fully prescriptive.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources