get_dag_dataset_queued_event
Retrieve queued Dataset events for Apache Airflow DAGs to monitor data dependencies and trigger conditions using the MCP Server Airflow Token.
Instructions
Get a queued Dataset event for a DAG
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dag_id | Yes | ||
| uri | Yes |
Input Schema (JSON Schema)
{
"properties": {
"dag_id": {
"title": "Dag Id",
"type": "string"
},
"uri": {
"title": "Uri",
"type": "string"
}
},
"required": [
"dag_id",
"uri"
],
"type": "object"
}
Implementation Reference
- src/airflow/dataset.py:120-125 (handler)The handler function that implements the core logic of the get_dag_dataset_queued_event tool by calling the underlying dataset_api and formatting the response as MCP TextContent.async def get_dag_dataset_queued_event( dag_id: str, uri: str, ) -> List[Union[types.TextContent, types.ImageContent, types.EmbeddedResource]]: response = dataset_api.get_dag_dataset_queued_event(dag_id=dag_id, uri=uri) return [types.TextContent(type="text", text=str(response.to_dict()))]
- src/airflow/dataset.py:18-18 (registration)The registration entry for the tool in the get_all_functions() list returned by the dataset module, which is later used by src/main.py to add the tool to the MCP server.(get_dag_dataset_queued_event, "get_dag_dataset_queued_event", "Get a queued Dataset event for a DAG", True),