Skip to main content
Glama

actiond_diagnose

Read-onlyIdempotent

Diagnose failed CI/CD jobs by analyzing logs to identify root-cause categories, error codes, and files to fix, providing actionable suggestions.

Instructions

Diagnose failed CI/CD jobs and turn their logs into actionable fix suggestions. Pass job_id to analyze one job, or omit it to analyze the most recent failures (optional limit caps how many are analyzed, default 5). For each job it extracts the root-cause category (build/test/lint/dependency/permission/timeout/...), error code, severity, confidence, evidence lines, and the files most likely needing changes; the aggregate summary highlights the most common category with concrete next steps. Jobs without error output are reported explicitly as no_error_output instead of being silently dropped. Reach for this first whenever a job fails; use actiond_log for raw logs and actiond_action_get for job metadata.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum number of failed jobs to analyze when no job_id is given (default 5)
job_idNoSpecific job ID to diagnose (optional - if not provided, analyzes recent failures)

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed1 schema field changedv0.1.1
    • changedInput schema / properties / limit / description
      Previous value: -"最多分析的失败任务数量(默认 5)"New value: +"Maximum number of failed jobs to analyze when no job_id is given (default 5)"
  2. First observedv0.1.0

TDQS

A4.9/5.0
Behavior5/5

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

The description details behavioral specifics beyond the annotations, such as handling jobs without error output by reporting 'no_error_output' instead of silently dropping them. It also aligns with the readOnlyHint and idempotentHint by describing an analytical, non-mutating operation.

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?

The description is dense and informative, but slightly redundant in phrasing (e.g., restating that omitting job_id analyzes recent failures). Still, each sentence contributes useful detail and the structure flows logically from purpose to parameters to output.

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?

The description compensates for the absence of an output schema by enumerating what the agent can expect: root-cause category, error code, severity, confidence, evidence lines, likely files to change, and an aggregate summary. It also explains the edge-case behavior for jobs without error output.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Both parameters are fully described in the schema, and the description adds practical semantics: job_id selects a specific job, while omitting it analyzes recent failures, and limit caps the number analyzed with a default of 5. This goes beyond the schema's basic definitions.

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 the tool's specific purpose: diagnosing failed CI/CD jobs and generating actionable fix suggestions from logs. It also explicitly distinguishes itself from related sibling tools by directing users to actiond_log for raw logs and actiond_action_get for job metadata.

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?

The description provides explicit guidance on when to use this tool ('Reach for this first whenever a job fails') and when to use alternatives (actiond_log for raw logs, actiond_action_get for job metadata). This gives clear decision-making context for an agent.

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

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/JoeGlenn1213/ActionD'

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