Skip to main content
Glama

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
NameRequiredDescriptionDefault
descNo
list_idYes
nameYes

Implementation Reference

  • 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); },
  • 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"], },
  • 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"], }, },
  • 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 }) }); }
  • Central registration where registerTrello() is called to include Trello tools (including create_card) in the MCP server.
    registerNotion(), registerTrello(),

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