Skip to main content
Glama

Othermile border costs

What a parcel may cost at the door

door_cost_estimate
Read-onlyIdempotent

Estimate what a shopper may pay at the door for one parcel shipped between Canada and the United States: duty, tariffs and surtaxes, sales tax and carrier or postal fees, with the official rules in force today. Describe the product in plain words; a tariff code is suggested from it. Use for questions like "what will I pay on a hoodie from a US store shipped to Ontario?"

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": {
      "from": "<from>",
      "to": "<to>",
      "product": "<product>",
      "madeIn": "<madeIn>",
      "value": "<value>",
      "currency": "<currency>"
    },
    "name": "door_cost_estimate"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesCountry the parcel goes to
fromYesCountry the parcel ships from
modeNoPostal mail (USPS, Canada Post) or a courier (UPS, FedEx, Purolator, DHL); courier if unknowncourier
valueYesWhat the goods in the parcel cost
madeInYesCountry where the product was made, for example CN; ask if unknown
productYesWhat the product is, in a few words, for example cotton hoodie
currencyYesCurrency of the amounts: CAD for Canadian dollars, USD for US dollars
provinceNoProvince or territory when it goes to Canada, for example ON; leave out if unknown
cusmaClaimNoTrue only if the seller says the goods qualify for CUSMA and claims it
tariffCodeNoThe product's tariff code, only if known

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / currency / description
      Added value: +"Currency of the amounts: CAD for Canadian dollars, USD for US dollars"
  2. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  3. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so safety is covered and the bar is lower. The description does add real context beyond them: results reflect "the official rules in force today" (time-sensitive, not cached history), the output is a "may pay" estimate rather than a guarantee, and a tariff code is inferred from the plain-word product description. It says nothing about rate limits beyond the schema's value cap, how indeterminate cases are handled, or what the response shape looks like.

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 earning their place: the first front-loads the scope and the itemized cost components, the second covers input style and a concrete example question. No filler, no restatement of the title or the parameter list.

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?

For a 10-parameter, no-output-schema tool, the description covers what the estimate contains, the geographic/parcel scope, the currency-amount framing implied by 'value', and how product text feeds tariff classification. With annotations carrying the safety profile and a fully described schema, an agent has enough to invoke it correctly.

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 description coverage is 100%, so a 3 is the baseline. The description earns an extra point by clarifying the non-obvious interaction between two parameters: 'product' is meant to be free text in plain words, and 'tariffCode' is an optional hint because a code is suggested from that text. That nuance is not evident from the schema alone.

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?

The description names a specific verb (estimate) and a precisely scoped resource: the door cost of one parcel between Canada and the US, itemizing duty, tariffs/surtaxes, sales tax and carrier/postal fees. An agent immediately knows what comes out. It does not, however, distinguish itself from the sibling border_quote, which on name alone could be read as covering similar ground, so it stops short of a 5.

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?

"Use for questions like 'what will I pay on a hoodie from a US store shipped to Ontario?'" gives a concrete triggering context, and the CA/US parcel framing bounds the applicable cases. There is no statement of when not to use it or which sibling to pick for adjacent needs (e.g., lane questions or rule lookups), so the routing guidance is clear but incomplete.

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