Skip to main content
Glama

select_shipping_option

Select one of the shipping options returned by set_shipping_address. Binds the rate to the cart so the total includes shipping; call before execute_checkout so the hosted checkout opens pre-filled.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cart_idYesCart ID
site_idYesRegistered site ID
option_idYesoption_id from cart.shipping_options

Output Schema

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

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already indicate non-read-only (readOnlyHint false) and non-destructive (destructiveHint false). The description adds meaningful behavioral context: it 'binds the rate to the cart so the total includes shipping', explaining the side effect beyond just selecting. This clarifies the impact on cart state and the necessity of ordering with execute_checkout.

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?

The description is two sentences: the first states the core purpose, the second adds behavioral and timing details. It is front-loaded with the action and entirely free of fluff. Every sentence adds value and is necessary for correct invocation.

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?

The description covers prerequisites (set_shipping_address called), the effect (rate binding, total update), and the appropriate time to call (before execute_checkout). Given the presence of an output schema and the tool's simplicity, this is nearly complete. One minor gap: it does not explain what happens if the option_id is invalid, but the error handling can be inferred from typical API behavior.

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 coverage is 100% with basic descriptions for each parameter. The description adds specific context for option_id by noting it comes from 'cart.shipping_options', which is a helpful cross-reference. However, cart_id and site_id receive no additional explanation beyond the schema. Since schema carries most of the burden, a score of 3 is appropriate.

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 specifies the action: selecting one of the shipping options returned by set_shipping_address. It explicitly ties the tool to a specific context (shipping selection within checkout flow) and distinguishes it from siblings by referencing the sequential dependency on set_shipping_address and the precondition for execute_checkout.

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?

The description gives explicit usage context: call after set_shipping_address and before execute_checkout. It states the effect (binds rate, updates total). It does not explicitly list alternatives, but the sequential instruction is clear and helpful for an agent navigating the checkout flow.

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.

TDQS

A4.2/5.0
Disambiguation5/5

Each tool targets a distinct action or resource, with detailed descriptions that clearly differentiate cart management, checkout flow, payment steps, delegation, orders, and product operations. Potential overlaps like get_active_cart vs. get_cart are resolved by their specific use cases.

Naming Consistency5/5

All tools use a consistent verb_noun_snake_case pattern (e.g., add_to_cart, set_shipping_address). There are no mixing of conventions like camelCase or inconsistent verb styles.

Tool Count4/5

26 tools is on the higher side but appropriate for a comprehensive e-commerce server covering product discovery, cart management, checkout, payment, orders, and reviews. Could potentially be streamlined slightly, but still reasonable.

Completeness5/5

The tool set covers the full e-commerce lifecycle: site listing, product search/compare/reviews, cart CRUD, coupon application, shipping, checkout, payment with delegation and OTP, order retrieval, and back-in-stock alerts. No obvious gaps for typical buyer workflows.