Skip to main content
Glama

U.S. Tariff Calculation Agent

tariff_calc

Calculates U.S. customs duties by combining HTS base rates with applicable Chapter 99 measures, providing transparent, rule-based tariff outcomes.

Pricing: {"unit": "credits", "per_run": 10}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
country_or_regionYesCountry or region of origin for the imported product, e.g. China, Mexico, European Union.
product_descriptionYesDescription of the product to import into the United States, e.g. HS code, product name, material, or specifications.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

TDQS

A3.6/5.0
Behavior3/5

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

The description adds the core calculation logic (HTS base rate + Chapter 99) and per-run credit cost, which goes beyond the openWorldHint annotation. However, it omits limitations, assumptions, data freshness, or whether the result should be treated as authoritative vs. indicative.

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?

One compact sentence plus a pricing line; no filler, no restating the title, and key information is front-loaded with the verb 'Calculates'.

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 2-param tool with a full output schema, the description is appropriately complete: scope, method, and pricing are all included. It only lacks a brief statement about when tariff_classification would be a better alternative, which is a modest gap.

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 parameters are already well documented. The description implies that country_or_region matters for Chapter 99 applicability, but it does not add meaningful parameter-level guidance beyond what the schema already provides.

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?

Using 'Calculates U.S. customs duties' plus the explicit method ('combining HTS base rates with applicable Chapter 99 measures') gives a clear action and resource. It also distinguishes itself from tariff classification, although it does not explicitly name sibling alternatives.

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 context clearly implies the tool is for calculating U.S. duties on imported products, but it does not state when not to use it or point to a sibling tool like tariff_classification for classification-related needs. The usage guidance is present but largely implicit.

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.

TDQS

B3.1/5.0
Disambiguation3/5

Most tools are clearly distinct (e.g., tariff_calc vs. tariff_classification, search_* vs. sg_*). However, corporate_exception_report and due_diligence_report both produce company reports with overlapping chapter lists and vague descriptions, creating potential confusion for an agent selecting the appropriate report.

Naming Consistency2/5

Naming conventions are mixed: search_company_candidates and search_region_candidates follow verb_noun, but others use noun phrases (tariff_calc, due_diligence_report) and some use an 'sg_' prefix (sg_chokepoint, sg_visualization). This lack of a consistent pattern reduces predictability.

Tool Count5/5

With 9 tools, the count is well within the ideal 3-15 range and matches the platform's scope—company search, due diligence, supply chain analysis, and tariff handling. Each tool serves a clear purpose without unnecessary bloat.

Completeness4/5

The surface covers core workflows: company identification (search), deep reporting (due diligence, exception report), supply chain analysis (chokepoint, visualization, risk prediction), and tariff handling (classification, calculation). Minor gaps exist, such as a dedicated tool for fetching a specific company profile, but due_diligence_report largely fills that need.

Resources