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

reorder_columns

Rearrange column positions within a Yokan Kanban board by specifying the desired order of column IDs.

Instructions

Reorders columns within a board.

Args: board_id (int): The ID of the board containing the columns. column_ids (List[str]): A list of column IDs in the desired new order. 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_idsYes
authYes

Implementation Reference

  • The reorder_columns tool handler updates the board's columnOrder in the data object and calls the YokanClient to update the board.
    async def reorder_columns(
        board_id: int,
        column_ids: List[str],
        auth: AuthContext,
    ) -> int:
        """Reorders columns within a board.
    
        Args:
            board_id (int): The ID of the board containing the columns.
            column_ids (List[str]): A list of column IDs in the desired new order.
            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)
        board.data["columnOrder"] = column_ids
        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