Skip to main content
Glama
aserper

grubhub-mcp

by aserper

apply_gift_card

Apply a gift card to a Grubhub cart by providing the cart ID, gift card number, and PIN.

Instructions

Apply a gift card to a cart.

Args: cart_id: The cart ID card_number: Gift card number pin: Gift card PIN

Input Schema

NameRequiredDescriptionDefault
pinYes
cart_idYes
card_numberYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.7

TDQS

C2.6/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 burden. It does not state whether the card can be applied more than once, what happens on an invalid PIN, whether funds are held or drawn immediately, or any permission/auth requirement. For a mutation tool with zero annotation coverage this is a substantial gap.

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

Conciseness3/5

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

Front-loaded with a one-line purpose, which is good, but the trailing Args block largely duplicates the schema field names and consumes space without adding value.

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

Completeness2/5

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

For a 3-parameter mutation tool with no annotations, the definition omits failure modes, idempotency, and prerequisites. The output schema exists, so return values needn't be explained, but the behavioral context is far too thin.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must compensate. Its 'Args' block only restates the parameter names tautologically ('cart_id: The cart ID', 'pin: Gift card PIN'), adding no format, length, or validation meaning beyond the 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 ('Apply a gift card to a cart'), which is unambiguous on its own. It does not, however, differentiate from the closely related sibling apply_promo_code or explain how gift-card application differs.

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?

There is no when-to-use guidance, no prerequisites (e.g. cart must exist / not already have a card applied), and no mention of the sibling apply_promo_code or get_gift_card_balance. The agent must infer all context.

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