Skip to main content
Glama

MCP-Airflow-API

list_task_instances_all

Retrieve task instances across all DAGs or specific DAGs with advanced filtering by date, duration, state, pool, queue, and pagination options for Airflow cluster monitoring.

Instructions

[Tool Role]: Lists task instances across all DAGs or filtered by specific DAG with comprehensive filtering options.

IMPORTANT: When users provide natural language dates, calculate relative dates using the current server time context (internally via get_current_time_context):

  • "yesterday" = current_date - 1 day
  • "last week" = current_date - 7 days to current_date - 1 day
  • "last 3 days" = current_date - 3 days to current_date
  • "today" = current_date

Args: dag_id: Filter by DAG ID (optional) dag_run_id: Filter by DAG run ID (optional) execution_date_gte: Filter by execution date greater than or equal to (ISO 8601 format with timezone, e.g., '2024-01-01T00:00:00Z', optional) execution_date_lte: Filter by execution date less than or equal to (ISO 8601 format with timezone, e.g., '2024-01-01T23:59:59Z', optional) start_date_gte: Filter by start date greater than or equal to (ISO 8601 format with timezone, optional) start_date_lte: Filter by start date less than or equal to (ISO 8601 format with timezone, optional) end_date_gte: Filter by end date greater than or equal to (ISO 8601 format with timezone, optional) end_date_lte: Filter by end date less than or equal to (ISO 8601 format with timezone, optional) duration_gte: Filter by duration greater than or equal to (seconds, optional) duration_lte: Filter by duration less than or equal to (seconds, optional) state: Filter by task state (queued, running, success, failed, up_for_retry, up_for_reschedule, upstream_failed, skipped, deferred, scheduled, removed, restarting, optional) pool: Filter by pool name (optional) queue: Filter by queue name (optional) limit: Maximum number of task instances to return (default: 20) offset: Number of task instances to skip for pagination (default: 0)

Returns: List of task instances with comprehensive information: task_instances, total_entries, limit, offset

Input Schema

NameRequiredDescriptionDefault
dag_idNo
dag_run_idNo
duration_gteNo
duration_lteNo
end_date_gteNo
end_date_lteNo
execution_date_gteNo
execution_date_lteNo
limitNo
offsetNo
poolNo
queueNo
start_date_gteNo
start_date_lteNo
stateNo

Input Schema (JSON Schema)

{ "properties": { "dag_id": { "default": null, "title": "Dag Id", "type": "string" }, "dag_run_id": { "default": null, "title": "Dag Run Id", "type": "string" }, "duration_gte": { "default": null, "title": "Duration Gte", "type": "number" }, "duration_lte": { "default": null, "title": "Duration Lte", "type": "number" }, "end_date_gte": { "default": null, "title": "End Date Gte", "type": "string" }, "end_date_lte": { "default": null, "title": "End Date Lte", "type": "string" }, "execution_date_gte": { "default": null, "title": "Execution Date Gte", "type": "string" }, "execution_date_lte": { "default": null, "title": "Execution Date Lte", "type": "string" }, "limit": { "default": 20, "title": "Limit", "type": "integer" }, "offset": { "default": 0, "title": "Offset", "type": "integer" }, "pool": { "default": null, "title": "Pool", "type": "string" }, "queue": { "default": null, "title": "Queue", "type": "string" }, "start_date_gte": { "default": null, "title": "Start Date Gte", "type": "string" }, "start_date_lte": { "default": null, "title": "Start Date Lte", "type": "string" }, "state": { "default": null, "title": "State", "type": "string" } }, "type": "object" }

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/call518/MCP-Airflow-API'

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