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
| Name | Required | Description | Default |
|---|---|---|---|
| board_id | Yes |
Implementation Reference
- src/apis/trello/trello.ts:101-106 (handler)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); },
- src/apis/trello/trello.ts:30-32 (helper)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() }); }
- src/apis/trello/trello.ts:74-78 (schema)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"], },
- src/apis/trello/trello.ts:71-79 (registration)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"], }, },
- src/tools/register.ts:28-28 (registration)Invocation of registerTrello() in the central tools registration array, integrating Trello tools into the MCP server.registerTrello(),