Skip to main content
Glama

Calculate landed duty

calculate_duty

Access: API key, OAuth, or x402 payment when offered. Calculate supported US duty layers and fees for one import line. The response separates total import charges (duty + fees) from total landed cost (entered value + duty + fees) without estimating fact-dependent treatment.

Input Schema

NameRequiredDescriptionDefault
htsYesUS HTS code, dotted or undotted
modeNoocean
as_ofNoISO date in YYYY-MM-DD form
factsNoFacts the entry declares (for example usmca_qualifying, manufacture_year, us_content_share). Structured chapter98 declarations carry valuation, facts, components and evidence. Structured chapter99.exclusion declarations carry a source clause, individual product facts and reference-only documents for the governing 9903.88.69 (note 20(vvv)) or 9903.88.70 (note 20(www)) claim. The section_338_canada declaration carries importation_time and direct_to_consumption_container for the Proclamations 11061–11063 import exclusion (a listed Canadian line imported on or after 12:01 a.m. Eastern time on September 29, 2026 returns error import_prohibited with the determination and no duty total), and the U.S. note 51 facts personal_use_accompanied_baggage, us_content_approved and import_adjustment_offset. general_note_6_eligible decides the note 51(d) civil aircraft exemption from the Section 338 duty. A USMCA claim does not remove the Section 338 duty. The preference declaration (claimed, program, origin_qualified, evidence_on_file, quota_available) claims special tariff treatment on calculate_duty: the preferential rate applies only when all are declared, and the answer is marked as based on the importer's declaration. Unknown keys are rejected by the API. Documentary references are not verified approval.
valueYes
claimsNoChapter 98/99 headings the entry claims. Listed but unimplemented treatments return an explicit entry-claim review response, not a duty exemption or total.
countryYesISO-2 country code of origin
chapter99No
quantitiesNo
quota_stateNo
product_contentNo
component_values_usdNo
alcohol_by_volume_percentNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/5.0
Behavior3/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 add real value: it discloses the authentication modes (API key, OAuth, x402 payment) and the return structure (import charges vs. landed cost). However, it omits error behavior, what a 'supported' layer means, and the fact (buried in the schema) that unrecognized fact keys are rejected and that unimplemented claims return a review response rather than a total.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, no filler, and the output-shape sentence earns its place. Minor flaw: the definition leads with the access/payment sentence rather than the purpose, so the most decision-relevant content is not front-loaded.

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

Completeness2/5

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

For a 13-parameter tool with deep nested objects, one enum, no output schema, and no annotations, the description is far too thin. It explains the result shape but leaves the agent guessing about the two distinct ways to declare special treatment (facts vs. claims vs. chapter99), quota handling, and the many undocumented scalar parameters.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 38% – well below the 50% threshold – so the description must compensate, and it does not: hts, country, value, mode, as_of, quota_state, product_content, component_values_usd, alcohol_by_volume_percent, and quantities receive zero mention. The one arguably central argument, facts, is documented only inside the schema, not the description.

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?

States a specific verb+resource+scope: 'Calculate supported US duty layers and fees for one import line'. An agent can tell this is a duty computation, not a lookup (lookup_tariff) or a comparison (compare_tariff_codes). It stops short of naming siblings or distinguishing itself from assess_import_entry, and 'supported' is left unqualified.

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

Usage Guidelines2/5

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

No when-to-use / when-not-to-use guidance and no named alternative. The clause 'without estimating fact-dependent treatment' hints at a boundary but does not tell the agent which tool to reach for when facts are unknown, or how this differs from assess_import_entry or replay_tariff.

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