Skip to main content
Glama

get_checkout_estimates

Compute pre-checkout cost estimates for a merchant, destination ZIP, and item list, returning subtotal, shipping, tax, total, and shippingKnown/taxKnown flags before ordering.

Instructions

Computes a pre-checkout cost estimate for a given merchant, destination ZIP, and list of items. Returns subtotal, shipping, tax, and total (with shippingKnown / taxKnown flags) before placing an order. unitPrice can be taken from get_product_details or search_products.

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": {
      "merchant": "<merchant>",
      "destination": "<destination>",
      "items": "<items>"
    },
    "name": "get_checkout_estimates"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYesList of items to estimate costs for
merchantYesName of the merchant to estimate costs for (e.g. 'Alo Yoga')
destinationYesDelivery destination for shipping and tax calculation

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.6

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the returned components (subtotal, shipping, tax, total) and the shippingKnown / taxKnown uncertainty flags, which is real behavioral detail. It stops short of stating that nothing is reserved or persisted, or any side effects, but the 'estimate before ordering' framing implies a non-mutating read.

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 sentences, both load-bearing: the first states what is computed and from what, the second states what comes back and how to source a required field. No filler or restated title.

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?

For a three-parameter, nested-schema, no-output-schema tool, the description covers purpose, inputs, and return shape including the known-flags that an agent must interpret. What is missing is failure behavior (e.g., when shipping or tax cannot be determined) and whether estimates expire.

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 coverage is 100%, so baseline is 3, but the description adds genuine meaning by telling the agent where to obtain unitPrice (from get_product_details or search_products). The merchant example and nested item shape are already fully documented in the schema, so this is slightly above baseline rather than a large lift.

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 opens with a specific verb and resource ('Computes a pre-checkout cost estimate') and names the three inputs (merchant, destination ZIP, items). The pre-checkout framing also distinguishes it from the checkout-placing siblings in the catalog.

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 clearly places the tool in the flow ('before placing an order') and points to get_product_details / search_products as the source of unitPrice. It does not explicitly contrast with create_checkout or create_search_checkout, so there is no stated when-not guidance.

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