monday-delete-item
Remove a specific item from a Monday.com board by providing its unique item ID. This tool facilitates efficient item management within the Monday.com MCP Server.
Instructions
Delete an item from a Monday.com board
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| itemId | Yes | Monday.com Item ID to delete. |
Implementation Reference
- src/mcp_server_monday/item.py:297-309 (handler)Core handler function that performs the item deletion using the MondayClient API.async def handle_monday_delete_item( monday_client: MondayClient, item_id: str ) -> list[types.TextContent]: """ Delete an item from a Monday.com board. Args: monday_client (MondayClient): The Monday.com client. item_id (str): The ID of the item to delete. """ monday_client.items.delete_item_by_id(item_id=item_id) return [types.TextContent(type="text", text=f"Deleted item {item_id}.")]
- src/mcp_server_monday/fastmcp_server.py:256-269 (registration)Registers the tool 'monday_delete_item' (corresponding to 'monday-delete-item') with FastMCP, wrapping the core handler and defining input schema via args and docstring.@mcp.tool() async def monday_delete_item(itemId: str) -> str: """Delete an item from a Monday.com board. Args: itemId: Monday.com Item ID to delete. """ try: client = get_monday_client() result = await handle_monday_delete_item(client, itemId) return result[0].text except Exception as e: return f"Error deleting item: {e}"