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
| Name | Required | Description | Default |
|---|---|---|---|
| dag_ids | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |