Skip to main content
Glama

MCP Server Airflow Token

delete_dag_dataset_queued_events

Remove queued Dataset events associated with a specific DAG to clean up event queues and manage Airflow dataset dependencies.

Instructions

Delete queued Dataset events for a DAG

Input Schema

NameRequiredDescriptionDefault
beforeNo
dag_idYes

Input Schema (JSON Schema)

{ "properties": { "before": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Before" }, "dag_id": { "title": "Dag Id", "type": "string" } }, "required": [ "dag_id" ], "type": "object" }

Implementation Reference

  • The MCP tool handler function that implements the deletion of queued dataset events for a given DAG by invoking the underlying Airflow DatasetApi.
    async def delete_dag_dataset_queued_events( dag_id: str, before: Optional[str] = None, ) -> List[Union[types.TextContent, types.ImageContent, types.EmbeddedResource]]: kwargs: Dict[str, Any] = {} if before is not None: kwargs["before"] = before response = dataset_api.delete_dag_dataset_queued_events(dag_id=dag_id, **kwargs) return [types.TextContent(type="text", text=str(response.to_dict()))]
  • Registration of the tool in the get_all_functions() list, which is imported and used in src/main.py to add the tool to the MCP server via app.add_tool().
    delete_dag_dataset_queued_events, "delete_dag_dataset_queued_events", "Delete queued Dataset events for a DAG", False, ),

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/nikhil-ganage/mcp-server-airflow-token'

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