Add Meal to CookUnity Cart
cookunity_add_to_cartAdd meals to your CookUnity cart for specific delivery dates by providing inventory IDs and optional quantities.
Instructions
Add a meal to the cart for a specific delivery date.
Args:
date (string, required): YYYY-MM-DD delivery date
inventory_id (string, required): Inventory ID from menu/search results
quantity (number): Portions to add, default 1 (max 10)
batch_id (number, optional): Batch ID from menu results
Returns: Confirmation with updated quantity
Examples:
Add one meal: { date: "2025-02-24", inventory_id: "ABC123" }
Add 2 portions: { date: "2025-02-24", inventory_id: "ABC123", quantity: 2 }
Error Handling:
Invalid inventory_id: API returns error
Past cutoff: API returns error — check cutoff with cookunity_list_deliveries first
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"date": "<date>",
"inventory_id": "<inventory_id>"
},
"name": "cookunity_add_to_cart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | Delivery date in YYYY-MM-DD format (must be a Monday). Defaults to next Monday if omitted. | |
| inventory_id | Yes | Inventory ID of the meal (from menu/search results) | |
| quantity | No | Number of portions to add | |
| batch_id | No | Batch ID of the meal (optional, from menu results) |