Skip to main content
Glama
aserper

grubhub-mcp

by aserper

create_cart

Start a new Grubhub food order by adding a restaurant's first menu item to a cart, then set quantity, options, instructions, and delivery or pickup details.

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

NameRequiredDescriptionDefault
optionsNo
latitudeNo
quantityNo
longitudeNo
is_deliveryNo
menu_item_idYes
restaurant_idYes
special_instructionsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.7

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden, and it does not state whether calling this discards or replaces an existing cart, whether authentication is required, or that changes are persistent. For a state-mutating creation tool sitting next to get_cart and add_to_cart, that missing lifecycle context is a meaningful gap.

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 purpose sentence is front-loaded and the Args list is justified by the 0% schema coverage rather than redundant. Some entries (latitude/longitude) add little, but overall the size is proportionate to an 8-parameter tool.

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?

An output schema exists, so return values need no explanation, and all parameters are documented. What is missing is the behavioral wrapper an agent needs before calling a cart-creating mutation with no annotations: required auth/session state and what happens to any pre-existing cart.

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%, so the Args block is the only documentation of the 8 parameters, and it usefully explains quantity's default, is_delivery's true/false meaning, that latitude/longitude are for delivery, and the shape of options entries ({id, quantity}) beyond the schema's untyped object. It stops short of ID formats or option validity rules, but it compensates well for the empty schema.

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

Purpose4/5

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

States a specific verb+resource: 'Create a new cart with the first item.' The phrase 'new cart' hints at the distinction from add_to_cart (which presumably targets an existing cart), but the description never names or contrasts that sibling, so the differentiation is left to inference.

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

Usage Guidelines3/5

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

Usage is only implied: the reader infers this is the entry point when no cart exists yet and add_to_cart / update_cart_item handle subsequent items. No explicit when-to-use or when-not-to-use statement, and no mention of prerequisites (login/session) despite a cluster of auth siblings.

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