Skip to main content
Glama
astronomer

astro-airflow-mcp

Official
by astronomer

get_dag_stats

Retrieve DAG run statistics grouped by state (success, failed, running, queued) to assess workflow health and success rates for all or specific DAGs.

Instructions

Get statistics about DAG runs (success/failure counts by state).

Use this tool when the user asks about:

  • "What's the overall health of my DAGs?" or "Show me DAG statistics"

  • "How many DAG runs succeeded/failed?" or "What's the success rate?"

  • "Give me a summary of DAG run states"

  • "How many runs are currently running/queued?"

  • "Show me stats for specific DAGs"

Returns statistics showing counts of DAG runs grouped by state:

  • success: Number of successful runs

  • failed: Number of failed runs

  • running: Number of currently running runs

  • queued: Number of queued runs

  • And other possible states

Args: dag_ids: Optional list of DAG IDs to filter by. If not provided, returns stats for all DAGs.

Returns: JSON with DAG run statistics organized by DAG and state

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dag_idsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

No annotations are provided, so the description must fully disclose behavior. It explains the return format (JSON with counts by state) and the optional filtering. However, it omits details like time range, whether it's real-time or historical, permission requirements, or any rate limits. The description is adequate but not exhaustive, scoring a 3.

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 description is well-structured: a one-line summary, bullet-pointed use cases, a list of return states, and an Args/Returns section. It is comprehensive yet concise, with every sentence contributing value. No wasted words.

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 the output schema exists (though not shown) and the tool has only one optional parameter, the description covers purpose, usage, parameter, and return structure comprehensively. It leaves no obvious gaps for agent decision-making, earning a 5.

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?

With schema description coverage at 0%, the description adds significant value by explaining the dag_ids parameter: it's optional, filters to specific DAGs, and defaults to all DAGs. This goes beyond the schema's simple type definition, earning a 4.

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 gets statistics about DAG runs, specifying the verb 'Get' and the resource 'DAG runs' (aggregate stats). It effectively distinguishes from sibling tools like get_dag_details (single DAG) and get_dag_run (single run) by focusing on aggregate state counts. The use cases list further clarifies its role.

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?

The description explicitly lists example queries that should trigger this tool (health, success/failure counts, summary, etc.), providing clear context. It does not mention when NOT to use it or name alternatives directly, but the implied scope is clear given the sibling tools, so it's slightly below a 5.

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/astronomer/astro-airflow-mcp'

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