Skip to main content
Glama

Trigger AI Root Cause Analysis Generation

tm.generate_testExecutionRCA

Dispatches AI-powered root cause analysis for failed tests, skipping those with existing or pending RCA. Credits are charged only for newly triggered analyses. Confirm scope before use.

Instructions

Dispatches AI-powered RCA generation for every failed test under the given scope: any combination of job_ids, stage_ids, task_ids, or test_ids (at least one required, each array capped at 100 IDs). Jobs/stages/tasks always route to the HyperExecute analyzer; test_ids route to the correct analyzer automatically per test, so a mixed batch is fine. A test whose RCA already exists or is currently generating is skipped automatically and not charged - only newly-dispatched tests cost credits, so it is safe to pass a broad scope (e.g. an entire job) without first checking which tests already have RCA. Returns how many were newly triggered vs. skipped (and why), and the estimated credits used. DANGER: this spends REAL organizational AI credits and cannot be undone - do not call speculatively or on a broad scope 'just to see'. Credits are all-or-nothing: if the organization's balance is insufficient for the whole scope, NOTHING is dispatched (a 402 is returned instead) rather than partially triggering. A scope resolving to more than 10,000 failed tests is rejected (413) - narrow it first. Use tm.get_testExecutionRCA beforehand to check whether RCA already exists for the tests you care about, and confirm with the user before calling this on anything but a small, deliberately-chosen scope.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
job_idsNo
task_idsNo
test_idsNo
stage_idsNo
Behavior5/5

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

With no annotations, description fully discloses destructive nature (spends real credits, cannot be undone), automatic skipping of existing/generating RCAs, mixed batch routing, all-or-nothing dispatch on insufficient credits, and rejection of scopes >10,000 failed tests. Highly transparent.

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?

Description is long but every sentence adds value. Front-loaded with main action, then details constraints and dangers. Could be slightly more concise, but structure is logical and complete.

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 no output schema, description explains return values (new triggers vs skipped, credits used). Covers error cases (402, 413) and safety checks. Complete for a complex, high-risk tool.

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?

Despite 0% schema coverage, description explains each parameter (job_ids, stage_ids, etc.) as arrays capped at 100 IDs, with at least one required. Adds context on how test_ids route automatically. Could be more explicit about ID format, but compensates well for missing schema descriptions.

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 clearly states it dispatches AI-powered RCA generation for failed tests under a given scope. The title 'Trigger AI Root Cause Analysis Generation' is specific. It distinguishes from sibling tools like tm.get_testExecutionRCA by focusing on generation rather than retrieval.

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?

Provides explicit when-to-use: for failed tests needing RCA. Also states when-not-to-use: not speculatively or on broad scope. Advises using tm.get_testExecutionRCA first to check existence. Warns about credit costs and all-or-nothing behavior, guiding safe usage.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/prakhar-gahlot/TestMu-AI-Test-Manager-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server