Skip to main content
Glama
TaylorChen

Multi-MCPs

by TaylorChen

update_card

Modify Trello card details such as title, description, due date, or labels to keep project tasks current and organized.

Instructions

Update a Trello card

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
card_idYes
updatesYes

Implementation Reference

  • The main handler function for the 'update_card' tool. It validates configuration, extracts arguments, and calls the client's updateCard method to perform the update.
    async update_card(args: Record<string, unknown>) {
      if (!cfg.trelloKey || !cfg.trelloToken) throw new Error("TRELLO_KEY/TRELLO_TOKEN are not configured");
      const cardId = String(args.card_id || "");
      if (!cardId) throw new Error("card_id is required");
      const updates = (args.updates as Record<string, unknown>) || {};
      return client.updateCard(cardId, updates);
    },
  • Tool registration for 'update_card', including name, description, and input schema definition.
    {
      name: "update_card",
      description: "Update a Trello card",
      inputSchema: {
        type: "object",
        properties: {
          card_id: { type: "string" },
          updates: { type: "object" },
        },
        required: ["card_id", "updates"],
      },
    },
  • Helper method in TrelloClient that performs the actual API request to update a card.
    updateCard(cardId: string, updates: Record<string, unknown>) {
      return this.request(`/cards/${cardId}`, { method: "PUT", query: this.authQuery(updates as any) });
    }

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/TaylorChen/muti-mcps'

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