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

get_columns

Retrieve all columns from a specified board in Yokan Kanban Board to organize and manage workflow tasks effectively.

Instructions

Retrieves all columns for a given board.

Args: board_id (int): The ID of the board to retrieve columns from. auth (AuthContext): The authentication context containing user ID and token.

Returns: List[yokan_models.Column]: A list of column objects.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
board_idYes
authYes

Implementation Reference

  • The 'get_columns' handler function retrieves columns for a specified board from the Yokan client and returns them as a list of Column objects.
    async def get_columns(
        board_id: int,
        auth: AuthContext,
    ) -> List[yokan_models.Column]:
        """Retrieves all columns for a given board.
    
        Args:
            board_id (int): The ID of the board to retrieve columns from.
            auth (AuthContext): The authentication context containing user ID and token.
    
        Returns:
            List[yokan_models.Column]: A list of column objects.
        """
        board = await yokan_client.get_board(board_id=board_id, token=auth.token)
        if "columns" not in board.data:
            return []
        return [yokan_models.Column(**col) for col in board.data["columns"].values()]

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