Skip to main content
Glama
m0xai

Trello MCP Server with Python

by m0xai

update_checklist

Modify Trello checklist details like name or position to keep task tracking current and organized.

Instructions

Update an existing checklist.

Args:
    checklist_id (str): The ID of the checklist to update
    name (Optional[str]): New name for the checklist
    pos (Optional[str]): New position for the checklist

Returns:
    Dict: The updated checklist data

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
checklist_idYes
nameNo
posNo

Implementation Reference

  • MCP tool handler function for 'update_checklist'. Delegates to ChecklistService.update_checklist.
    async def update_checklist(
        checklist_id: str, name: str | None = None, pos: str | None = None
    ) -> Dict:
        """
        Update an existing checklist.
    
        Args:
            checklist_id (str): The ID of the checklist to update
            name (Optional[str]): New name for the checklist
            pos (Optional[str]): New position for the checklist
    
        Returns:
            Dict: The updated checklist data
        """
        return await service.update_checklist(checklist_id, name, pos)
  • Registration of the 'update_checklist' tool in the MCP server.
    mcp.add_tool(checklist.update_checklist)
  • ChecklistService method implementing the update_checklist logic by calling Trello API.
    async def update_checklist(
        self, checklist_id: str, name: str | None = None, pos: str | None = None
    ) -> Dict:
        """
        Update an existing checklist.
    
        Args:
            checklist_id (str): The ID of the checklist to update
            name (Optional[str]): New name for the checklist
            pos (Optional[str]): New position for the checklist
    
        Returns:
            Dict: The updated checklist data
        """
        data = {}
        if name:
            data["name"] = name
        if pos:
            data["pos"] = pos
        return await self.client.PUT(f"/checklists/{checklist_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