get_card_checklists
Retrieve all checklists for a specific Trello card to manage tasks and track progress. Provide the card ID to access checklist details.
Instructions
Get all checklists for a specific card.
Args:
card_id (str): The ID of the card to get checklists for
Returns:
List[Dict]: List of checklists on the card
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| card_id | Yes |
Implementation Reference
- server/tools/checklist.py:28-38 (handler)The handler function for the MCP tool 'get_card_checklists', which calls the ChecklistService to retrieve checklists for a given card.async def get_card_checklists(card_id: str) -> List[Dict]: """ Get all checklists for a specific card. Args: card_id (str): The ID of the card to get checklists for Returns: List[Dict]: List of checklists on the card """ return await service.get_card_checklists(card_id)
- server/tools/tools.py:32-32 (registration)Registration of the 'get_card_checklists' tool in the MCP server.mcp.add_tool(checklist.get_card_checklists)
- server/services/checklist.py:29-39 (helper)The ChecklistService method that performs the actual API call to Trello to fetch checklists for the specified card.async def get_card_checklists(self, card_id: str) -> List[Dict]: """ Get all checklists for a specific card. Args: card_id (str): The ID of the card to get checklists for Returns: List[Dict]: List of checklists on the card """ return await self.client.GET(f"/cards/{card_id}/checklists")