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
| Name | Required | Description | Default |
|---|---|---|---|
| list_id | Yes | ||
| name | Yes | ||
| desc | No |
Implementation Reference
- src/apis/trello/trello.ts:86-93 (handler)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); },
- src/apis/trello/trello.ts:46-58 (registration)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"], }, },
- src/apis/trello/trello.ts:49-57 (schema)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"], },
- src/apis/trello/trello.ts:22-24 (helper)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 }) }); }