archive-card
Archive Trello cards automatically by specifying the card ID, streamlining board organization and reducing clutter.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cardId | Yes | ID of the card to archive |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"cardId": {
"description": "ID of the card to archive",
"type": "string"
}
},
"required": [
"cardId"
],
"type": "object"
}
Implementation Reference
- src/tools/card-tool-handlers.ts:60-68 (handler)MCP tool handler function for the 'archive-card' tool. This is the primary execution point for the tool, delegating to the CardService./** * 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)JSON Schema definition for the 'archive_card' tool inputs, specifying the required cardId parameter.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)Service-level implementation of archiving a card by setting the 'closed' property to true via a general updateCard method.* 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)Aggregates all individual tool definitions, including cardTools with 'archive_card', into trelloTools used for tool listing in MCP.export const trelloTools = [ ...boardTools, ...listTools, ...cardTools, ...memberTools, ...labelTools, ...checklistTools ];
- src/tools/trello-tool-handlers.ts:18-25 (registration)Aggregates all individual tool handlers, including cardToolHandlers with 'archive_card' handler, into trelloToolHandlers used for tool execution dispatch in MCP.export const trelloToolHandlers = { ...boardToolHandlers, ...listToolHandlers, ...cardToolHandlers, ...memberToolHandlers, ...labelToolHandlers, ...checklistToolHandlers };