Skip to main content
Glama

CULT+MATH Decision Briefs

What duty did importers actually pay on this product?

run_effective_duty
Read-onlyIdempotent

Use when the user is pricing, sourcing or sizing a refund claim and needs the tariff actually paid on a product, not the headline rate: "what duty are we really paying on chips from Malaysia?", "how much did the tariff on this product rise this year?". Returns duty as a share of value for all countries, the five largest sources and any countries you name, in two months, with the highest-paying source over $1M, with the change in points, from US Census Bureau calculated duty. An estimate at entry: it ran about 10% below Treasury collections. Months from January 2025 to July 2026. Refuses before you are charged if the months have under $1 million of imports or the partner rows do not add up. Every result carries a run id, a date and a citation line. Calling this tool returns a quote, not the result: what the run measures, its price and a payment_url. The run happens only when you POST to payment_url, and a run that fails its controls refuses there with nothing charged. Dimensions (vary these inputs to cut the answer; each call is its own run): over time: built in: two months (from, to); compare: countries; place: countries. Price: $0.05 per run over x402 (USDC on Base, no account needed), or $0.50 over MPP (a Stripe shared payment token); charged only when the run comes back sound. For where US imports of the product come from, and who gained share, use run_trade_concentration. For the tariff actions behind a rate, use run_tariff_clock.

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": {
      "hs": "<hs>",
      "from": "<from>",
      "to": "<to>"
    },
    "name": "run_effective_duty"
  }
}

Input Schema

NameRequiredDescriptionDefault
hsYesA 4-, 6- or 10-digit HS code, e.g. "8542" for integrated circuits.
toYesThe later month, YYYY-MM, after from, up to July 2026.
fromYesThe earlier month, YYYY-MM, January 2025 to July 2026.
countriesNoOptional: up to 5 source countries to show by name, comma-separated, e.g. "China, Malaysia". The five largest sources are always shown.

Output Schema

NameRequiredDescriptionDefault
noteNoWhy the run is unavailable, when it is.
errorNoWhy the inputs were refused, with the expected usage. Nothing is charged.
limitsNoWhat the run cannot tell you, stated before you pay.
recipeNoThe run, e.g. "filing-trend".
availableNofalse when the run is switched off; then nothing can be charged.
next_stepNoWhat to tell the user before paying.
price_usdNoPrice over MPP (Stripe shared payment token).
payment_urlNoPOST here to run and pay. Not a checkout page.
instructionsNoHow to pay over MPP and x402, and how to ask for publication.
what_you_getNoWhat the paid result will contain for these inputs.
x402_price_usdNoPrice over x402 (USDC on Base), when offered.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Far exceeds the annotations: it discloses the quote-then-POST-to-payment_url flow, that calling returns a quote rather than data, pricing ($0.05 x402 / $0.50 MPP), refusal gates (under $1M of imports, partner rows not adding up) with nothing charged, the January 2025–July 2026 window, Census calculated-duty basis, and the ~10% under-collection accuracy caveat. Every result carrying a run id, date and citation line is also stated.

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?

Front-loaded with the trigger and two illustrative questions, then outputs, caveats, payment model and siblings in a logical order; almost every clause carries distinct information. It loses a point for a single long chained sentence listing the returned measures ('all countries, the five largest sources... with the change in points') that is dense to parse in one pass.

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?

With an output schema present, the description still covers the things the schema cannot: cost, the two-step payment requirement, refund/refusal behavior, data vintage and accuracy. An agent knows what it will be charged, what it gets back and when the tool will decline before making the call.

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 coverage is 100%, so hs, from, to and countries are already fully documented in the schema; the description only restates them as dimensions ('two months (from, to)', 'compare: countries'). The one genuine addition is that varying these inputs produces a different, separately priced run, which the schema cannot express — but that is closer to run mechanics than parameter meaning.

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 and resource (duty actually paid on a product), reinforced by two user-voice examples and an explicit contrast with 'the headline rate.' It also names the sibling tools run_trade_concentration and run_tariff_clock and the different questions they answer, so the agent can route without opening any schema.

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?

"Use when the user is pricing, sourcing or sizing a refund claim" gives concrete triggers, and the closing sentences give explicit when-not/use-instead routing to run_trade_concentration (origin mix, share gains) and run_tariff_clock (tariff actions behind a rate). Coverage of alternatives is complete for the question space described.

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