Skip to main content
Glama
m0xai

Trello MCP Server with Python

by m0xai

add_checkitem

Add items to Trello checklists to track tasks and progress on cards, specifying completion status and position.

Instructions

Add a new item to a checklist. Args: checklist_id (str): The ID of the checklist to add the item to name (str): The name of the checkitem checked (bool): Whether the item is checked pos (Optional[str]): The position of the item Returns: Dict: The created checkitem data

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
checklist_idYes
nameYes
checkedNo
posNo

Implementation Reference

  • MCP tool handler for 'add_checkitem'. Thin wrapper that delegates to ChecklistService.add_checkitem.
    async def add_checkitem( checklist_id: str, name: str, checked: bool = False, pos: str | None = None ) -> Dict: """ Add a new item to a checklist. Args: checklist_id (str): The ID of the checklist to add the item to name (str): The name of the checkitem checked (bool): Whether the item is checked pos (Optional[str]): The position of the item Returns: Dict: The created checkitem data """ return await service.add_checkitem(checklist_id, name, checked, pos)
  • Registration of the 'add_checkitem' tool with the MCP server.
    mcp.add_tool(checklist.add_checkitem)
  • Core implementation in ChecklistService that calls the Trello API to add a checkitem.
    async def add_checkitem( self, checklist_id: str, name: str, checked: bool = False, pos: str | None = None, ) -> Dict: """ Add a new item to a checklist. Args: checklist_id (str): The ID of the checklist to add the item to name (str): The name of the checkitem checked (bool): Whether the item is checked pos (Optional[str]): The position of the item Returns: Dict: The created checkitem data """ data = {"name": name, "checked": checked} if pos: data["pos"] = pos return await self.client.POST( f"/checklists/{checklist_id}/checkItems", data=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