Skip to main content
Glama

Diagnose a CI failure

depot_ci_get_failure_diagnosis
Read-only

Get Depot's failure diagnosis for a CI run, workflow, job or attempt. For runs and workflows, identical failures are grouped by error fingerprint; for a job or attempt it is a focused diagnosis with evidence. Empty when no failure evidence is found. The best first call when a run failed. Depot: CIService/GetFailureDiagnosis.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
target_idYesThe run, workflow, job or attempt id.
target_typeYesWhat target_id identifies.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

readOnlyHint=true already covers the safety profile, but the description adds real behavioral context beyond annotations: identical failures are grouped by error fingerprint for runs/workflows, job/attempt targets yield a focused diagnosis with evidence, and the result is empty when no failure evidence exists. That empty-result disclosure is genuinely useful for agent decision-making.

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?

Three tight sentences, front-loaded with purpose and containing no filler; the routing hint is placed last where it lands well. The trailing 'Depot: CIService/GetFailureDiagnosis.' identifier adds little for an agent, a minor tax on an otherwise efficient description.

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 no output schema, the description carries the return-value burden and does so qualitatively — describing grouped fingerprints, focused evidence, and the empty case. It could say more about the shape or size of the diagnosis, but nothing needed to call it correctly 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%, so the baseline is 3, but the description adds meaning by explaining how behavior differs per target_type (grouped vs. focused diagnosis), which helps an agent choose between run, workflow, job and attempt. It stops short of clarifying the id format for each target type.

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 ('Get Depot's failure diagnosis for a CI run, workflow, job or attempt') and enumerates the exact target types. It also distinguishes itself from log/status siblings by describing what the diagnosis actually contains (fingerprint grouping vs. focused evidence).

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?

Explicitly declares 'The best first call when a run failed', giving a clear triggering condition. It does not name competing alternatives (e.g. get_job_logs) or state exclusions, so it falls short of a full when/when-not routing 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.