Skip to main content
Glama

Get CookUnity Price Breakdown

cookunity_get_price_breakdown
Read-onlyIdempotent

Calculate 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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateNoDelivery date in YYYY-MM-DD format (must be a Monday). Defaults to next Monday if omitted.
mealsNoMeals to price. If omitted, uses current cart contents for the date.
response_formatNoOutput format: 'markdown' for human-readable or 'json' for structured datamarkdown
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true, destructiveHint=false, idempotentHint=true, and openWorldHint=true. The description adds valuable context beyond this: it explains error handling (empty cart returns error, invalid IDs cause API errors), describes the two output formats, and provides practical examples. While it doesn't mention rate limits or authentication needs, it adds meaningful behavioral information.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with clear sections (Args, Returns, Examples, Error Handling) and every sentence earns its place. It's front-loaded with the core purpose, then provides necessary details without redundancy. The examples are practical and illustrative without being verbose.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's moderate complexity, rich annotations, and 100% schema coverage, the description provides complete context. It covers purpose, parameters, outputs, examples, and error handling. While there's no output schema, the description thoroughly documents both JSON and Markdown return formats with specific field listings.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already fully documents all three parameters. The description adds minimal additional semantic context beyond what's in the schema descriptions - it mentions the default date behavior and clarifies that omitting meals uses current cart contents, but these details are already covered in the schema. Baseline 3 is appropriate when schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb 'Get' and resource 'full price breakdown for a delivery' with specific components listed (subtotal, taxes, delivery fee, discounts, total). It distinguishes from siblings like cookunity_get_cart (which shows cart contents) and cookunity_confirm_order (which finalizes purchase) by focusing specifically on pricing calculations.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides clear context about when to use it: to price either specific meals or current cart contents. It mentions the default behavior (next Monday) and error conditions. However, it doesn't explicitly state when NOT to use it or name specific alternatives among siblings for different pricing scenarios.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/ggonzalezaleman/cook-unity-mcp'

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