cozi_get_lists
Retrieve all shopping and todo lists from Cozi Family Organizer, including item counts and contents for family task management.
Instructions
Get all Cozi lists (shopping and todo lists) with their items. Returns complete list of all lists including item counts and contents.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools.ts:138-147 (handler)The handler function for the 'cozi_get_lists' tool within the executeTool switch statement. It calls client.getLists() and maps the results to include id, title, and item_count for each list.case 'cozi_get_lists': { const lists = await client.getLists(); return { lists: lists.map(list => ({ id: list.listId, title: list.title, item_count: list.items.length, })), }; }
- src/tools.ts:19-26 (schema)Input schema definition for the 'cozi_get_lists' tool, specifying no required input parameters as an empty object.{ name: 'cozi_get_lists', description: 'Get all Cozi lists (shopping, to-do, etc.)', inputSchema: { type: 'object', properties: {}, }, },
- src/index.ts:159-168 (registration)MCP 'tools/list' handler that registers and exposes the COZI_TOOLS array, including the 'cozi_get_lists' tool schema to the MCP client.case 'tools/list': { response = { jsonrpc: '2.0', id: mcpRequest.id, result: { tools: COZI_TOOLS, }, }; break; }