Skip to main content
Glama

get_board_cards

Retrieve all cards from a Trello board to view tasks and manage project workflows. Specify the board ID to access card details.

Instructions

Get cards on a Trello board

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
board_idYes

Implementation Reference

  • Handler function that checks configuration, validates board_id argument, and calls the Trello client to retrieve board cards.
    async get_board_cards(args: Record<string, unknown>) { if (!cfg.trelloKey || !cfg.trelloToken) throw new Error("TRELLO_KEY/TRELLO_TOKEN are not configured"); const boardId = String(args.board_id || ""); if (!boardId) throw new Error("board_id is required"); return client.getBoardCards(boardId); },
  • TrelloClient class method that performs the API request to fetch all cards on a specified board.
    getBoardCards(boardId: string) { return this.request(`/boards/${boardId}/cards`, { query: this.authQuery() }); }
  • JSON schema defining the input for the tool: an object with required 'board_id' string property.
    inputSchema: { type: "object", properties: { board_id: { type: "string" } }, required: ["board_id"], },
  • Tool definition object registered in the Trello module's ToolRegistration, including name, description, and input schema.
    { name: "get_board_cards", description: "Get cards on a Trello board", inputSchema: { type: "object", properties: { board_id: { type: "string" } }, required: ["board_id"], }, },
  • Invocation of registerTrello() in the central tools registration array, integrating Trello tools into the MCP server.
    registerTrello(),

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/TaylorChen/muti-mcps'

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