Skip to main content
Glama

get_dag_source

Retrieve Airflow DAG source code to analyze tasks, dependencies, schedule, and configuration for debugging or understanding pipeline structure.

Instructions

Get the source code / definition of a DAG.

Use this to understand what a DAG does — its tasks, operators, dependencies, schedule, and configuration. Useful for debugging or understanding a pipeline's structure.

Args: dag_id: The DAG identifier. env: Target environment — 'dev', 'uat', 'test', or 'prod'. IMPORTANT: Do NOT guess or default. Ask the user which environment if not specified.

Returns the DAG details including file location, schedule, tags, and task list.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dag_idYes
envNo

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/SrujanReddyKallu2024/MCP'

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