update_checklist
Modify checklist name or position in Trello to organize tasks effectively. Use this tool to adjust existing checklists for better project management.
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
| Name | Required | Description | Default |
|---|---|---|---|
| checklist_id | Yes | ||
| name | No | ||
| pos | No |
Implementation Reference
- server/tools/checklist.py:56-70 (handler)MCP tool handler for 'update_checklist'. This is the function executed when the tool is called, delegating to ChecklistService.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)
- server/tools/tools.py:34-34 (registration)Registration of the 'update_checklist' tool using mcp.add_tool in the tools registry.mcp.add_tool(checklist.update_checklist)
- server/services/checklist.py:60-79 (helper)Core helper implementation in ChecklistService that performs the actual Trello API update via PUT request.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)