Skip to main content
Glama

set_shipping_address

Set the cart shipping destination (collected from the buyer) and return available shipping options with costs. Call after items are in the cart and before select_shipping_option. country_code is required; include postal_code/state for accurate rates.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cityNoCity
stateNoState/province/region code where carriers need it
cart_idYesCart ID
site_idYesRegistered site ID
postal_codeNoPostal/ZIP code for accurate rates
country_codeYesISO-3166 alpha-2 country code (e.g. US)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindYes
itemsYes
totalYes
cartIdYes
siteIdYes
shippingNo
subtotalYes
shippingOptionsNo
selectedShippingIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Annotations indicate readOnlyHint=false and destructiveHint=false, consistent with the description. Description adds that the tool collects buyer input and returns shipping options, but doesn't specify side effects like overwriting previous address. Good but not exhaustive.

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?

Three short sentences, front-loaded with purpose and return value, then usage order, then parameter guidance. No unnecessary words.

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

Completeness5/5

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

Given the output schema exists and annotations cover safety, description is complete: it explains purpose, return value, prerequisites, and parameter hints.

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 has 100% coverage with descriptions, so baseline is 3. Description adds value by emphasizing required country_code and suggesting postal_code/state for accuracy, aiding interpretation.

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 the tool sets the cart shipping destination and returns available shipping options with costs. It distinguishes from the sibling tool select_shipping_option by specifying the order of calls.

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

Usage Guidelines5/5

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

Explicitly says to call after items are in the cart and before select_shipping_option, and advises to include postal_code/state for accurate rates. Provides clear usage context.

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.