Skip to main content
Glama

archive-card

Archive Trello cards to remove them from active boards while preserving their data for future reference.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cardIdYesID of the card to archive

Implementation Reference

  • 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);
    },
  • 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"]
        }
    },
  • 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 });
    }
  • 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
    ];
  • 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
    };

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/v4lheru/trello-mcp-server'

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