Skip to main content
Glama
m0xai

Trello MCP Server with Python

by m0xai

update_checkitem

Modify checklist items in Trello by updating names, completion status, or positions to track task progress.

Instructions

Update a checkitem in a checklist.

Args:
    checklist_id (str): The ID of the checklist containing the item
    checkitem_id (str): The ID of the checkitem to update
    name (Optional[str]): New name for the checkitem
    checked (Optional[bool]): New checked state
    pos (Optional[str]): New position for the item

Returns:
    Dict: The updated checkitem data

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
checklist_idYes
checkitem_idYes
nameNo
checkedNo
posNo

Implementation Reference

  • The MCP tool handler function for 'update_checkitem'. It delegates to the ChecklistService.update_checkitem method.
    async def update_checkitem(
        checklist_id: str,
        checkitem_id: str,
        name: str | None = None,
        checked: bool | None = None,
        pos: str | None = None,
    ) -> Dict:
        """
        Update a checkitem in a checklist.
    
        Args:
            checklist_id (str): The ID of the checklist containing the item
            checkitem_id (str): The ID of the checkitem to update
            name (Optional[str]): New name for the checkitem
            checked (Optional[bool]): New checked state
            pos (Optional[str]): New position for the item
    
        Returns:
            Dict: The updated checkitem data
        """
        return await service.update_checkitem(
            checklist_id, checkitem_id, name, checked, pos
        )
  • Registration of the 'update_checkitem' tool with the MCP server.
    mcp.add_tool(checklist.update_checkitem)
  • Core helper method in ChecklistService that constructs the request data and calls the Trello API to update the checkitem.
    async def update_checkitem(
        self,
        checklist_id: str,
        checkitem_id: str,
        name: str | None = None,
        checked: bool | None = None,
        pos: str | None = None,
    ) -> Dict:
        """
        Update a checkitem in a checklist.
    
        Args:
            checklist_id (str): The ID of the checklist containing the item
            checkitem_id (str): The ID of the checkitem to update
            name (Optional[str]): New name for the checkitem
            checked (Optional[bool]): New checked state
            pos (Optional[str]): New position for the item
    
        Returns:
            Dict: The updated checkitem data
        """
        data = {}
        if name:
            data["name"] = name
        if checked is not None:
            data["checked"] = checked
        if pos:
            data["pos"] = pos
        return await self.client.PUT(
            f"/checklists/{checklist_id}/checkItems/{checkitem_id}", 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