Skip to main content
Glama

Add Meal to CookUnity Cart

cookunity_add_to_cart

Add 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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateYesDelivery date in YYYY-MM-DD format (must be a Monday). Defaults to next Monday if omitted.
inventory_idYesInventory ID of the meal (from menu/search results)
quantityNoNumber of portions to add
batch_idNoBatch ID of the meal (optional, from menu results)
Behavior4/5

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

Annotations cover basic hints (readOnly=false, destructive=false, etc.), but the description adds valuable behavioral context: it specifies error conditions (invalid inventory_id, past cutoff), mentions the API response format ('Confirmation with updated quantity'), and references prerequisites ('check cutoff with cookunity_list_deliveries first'). This goes beyond what annotations provide without contradiction.

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 and front-loaded with the core purpose, followed by organized sections (Args, Returns, Examples, Error Handling). Every sentence adds value, with no wasted words, making it efficient for an agent to parse.

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

Completeness4/5

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

For a mutation tool with no output schema, the description does well by explaining the return value ('Confirmation with updated quantity') and error handling. It references related tools (cookunity_list_deliveries) and data sources. However, it could slightly improve by clarifying idempotency or side-effects more explicitly, given the annotations don't cover everything.

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?

With 100% schema description coverage, the input schema already documents all parameters thoroughly. The description adds minimal extra semantics (e.g., 'default 1 (max 10)' for quantity, which is also in the schema). It provides examples that clarify usage but doesn't significantly enhance parameter understanding beyond the schema.

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 specific action ('Add a meal to the cart') and resource ('for a specific delivery date'), distinguishing it from siblings like cookunity_remove_from_cart (removal) and cookunity_get_cart (viewing). It precisely defines the tool's function without being tautological.

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

Usage Guidelines5/5

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

The description provides explicit guidance on when to use alternatives, stating 'check cutoff with cookunity_list_deliveries first' to avoid errors. It also implies usage context by referencing data sources ('from menu/search results') and error conditions, though it doesn't explicitly name all sibling alternatives.

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