Get CookUnity Price Breakdown
cookunity_get_price_breakdownCalculate delivery costs including subtotal, taxes, fees, discounts, and total for CookUnity orders. Provides detailed price breakdown for specific meals or current cart contents.
Instructions
Get a full price breakdown for a delivery including subtotal, taxes, delivery fee, discounts, and total.
Args:
date (string, optional): YYYY-MM-DD delivery date. Defaults to next Monday.
meals (array, optional): Meals to price, each with entityId, quantity, inventoryId. If omitted, prices the current cart contents.
response_format ('markdown'|'json'): Output format
Returns (JSON): { date, subtotal, taxes, delivery_fee, express_fee, promo_discount, total, total_after_credits, available_credits, qty_plan_meals, qty_items, total_extra_meals }
Returns (Markdown): Formatted order summary with line items and total.
Examples:
Current cart: { date: "2026-02-23" }
Specific meals: { date: "2026-02-23", meals: [{ entityId: 12272, quantity: 1, inventoryId: "ii-135055242" }] }
Error Handling:
If no meals provided and cart is empty, returns error suggesting to add meals first
Invalid meal IDs return API error
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "cookunity_get_price_breakdown"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Delivery date in YYYY-MM-DD format (must be a Monday). Defaults to next Monday if omitted. | |
| meals | No | Meals to price. If omitted, uses current cart contents for the date. | |
| response_format | No | Output format: 'markdown' for human-readable or 'json' for structured data | markdown |