Skip to main content
Glama

create_cart

Creates a new shopping cart for a restaurant order by adding a menu item, supporting delivery or pickup with special instructions and add-ons.

Instructions

create a new cart with the first item.

Args: restaurant_id: The restaurant ID to order from menu_item_id: The menu item ID to add quantity: Number of this item (default 1) special_instructions: Special preparation instructions options: List of selected options/add-ons, each with {id, quantity} latitude: Delivery latitude longitude: Delivery longitude is_delivery: True for delivery, False for pickup

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
restaurant_idYes
menu_item_idYes
quantityNo
special_instructionsNo
optionsNo
latitudeNo
longitudeNo
is_deliveryNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

No annotations are provided, so the description carries full burden. It only states 'create a new cart' without describing side effects (e.g., does it overwrite an existing cart?), auth requirements, or return behavior. The parameter list does not reveal behavioral traits.

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

Conciseness4/5

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

The description is front-loaded with the purpose, followed by a structured Args list. It is efficient given 8 parameters, though some explanations could be more concise. No wasted sentences.

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

Completeness3/5

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

Given the complexity (8 params, no annotations) and presence of output schema, the description covers parameter semantics but lacks context about prerequisites (e.g., login required), behavior on duplicate cart, and error scenarios. Basic but with clear gaps.

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

Parameters4/5

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

Schema description coverage is 0%, but the description adds meaningful explanations for each parameter (e.g., 'options' format, 'restaurant_id' as 'the restaurant ID to order from'), going beyond the schema's titles and types. Missing constraints like value ranges or formats for some parameters.

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 'create a new cart with the first item', using a specific verb and resource, and the parameter list reinforces the purpose. It distinguishes the tool from sibling 'add_to_cart' implicitly by focusing on creation.

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

Usage Guidelines2/5

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

No guidance on when to use this tool versus alternatives like 'add_to_cart' or 'update_cart_item'. Missing context about whether a new cart should be created only when no cart exists, or if it overwrites existing ones.

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/sawyershoemaker/grubhub-mcp'

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