create_card
Add cards to Trello lists by specifying list ID, name, and description. Simplifies task management on Multi-MCPs by integrating with Trello's API.
Instructions
Create a card in a Trello list
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| desc | No | ||
| list_id | Yes | ||
| name | Yes |
Implementation Reference
- src/apis/trello/trello.ts:86-93 (handler)Handler function that implements the create_card tool, validates arguments, checks config, and calls the Trello client to create the card.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:50-57 (schema)Input schema defining parameters for the create_card tool: list_id (required), name (required), desc (optional).type: "object", properties: { list_id: { type: "string" }, name: { type: "string" }, desc: { type: "string" }, }, required: ["list_id", "name"], },
- src/apis/trello/trello.ts:46-58 (registration)Tool registration object for create_card, including name, description, and input schema, returned by registerTrello().{ 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:22-24 (helper)TrelloClient helper method that makes the API request to create a card.createCard(listId: string, name: string, desc?: string) { return this.request(`/cards`, { method: "POST", query: this.authQuery({ idList: listId, name, desc }) }); }
- src/tools/register.ts:27-28 (registration)Central registration where registerTrello() is called to include Trello tools (including create_card) in the MCP server.registerNotion(), registerTrello(),