Skip to main content
Glama

Fetch test inventory (counts + statuses)

wopee_fetch_test_inventory

Get the full list of test cases with latest execution status, including never-run ones as NOT_RUN. Use to answer how many tests you have or list scenarios for an analysis.

Instructions

The authoritative tool for how many tests exist and their latest status. Returns, per analysis, the FULL list of authored test cases joined with their latest execution status — including never-run ones as NOT_RUN. Use this for questions like 'how many tests do I have', 'list the scenarios/test cases in A001', or 'show executed and not-run tests in one table'. Terminology: a 'scenario' is a test case; test cases are grouped under user stories (US001) and identified as US001:TC001. Reusable blocks (user story R001) are counted separately (reusableBlockCount) and are building blocks, not runnable, so they never carry an execution status. Regular tests are all non-R001 test cases. Read-only. Takes an optional analysisIdentifier (e.g. A001) to scope to one analysis; omit to cover every analysis in the project. Prefer this over wopee_fetch_recent_executions / wopee_fetch_executed_test_cases when the user asks about totals or the complete list — those return only test cases that have already run. Each test case carries executedTestCaseUuid (the latest run's uuid, the same one wopee_dispatch_agent returns) and verdictGateDisagreed (true when a verdict gate disagreed with a PASSED verdict — report it alongside the pass). Status UNKNOWN means the execution history could not be read (the reason is in the analysis's executionHistoryError); do not report such tests as not run.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
analysisIdentifierNoOptional analysis identifier (e.g. A001) to scope the inventory to a single analysis. Omit to include every analysis in the project.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.29.1

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden, and it delivers: it states 'Read-only', explains that never-run tests appear as NOT_RUN, distinguishes UNKNOWN due to executionHistoryError, and warns not to report such tests as not run. It also discloses that reusable blocks (R001) are counted separately and never carry execution status.

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 definition is long but every sentence carries distinct value: core purpose, usage examples, domain terminology, reusable-block exclusion, field meanings, and UNKNOWN status nuance. It is front-loaded with the key capability and keeps the sibling differentiation and edge-case warnings in clearly separated clauses.

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?

Given there is no output schema, the description thoroughly covers what the agent needs: return semantics, field names, status meanings, exclusions, identifier format, and the relationship to execution UUIDs. No critical calling information is missing.

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?

The single optional parameter is already fully described in the schema (100% coverage), including the A001 example and omitting to include every analysis. The description restates this nearly verbatim, adding no new parameter-level meaning beyond the schema, so baseline 3 is appropriate.

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?

Description opens with a specific claim: 'authoritative tool for how many tests exist and their latest status', and clarifies it returns the FULL list of authored test cases joined with latest execution status. It explicitly contrasts with siblings by saying wopee_fetch_recent_executions and wopee_fetch_executed_test_cases 'return only test cases that have already run'.

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?

Gives explicit when-to-use guidance with example user questions ('how many tests do I have', 'list the scenarios/test cases in A001'). It also names alternative tools and tells the agent to prefer this one for totals or complete lists, and explains the scoping choice for analysisIdentifier (omit for all analyses).

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