Skip to main content
Glama

Get tests

get_tests
Read-onlyIdempotent

Fetches full static details for up to 20 test IDs from find_tests or test_summary, including location, tags, conditions, and scan diagnostics without running tests.

Instructions

Returns every key of the tests with the given ids, with the scan diagnostics about them, read from the test files without running them: location, describe path, state and where it is set, condition, reason, tags, annotations, comments above the test, parameters and body hash. Use it after find_tests or test_summary, for the details of up to 20 tests. Ids come from find_tests and stay the same when a test moves to another line, but change when its title, describe or file changes; ids not in the current scan are returned in notFound. Example: {"ids": ["3f9a0c1d2e4b5a69"]}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idsYesTest ids, as find_tests returns them.
patternsNoGlobs of the test files, relative to `directory`, such as ["tests/**/*.spec.ts"]. Default: the ones the server was started with.
directoryNoA folder inside the project to scan, relative to its root, such as "packages/web". Default: the root.
frameworkNoThe test runner. Default: the one the server was started with.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
hintYes
testsYesThe tests found, in the order of ids.
notFoundYesIds that are not in this scan.
frameworkYes
scanErrorsYesProblems of level error in the scan, which may leave tests out of the answer.
diagnosticsYesProblems the scan reports about these tests.
frameworkVersionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already cover safety (readOnlyHint, idempotentHint, non-destructive), and the description still adds real behavioral contract: no test execution, the id lifecycle ('stay the same when a test moves to another line, but change when its title, describe or file changes'), and that unknown ids surface in notFound rather than erroring. That is exactly the extra context annotations cannot carry.

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?

Purpose and workflow lead, with the id rules and example trailing, so it is front-loaded correctly and reads in one pass. The long enumeration of returned fields (location, describe path, state, condition, reason, tags, annotations, comments, parameters, body hash) is partly redundant against the existing output schema, which costs it a point.

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?

With an output schema present, an annotations-covered safety profile, and 100% schema coverage, the description only needs to carry purpose, workflow, and the id contract — all present. The one gap is guidance on when to override patterns/directory/framework versus accepting the server defaults.

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% so the baseline would be 3, but the description adds semantics the schema does not: the provenance and mutability rules for `ids` plus a concrete example call, and the 20-id ceiling phrased as a usage constraint. The optional patterns/directory/framework overrides are left entirely to the schema, which is why this is not a 5.

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 (returns) and resource (tests by id, with scan diagnostics), and explicitly frames it as static analysis ('read from the test files without running them'). The sibling set (find_tests, test_summary, scan_diagnostics) is addressed directly by naming the tools it follows, so an agent can place it without opening any 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?

Explicit sequencing: 'Use it after find_tests or test_summary, for the details of up to 20 tests,' which tells the agent both the workflow position and the batch size limit. It does not state when *not* to use it (e.g. prefer test_summary for bulk aggregate views), so it falls short of the 5 bar.

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