Skip to main content
Glama
yangkyeongmo

MCP Server for Apache Airflow

by yangkyeongmo

patch_pool

Modify pool settings in Apache Airflow by updating slots, descriptions, or including deferred tasks for optimized resource allocation and workflow management.

Instructions

Update a pool

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
descriptionNo
include_deferredNo
pool_nameYes
slotsNo

Implementation Reference

  • The async handler function that executes the patch_pool tool: updates an Airflow pool's slots, description, or include_deferred using pool_api.patch_pool.
    async def patch_pool( pool_name: str, slots: Optional[int] = None, description: Optional[str] = None, include_deferred: Optional[bool] = None, ) -> List[Union[types.TextContent, types.ImageContent, types.EmbeddedResource]]: """ Update a pool. Args: pool_name: The pool name. slots: The number of slots. description: The pool description. include_deferred: Whether to include deferred tasks in slot calculations. Returns: The updated pool details. """ pool = Pool() if slots is not None: pool.slots = slots if description is not None: pool.description = description if include_deferred is not None: pool.include_deferred = include_deferred response = pool_api.patch_pool(pool_name=pool_name, pool=pool) return [types.TextContent(type="text", text=str(response.to_dict()))]
  • Registration function that includes patch_pool in the list of MCP tools: (patch_pool, "patch_pool", "Update a pool", False)
    def get_all_functions() -> list[tuple[Callable, str, str, bool]]: """Return list of (function, name, description, is_read_only) tuples for registration.""" return [ (get_pools, "get_pools", "List pools", True), (get_pool, "get_pool", "Get a pool by name", True), (delete_pool, "delete_pool", "Delete a pool", False), (post_pool, "post_pool", "Create a pool", False), (patch_pool, "patch_pool", "Update a pool", 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