Skip to main content
Glama
astronomer

astro-airflow-mcp

Official
by astronomer

get_dag_details

Retrieve comprehensive details for a specific Apache Airflow DAG, including schedule, status, configuration, and metadata.

Instructions

Get detailed information about a specific Apache Airflow DAG.

Use this tool when the user asks about:

  • "Show me details for DAG X" or "What are the details of DAG Y?"

  • "Tell me about DAG Z" or "Get information for this specific DAG"

  • "What's the schedule for DAG X?" or "When does this DAG run?"

  • "Is DAG Y paused?" or "Show me the configuration of DAG Z"

  • "Who owns this DAG?" or "What are the tags for this workflow?"

Returns complete DAG information including:

  • dag_id: Unique identifier for the DAG

  • is_paused: Whether the DAG is currently paused

  • is_active: Whether the DAG is active

  • is_subdag: Whether this is a SubDAG

  • fileloc: File path where the DAG is defined

  • file_token: Unique token for the DAG file

  • owners: List of DAG owners

  • description: Human-readable description of what the DAG does

  • schedule_interval: Cron expression or timedelta for scheduling

  • tags: List of tags/labels for categorization

  • max_active_runs: Maximum number of concurrent runs

  • max_active_tasks: Maximum number of concurrent tasks

  • has_task_concurrency_limits: Whether task concurrency limits are set

  • has_import_errors: Whether the DAG has import errors

  • next_dagrun: When the next DAG run is scheduled

  • next_dagrun_create_after: Earliest time for next DAG run creation

Args: dag_id: The ID of the DAG to get details for

Returns: JSON with complete details about the specified DAG

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dag_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden. It effectively describes the tool's behavior: it's a read-only operation (implied by 'Get'), returns complete DAG information, and specifies the output format as JSON. However, it doesn't mention potential errors (e.g., if DAG doesn't exist) or performance aspects, leaving minor gaps.

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

Conciseness5/5

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

The description is well-structured and front-loaded with the core purpose, followed by usage examples, return details, and parameter info. Every sentence adds value without redundancy, making it efficient and easy to parse for an AI agent.

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

Completeness5/5

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

Given the tool's complexity (single parameter, no annotations, but with an output schema), the description is complete. It covers purpose, usage, parameter semantics, and detailed return values, compensating for the lack of annotations and low schema coverage. The output schema existence means return format details are less critical.

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 schema description coverage is 0%, but the description compensates by clearly explaining the single parameter 'dag_id' as 'The ID of the DAG to get details for' in the Args section. This adds essential meaning beyond the bare schema, though it could elaborate on format constraints (e.g., string patterns).

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 explicitly states 'Get detailed information about a specific Apache Airflow DAG' with a clear verb ('Get') and resource ('DAG'), and distinguishes it from siblings like 'list_dags' (which lists multiple DAGs) and 'get_dag_run' (which focuses on runs rather than DAG metadata). The specific examples further clarify the scope.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides explicit usage scenarios with bullet points covering when to use this tool (e.g., for details, schedule, pause status, ownership, tags) and implicitly distinguishes it from alternatives like 'list_dags' (for listing) or 'get_dag_run' (for run-specific data). The context is clear and comprehensive.

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