Skip to main content
Glama

Compare shipping rates

compare_shipping_rates
Read-onlyIdempotent

Compare live shipping rates for one parcel across every carrier available on the SIGNED-IN account (Canada Post, Purolator, UPS, FedEx and others), at the prices of that account. Returns each carrier and service with its total price, currency and estimated transit days. Requires the user to connect their account; for someone without an account use get_shipping_quote, which needs no sign-in. Prices are live and account-specific; do not cache them.

Input Schema

NameRequiredDescriptionDefault
width_cmYesParcel width in centimetres.
height_cmYesParcel height in centimetres.
length_cmYesParcel length in centimetres.
to_postalYesDestination postal or ZIP code, e.g. "M5V 2T6".
weight_kgYesParcel weight in kilograms. Must be greater than 0.
to_countryNoDestination country, ISO alpha-2. Defaults to "CA".
from_postalYesOrigin postal or ZIP code, e.g. "H2X 1Y1".
residentialNoTrue if delivering to a home address. Affects price on some carriers.
from_countryNoOrigin country, ISO alpha-2. Defaults to "CA".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnly, openWorld, idempotent, and non-destructive behavior. The description adds critical context beyond annotations: it requires the user to connect their account, returns each carrier/service with price, currency, and transit days, and warns that prices are live and account-specific (do not cache). This covers auth needs, output shape, and a key operational constraint.

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?

Four sentences with zero waste: purpose and scope front-loaded, followed by return fields, auth/alternative routing, and caching caution. Every sentence contributes necessary information without redundancy.

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 9 parameters (6 required), no output schema, and rich annotations, the description is complete: it explains purpose, return values, auth requirements, caching behavior, and the alternative for unsigned users. The schema fully covers parameter semantics, so nothing critical is missing for correct invocation.

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 the schema already documents all 9 parameters with units and examples. The description adds only the phrase 'one parcel' and does not provide any parameter-level guidance beyond what the schema provides; baseline 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?

States a specific verb (Compare) and resource (live shipping rates) for one parcel across every carrier on the signed-in account, and explicitly distinguishes it from get_shipping_quote for users without an account. The agent can tell exactly what the tool does and how it differs from the sibling.

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 when to use (signed-in account, live account-specific prices) and when not to use (for someone without an account use get_shipping_quote, which needs no sign-in). It also adds a caching caution, leaving no ambiguity about context or alternatives.

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