Skip to main content
Glama
astronomer

astro-airflow-mcp

Official
by astronomer

list_tasks

Retrieve all tasks defined in a specific DAG, including task IDs, operators, owners, dependencies, and configuration details.

Instructions

Get all tasks defined in a specific DAG.

Use this tool when the user asks about:

  • "What tasks are in DAG X?" or "List all tasks for DAG Y"

  • "Show me the tasks in this workflow" or "What's in the DAG?"

  • "What are the steps in DAG Z?" or "Show me the task structure"

  • "What does this DAG do?" or "Explain the workflow steps"

Returns information about all tasks in the DAG including:

  • task_id: Unique identifier for the task

  • task_display_name: Human-readable display name

  • owner: Who owns this task

  • operator_name: Type of operator (PythonOperator, BashOperator, etc.)

  • start_date: When this task becomes active

  • end_date: When this task becomes inactive (if set)

  • trigger_rule: When this task should run

  • retries: Number of retry attempts

  • pool: Resource pool assignment

  • downstream_task_ids: List of tasks that depend on this task

  • upstream_task_ids: List of tasks this task depends on

Args: dag_id: The ID of the DAG to list tasks for

Returns: JSON with list of all tasks in the DAG and their configurations

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dag_idYes

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 bears the full burden. It states the tool returns a list of tasks with fields like task_id, owner, etc., but does not disclose behavior on missing DAG, errors, or side effects. Adequate but not thorough.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with a clear opening, bullet-pointed examples, and return fields. It is slightly verbose but every sentence contributes value. Front-loaded with purpose.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the simple interface (one required parameter, list return), the description covers purpose, parameter, and return fields. There is an output schema, so return details need not be expanded. Minor missing error contexts but sufficient overall.

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?

The only parameter dag_id is described as 'The ID of the DAG to list tasks for', adding meaning beyond the schema's type and required flag. With 0% schema description coverage, this explanation is valuable.

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 'Get all tasks defined in a specific DAG' with a specific verb and resource. It distinguishes from siblings like get_task (single task) and explore_dag (different scope).

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?

Provides explicit query examples such as 'What tasks are in DAG X?' and 'Show me the tasks in this workflow'. It does not explicitly state when not to use the tool, but the context is clear for its intended use.

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