archive-card
Archive Trello cards to remove them from active boards while preserving their data for future reference.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cardId | Yes | ID of the card to archive |
Implementation Reference
- src/tools/card-tool-handlers.ts:60-68 (handler)The handler function for the "archive_card" tool that invokes the card service to archive the card./** * Archive a card * @param args - Tool arguments * @returns Promise resolving to the updated card */ archive_card: async (args: any) => { const cardService = ServiceFactory.getInstance().getCardService(); return cardService.archiveCard(args.cardId); },
- src/tools/card-tools.ts:232-244 (schema)The JSON schema definition and metadata for the "archive_card" tool.name: "archive_card", description: "Archive a card. Use this tool to archive a card without deleting it.", inputSchema: { type: "object", properties: { cardId: { type: "string", description: "ID of the card to archive" } }, required: ["cardId"] } },
- src/services/card-service.ts:72-78 (helper)The core service method that archives a card by updating its 'closed' property to true.* Archive a card * @param cardId - ID of the card to archive * @returns Promise resolving to the updated card */ async archiveCard(cardId: string): Promise<TrelloCard> { return this.updateCard(cardId, { closed: true }); }
- src/tools/trello-tools.ts:18-25 (registration)Registration of all tools including cardTools (which contains "archive_card") into the main trelloTools array used for MCP.export const trelloTools = [ ...boardTools, ...listTools, ...cardTools, ...memberTools, ...labelTools, ...checklistTools ];
- src/tools/trello-tool-handlers.ts:18-25 (registration)Registration of all tool handlers including cardToolHandlers (which contains "archive_card" handler) into the main trelloToolHandlers object.export const trelloToolHandlers = { ...boardToolHandlers, ...listToolHandlers, ...cardToolHandlers, ...memberToolHandlers, ...labelToolHandlers, ...checklistToolHandlers };