Skip to main content
Glama

gluecron_explain_failure

Read-only

Explain a failed CI run: for each failed step, its class (compile / test / flaky / dependency / env / infra / lint / security / unknown) and the rule that chose it, the normalised error signature, failing tests, the files the commit touched, prior occurrences of the same failure (this repo, your other repos with the same owner or org, and platform-wide counts only) with the fix rate, and a suggested fix — the commit / PR that fixed it last time plus its diff limited to the relevant files, or the class's standard remedy. Infra and flaky failures never suggest a code change. run_id is the run's full id; with owner + repo an 8+ hex prefix also works.

Input Schema

NameRequiredDescriptionDefault
repoNoOptional: repository name — needed only for a run-id prefix
ownerNoOptional: repository owner — needed only for a run-id prefix
run_idYesThe failed run's id (full uuid; an 8+ hex prefix when owner + repo are given)
include_diffNoInclude the prior fix's diff, limited to the relevant files (default true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered; the description adds genuinely new behavioral context beyond that — 'Infra and flaky failures never suggest a code change', the cross-repo scoping ('this repo, your other repos with the same owner or org, and platform-wide counts only'), and the diff being limited to relevant files.

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?

A single dense but well-ordered sentence: purpose first, then the returned diagnostics in sequence, then the parameter caveat. Nothing is wasted, though the long clause chain is heavy to parse and could have been broken up.

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 carries the full return-value burden and does so thoroughly — failure class taxonomy, fix-rate semantics, cross-repo visibility limits, diff scoping, and the infra/flaky exception. An agent knows what it will get and what constraints apply.

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?

Schema description coverage is 100%, so the schema already documents run_id, owner, repo, and include_diff. The description's closing note about run_id being a full id or an 8+ hex prefix with owner+repo duplicates the schema text rather than extending it, so the baseline 3 applies.

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 — 'Explain a failed CI run' — and immediately enumerates the concrete diagnostics produced (failure class, error signature, failing tests, prior occurrences, suggested fix), which clearly separates it from siblings like get_workflow_logs or get_workflow_run that merely fetch raw data.

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?

The scenario is strongly implied (you use this to diagnose a run that already failed), but there is no explicit when-to-use/when-not guidance and no named alternatives such as get_workflow_logs for raw output or list_flaky_tests for flake stats. Usage must be inferred from the purpose statement.

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