Skip to main content
Glama
yokan-board
by yokan-board

delete_column

Remove a column from a Yokan Board to reorganize your kanban workflow by specifying board and column IDs.

Instructions

Deletes a column from a board.

Args: board_id (int): The ID of the board containing the column. column_id (str): The ID of the column to delete. auth (AuthContext): The authentication context containing user ID and token.

Returns: int: The ID of the updated board.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
board_idYes
column_idYes
authYes

Implementation Reference

  • The 'delete_column' tool handler, which removes a column from a Kanban board and updates the board data.
    async def delete_column(
        board_id: int,
        column_id: str,
        auth: AuthContext,
    ) -> int:
        """Deletes a column from a board.
    
        Args:
            board_id (int): The ID of the board containing the column.
            column_id (str): The ID of the column to delete.
            auth (AuthContext): The authentication context containing user ID and token.
    
        Returns:
            int: The ID of the updated board.
        """
        board = await yokan_client.get_board(board_id=board_id, token=auth.token)
        if "columns" not in board.data or column_id not in board.data["columns"]:
            raise McpError(error=ErrorData(code=NOT_FOUND, message="Column not found"))
        del board.data["columns"][column_id]
        if "columnOrder" in board.data:
            board.data["columnOrder"].remove(column_id)
        return await yokan_client.update_board(
            board_id=board_id, name=board.name, data=board.data, token=auth.token
        )

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/yokan-board/yokan-board-mcp'

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