Skip to main content
Glama

archive-card

Archive Trello cards automatically by specifying the card ID, streamlining board organization and reducing clutter.

Input Schema

NameRequiredDescriptionDefault
cardIdYesID 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

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

Other Tools

Related Tools

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