move-cards
Move Trello cards between lists and adjust their positions using specific card and list IDs for efficient board organization.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cards | Yes |
Implementation Reference
- src/tools/card-tool-handlers.ts:85-88 (handler)MCP tool handler for 'move_card_to_list' which calls the CardService to move the card to a new list.move_card_to_list: async (args: any) => { const cardService = ServiceFactory.getInstance().getCardService(); return cardService.moveCardToList(args.cardId, args.listId); },
- src/tools/card-tools.ts:260-276 (schema)Tool schema definition for 'move_card_to_list', specifying input parameters cardId and listId.name: "move_card_to_list", description: "Move a card to a different list. Use this tool to change the status of a card.", inputSchema: { type: "object", properties: { cardId: { type: "string", description: "ID of the card to move" }, listId: { type: "string", description: "ID of the destination list" } }, required: ["cardId", "listId"] } },
- src/services/card-service.ts:95-97 (helper)Core implementation in CardService that updates the card's list ID via the Trello API update endpoint.async moveCardToList(cardId: string, listId: string): Promise<TrelloCard> { return this.updateCard(cardId, { idList: listId }); }
- src/tools/trello-tool-handlers.ts:18-24 (registration)Registration of cardToolHandlers (including move_card_to_list handler) into the main trelloToolHandlers object used by the MCP server.export const trelloToolHandlers = { ...boardToolHandlers, ...listToolHandlers, ...cardToolHandlers, ...memberToolHandlers, ...labelToolHandlers, ...checklistToolHandlers
- src/tools/trello-tools.ts:18-25 (registration)Registration of cardTools (including move_card_to_list schema) into the main trelloTools array used by the MCP server.export const trelloTools = [ ...boardTools, ...listTools, ...cardTools, ...memberTools, ...labelTools, ...checklistTools ];