Skip to main content
Glama

update_card

Modify card details in Trello by providing the card ID and updated properties to change information on existing cards.

Instructions

Update properties of a specific card

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
requestYes

Implementation Reference

  • Handler logic for the 'update_card' tool: parses arguments, calls TrelloClient.updateCard, and returns the updated card as JSON.
    case 'update_card': {
      const { card_id, update_data } = (request.params.arguments as { request: UpdateCardRequest }).request;
      const updatedCard = await this.trelloClient.updateCard(card_id, update_data);
      return {
        content: [{ type: 'text', text: JSON.stringify(updatedCard, null, 2) }],
      };
    }
  • TypeScript interface defining the input structure for update_card: card_id and update_data.
    export interface UpdateCardRequest {
      card_id: string;
      update_data: Partial<Card>;
    }
  • src/index.ts:132-157 (registration)
    Tool registration in ListToolsRequestHandler, including name, description, and input schema matching UpdateCardRequest.
    {
      name: 'update_card',
      description: 'Update properties of a specific card',
      inputSchema: {
        type: 'object',
        properties: {
          request: {
            type: 'object',
            properties: {
              card_id: {
                type: 'string',
                description: 'ID of the card',
              },
              update_data: {
                type: 'object',
                description: 'Properties to update on the card',
                additionalProperties: true,
              },
            },
            required: ['card_id', 'update_data'],
          },
        },
        required: ['request'],
        title: 'update_cardArguments',
      },
    },
  • Core implementation of card update via Trello API using axios PUT request.
    async updateCard(cardId: string, updateData: Partial<Card>): Promise<Card> {
      const response = await axios.put(
        `${this.baseUrl}/cards/${cardId}?${this.getAuthParams()}`,
        updateData
      );
      return response.data;
    }

Tool Definition Quality

Score is being calculated. Check back soon.

Install Server

Other 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/andypost/mcp-server-ts-trello'

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