Skip to main content
Glama
astronomer

astro-airflow-mcp

Official
by astronomer

get_task_instance

Retrieve execution details for a specific Airflow task instance, including status, duration, logs, and configuration, to diagnose issues or monitor workflow progress.

Instructions

Get detailed information about a specific task instance execution.

Use this tool when the user asks about:

  • "Show me details for task X in DAG run Y" or "What's the status of task Z?"

  • "Why did task A fail?" or "When did task B start/finish?"

  • "What's the duration of task C?" or "Show me task execution details"

  • "Get logs for task D" or "What operator does task E use?"

Returns detailed task instance information including:

  • task_id: Name of the task

  • state: Current state (success, failed, running, queued, etc.)

  • start_date: When the task started

  • end_date: When the task finished

  • duration: How long the task ran

  • try_number: Which attempt this is

  • max_tries: Maximum retry attempts

  • operator: What operator type (PythonOperator, BashOperator, etc.)

  • executor_config: Executor configuration

  • pool: Resource pool assignment

Args: dag_id: The ID of the DAG dag_run_id: The ID of the DAG run (e.g., "manual__2024-01-01T00:00:00+00:00") task_id: The ID of the task within the DAG

Returns: JSON with complete task instance details

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dag_idYes
dag_run_idYes
task_idYes

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