Skip to main content
Glama

Prepare ingredient cart handoff

prepare_create_ingredient_cart

Resolve ingredient requests into a retailer cart URL and save the commerce session, leaving checkout to the user.

Instructions

Stage resolving ingredient requests to a retailer cart URL and saving the commerce session. Checkout remains with the user.

Input Schema

NameRequiredDescriptionDefault
itemsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=false and destructiveHint=false, so the write/not-destructive profile is covered. The description adds useful context beyond that — it is a staging handoff that persists a commerce session and leaves checkout to the user — but says nothing about auth requirements, rate limits, or what happens to prior session state.

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?

Two tight sentences, front-loaded with the core action and followed by the scope boundary. No filler, though it is perhaps too terse given the complexity of the items array it accepts.

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 mutation tool with no output schema and a nested parameter array at 0% schema coverage, the description omits return format (it only alludes to a 'cart URL'), what the saved commerce session means, and how the item objects should be shaped. Significant gaps remain for correct invocation.

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% and the single 'items' parameter is a nested array with four sub-fields (ingredient, organic_only, quantity_hint, brand_preference) plus min/max item limits. The description never mentions any of this structure, so it fails to compensate for the coverage gap.

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?

The description states a specific verb and resource: staging ingredient requests into a retailer cart URL and saving the commerce session. The word 'ingredient' implicitly distinguishes it from the sibling prepare_create_recipe_cart, but it never names or contrasts that sibling explicitly.

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, and no routing to alternatives such as create_cart_url or prepare_create_recipe_cart. The only boundary offered is 'Checkout remains with the user,' which clarifies responsibility but not invocation conditions.

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

Deploy Server

Other Tools