Skip to main content
Glama

Get shipping options

get_shipping_options
Read-onlyIdempotent

Retrieve available shipping levels with prices and delivery estimates for print books sent to a destination. Provide line items and an address; country alone suffices for a quick quote.

Instructions

List the shipping levels available for some books to a destination, with price and delivery estimates. Only the country is required; a fuller address gives more accurate results.

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": {
      "line_items": "<line_items>",
      "shipping_address": "<shipping_address>"
    },
    "name": "get_shipping_options"
  }
}

Input Schema

NameRequiredDescriptionDefault
currencyNoCurrency for prices, e.g. 'USD'.
line_itemsYes
shipping_addressYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and openWorldHint=true, so the safety profile is covered. The description adds real value by flagging that returned prices are estimates and that accuracy scales with address completeness. It says nothing about how live/volatile the pricing is, whether results can vary between identical calls, or failure behavior for an invalid pod_package_id.

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, front-loaded with the purpose and followed by the most decision-relevant input constraint. No filler, no restatement of the title, and nothing an agent must skip past to find the useful part.

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

Completeness3/5

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

With no output schema, the description does carry the return-value burden and handles it reasonably (price and delivery estimates). But for a nested, 3-parameter tool with only 33% schema coverage, the unaddressed currency parameter and unelaborated per-book item structure leave gaps an agent would hit in practice.

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?

With 33% schema coverage the description must compensate, and it partially does: "some books" maps to line_items, "destination" maps to shipping_address, and the note that only country is required clarifies the nested required field. But the currency parameter is never mentioned, and the required per-book fields (pod_package_id, page_count, quantity) are not explained beyond the schema's own text.

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?

"List the shipping levels available for some books to a destination, with price and delivery estimates" gives a concrete verb (list) and resource (shipping levels) plus the two things returned. It is clear on its own, but it never distinguishes itself from the nearest sibling (calculate_print_job_cost), leaving the agent to infer which one to call for a cost estimate.

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

Usage Guidelines3/5

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

The second sentence gives genuinely useful input guidance ("Only the country is required; a fuller address gives more accurate results"), which is a precision/cost tradeoff the agent can act on. However, there is no statement of when this tool applies versus calculate_print_job_cost or get_print_job_costs, so usage context is only implied.

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