Skip to main content
Glama

Set delivery

cart_set_delivery

Set cart delivery type and delivery details. This must be called before listing product prices or adding products to cart.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "storeId": "<storeId>",
      "deliveryType": "<deliveryType>"
    },
    "name": "cart_set_delivery"
  }
}

Input Schema

NameRequiredDescriptionDefault
cityNoRequired for home delivery.
commentNoOptional order comment.
storeIdYesOkam store id.
zipCodeNoRequired for home delivery.
tableNameNoRequired for table delivery.
tipAmountNoOptional tip amount in ore.
useRewardNoWhether to use available reward balance.
tipPercentNoOptional tip percent, 0-100.
fullAddressNoRequired for home delivery.
deliveryTypeYesSelected delivery type.
deliveryInstructionsNoOptional delivery instructions.

Output Schema

NameRequiredDescriptionDefault
cartNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / cart / properties / items / items / properties / product / properties / allergens / items / properties / code
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  2. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and openWorldHint=false, so safety is covered. The description adds real value with the ordering constraint, but says nothing about what happens to an existing cart when delivery type is changed (reset, preserved, or invalidated), which is the main behavioral unknown for a cart mutation.

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?

Two compact sentences, with the purpose stated first and the sequencing constraint second. Nothing is wasted and no sentence pads the definition.

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?

With 11 parameters fully described in schema and an output schema present, the description needs only purpose, sequencing, and side effects. It covers purpose and sequencing well, but on a cart mutation it leaves unaddressed whether re-calling overwrites prior delivery settings.

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?

Schema description coverage is 100%, so every one of the 11 parameters, including the deliveryType enum and the per-type required fields (city, zipCode, fullAddress, tableName), is documented in the schema. The description adds no additional parameter guidance, so the baseline 3 applies.

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: set the cart's delivery type plus delivery details. It is clearly distinct from siblings like delivery_availability_check or cart_add_item, though it doesn't explicitly name those alternatives.

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

Usage Guidelines4/5

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

It gives a strong precondition — must run before listing product prices or adding products to the cart — which tells the agent exactly where this sits in the call sequence. It stops short of explicit exclusions or of routing the agent to delivery_availability_check or cart_validate first.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources