Skip to main content
Glama
m0xai

Trello MCP Server with Python

by m0xai

create_checklist

Add a checklist to a Trello card to organize tasks and track progress. Specify the card, checklist name, and optional position.

Instructions

Create a new checklist on a card. Args: card_id (str): The ID of the card to create the checklist on name (str): The name of the checklist pos (Optional[str]): The position of the checklist (top, bottom, or a positive number) Returns: Dict: The created checklist data

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
card_idYes
nameYes
posNo

Implementation Reference

  • The MCP tool handler function 'create_checklist' that delegates to ChecklistService to create a checklist on a Trello card.
    async def create_checklist(card_id: str, name: str, pos: str | None = None) -> Dict: """ Create a new checklist on a card. Args: card_id (str): The ID of the card to create the checklist on name (str): The name of the checklist pos (Optional[str]): The position of the checklist (top, bottom, or a positive number) Returns: Dict: The created checklist data """ return await service.create_checklist(card_id, name, pos)
  • Registration of the 'create_checklist' tool with the MCP server in the register_tools function.
    mcp.add_tool(checklist.create_checklist)
  • The ChecklistService.create_checklist method that makes the Trello API POST request to create the checklist.
    async def create_checklist( self, card_id: str, name: str, pos: str | None = None ) -> Dict: """ Create a new checklist on a card. Args: card_id (str): The ID of the card to create the checklist on name (str): The name of the checklist pos (Optional[str]): The position of the checklist (top, bottom, or a positive number) Returns: Dict: The created checklist data """ data = {"name": name} if pos: data["pos"] = pos return await self.client.POST(f"/checklists", data={"idCard": card_id, **data})

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/m0xai/trello-mcp-server'

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