Skip to main content
Glama
TaylorChen

Multi-MCPs

by TaylorChen

create_card

Add a new card to a Trello list with a name and optional description, enabling task management through the Multi-MCPs server's unified API integration.

Instructions

Create a card in a Trello list

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
list_idYes
nameYes
descNo

Implementation Reference

  • The asynchronous handler function for the 'create_card' tool. It validates configuration, extracts list_id, name, and optional desc from args, and delegates to TrelloClient.createCard.
    async create_card(args: Record<string, unknown>) {
      if (!cfg.trelloKey || !cfg.trelloToken) throw new Error("TRELLO_KEY/TRELLO_TOKEN are not configured");
      const listId = String(args.list_id || "");
      const name = String(args.name || "");
      const desc = args.desc ? String(args.desc) : undefined;
      if (!listId || !name) throw new Error("list_id and name are required");
      return client.createCard(listId, name, desc);
    },
  • The tool registration object for 'create_card' within the registerTrello() function, including name, description, and input schema.
    {
      name: "create_card",
      description: "Create a card in a Trello list",
      inputSchema: {
        type: "object",
        properties: {
          list_id: { type: "string" },
          name: { type: "string" },
          desc: { type: "string" },
        },
        required: ["list_id", "name"],
      },
    },
  • Input schema definition for the 'create_card' tool, specifying required list_id and name, optional desc.
    inputSchema: {
      type: "object",
      properties: {
        list_id: { type: "string" },
        name: { type: "string" },
        desc: { type: "string" },
      },
      required: ["list_id", "name"],
    },
  • TrelloClient helper method that performs the actual API request to create a card using POST /cards with authentication and parameters.
    createCard(listId: string, name: string, desc?: string) {
      return this.request(`/cards`, { method: "POST", query: this.authQuery({ idList: listId, name, desc }) });
    }

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