Skip to main content
Glama
yangkyeongmo

MCP Server for Apache Airflow

by yangkyeongmo

pause_dag

Temporarily halt a specific directed acyclic graph (DAG) in Apache Airflow by specifying its ID, enabling control over workflow execution without deletion.

Instructions

Pause a DAG by ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dag_idYes

Implementation Reference

  • The main handler function for the 'pause_dag' tool. It pauses the specified DAG by creating a DAG object with is_paused=True and patching it via the Airflow DAG API, returning the response.
    async def pause_dag(dag_id: str) -> List[Union[types.TextContent, types.ImageContent, types.EmbeddedResource]]: dag = DAG(is_paused=True) response = dag_api.patch_dag(dag_id=dag_id, dag=dag, update_mask=["is_paused"]) return [types.TextContent(type="text", text=str(response.to_dict()))]
  • Registration entry for the 'pause_dag' tool within the get_all_functions() list, which provides (function, name, description, read_only) tuples for tool registration.
    (pause_dag, "pause_dag", "Pause a DAG by ID", 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/yangkyeongmo/mcp-server-apache-airflow'

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