Skip to main content
Glama

cozi_remove_item

Delete items from Cozi shopping and todo lists using list and item IDs. This action permanently removes selected items from your family organizer lists.

Instructions

Remove/delete an item from a Cozi list. This permanently deletes the item.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemIdYesThe ID of the item to remove
listIdYesThe ID of the list containing the item

Implementation Reference

  • The handler for the 'cozi_remove_item' tool inside the executeTool function. It calls CoziClient.removeItem with list_id and item_id, then returns a success message.
    case 'cozi_remove_item': {
      await client.removeItem(args.list_id, args.item_id);
      return {
        success: true,
        message: 'Item removed from list',
      };
    }
  • Input schema definition for the cozi_remove_item tool, specifying list_id and item_id as required string parameters.
    inputSchema: {
      type: 'object',
      properties: {
        list_id: {
          type: 'string',
          description: 'The ID of the list containing the item',
        },
        item_id: {
          type: 'string',
          description: 'The ID of the item to remove',
        },
      },
      required: ['list_id', 'item_id'],
    },
  • src/tools.ts:59-76 (registration)
    Registration of the cozi_remove_item tool in the COZI_TOOLS array, including name, description, and input schema.
    {
      name: 'cozi_remove_item',
      description: 'Remove an item from a Cozi list',
      inputSchema: {
        type: 'object',
        properties: {
          list_id: {
            type: 'string',
            description: 'The ID of the list containing the item',
          },
          item_id: {
            type: 'string',
            description: 'The ID of the item to remove',
          },
        },
        required: ['list_id', 'item_id'],
      },
    },
  • The CoziClient.removeItem method, which performs the actual API DELETE request to remove the specified item from the list.
    async removeItem(listId: string, itemId: string): Promise<void> {
      await this.request(`/${this.accountId}/list/${listId}/item/${itemId}`, {
        method: 'DELETE',
      });
    }

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/BrandCast-Signage/cozi-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server