Skip to main content
Glama
astronomer

astro-airflow-mcp

Official
by astronomer

get_dag_stats

Retrieve DAG run statistics including success, failure, running, and queued counts to monitor workflow health and performance in Apache Airflow.

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

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