Spiral gives your agent every tool with one account. Browse the tools →

Codex · Finance

How to Use USITC HTS product search in Codex

Find current tariff entries whose descriptions match a product keyword or phrase. Use it to identify candidate classifications before inspecting a particular tariff line.

Prompts to try with USITC HTS product search in Codex

Copy an example into Codex, or ask in your own words.

Use USITC HTS product search for photovoltaic and write the returned candidate numbers and descriptions to a CSV in this project.

USITC HTS product searchCodex
Try asking
  • Use USITC HTS product search for static converters for telecommunication devices and add the returned descriptions to this project's product terminology reference.

  • Use USITC HTS product search to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from USITC HTS product search and tell me what changed since last week.

  • Check USITC HTS product search and summarize what you find in three bullet points.

How to set up USITC HTS product search in Codex

Pick the way that suits you. Each takes about two minutes.

Use Spiral's MCP server

  1. Add the hosted server
    codex mcp add spiral --url https://api.spiral.ai/mcp
  2. Sign in

    Codex opens the browser: sign in to Spiral and click Authorize. No API key. codex mcp list then shows Spiral.

    codex mcp login spiral

Use the Spiral skill

  1. Send Codex this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use the Spiral CLI

  1. Install and sign in

    Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run USITC HTS product search

    One request; the result comes back by polling or a webhook.

    curl https://api.spiral.ai/v1/runs \
      -H "Authorization: Bearer $SPIRAL_API_KEY" \
      -H "Content-Type: application/json" \
      -H "Idempotency-Key: $(uuidgen)" \
      -d '{
        "provider": "alexandria",
        "model": "hts-usitc-gov/tariff-schedule/search",
        "input": {
          "keyword": "<keyword>"
        }
      }'

Then paste one of the prompts above: Codex finds USITC HTS product search on Spiral, shows the price and runs it.

USITC HTS product search providers and prices

Spiral runs USITC HTS product search through Alexandria. Open a card for today's price, with every fee included.

AlexandriaFinance
USITC Harmonized Tariff Schedule (HTSUS) · Search
hts-usitc-gov/tariff-schedule/search

Settings you can ask for

Ask Codex for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Limit1 to 1000100

Maximum hits to return, in the server's order. Default 100.

Every API field of USITC Harmonized Tariff Schedule (HTSUS) · Search is on its tool page: open its card above.

What can you do with USITC HTS product search in Codex?

Build a tariff reference in your project with USITC descriptions, quantity units, and duty-rate columns. Add revision checks so the project can identify when its saved HTS data needs refreshing.

Review an electronics import catalog

Search descriptions for connectors and power supplies, inspect candidate tariff lines, and compare surrounding chapter entries. Check the revision before refreshing the catalog's classification references.

Prepare a solar procurement review

Find photovoltaic descriptions, retrieve candidate entries, and compare related classifications in the chapter records. Attach the current revision identity to the procurement brief.

Build a textile classification brief

Search for cotton shirts, inspect the descriptions and units of candidate entries, and compare chapter alternatives. Identify the revision used in the brief sent for classification review.

Refresh product classification references

Check for a new revision, reload relevant chapters, and look up saved tariff numbers. Search product descriptions for replacement candidates when a saved number no longer appears.

Resolve product-name mismatches

Search technical descriptions such as static converters for telecommunication devices, then inspect candidate tariff lines. Give purchasing staff the schedule wording alongside their everyday product names.

Questions about USITC HTS product search in Codex

Can Codex use USITC HTS product search?

Yes. Add Spiral to Codex as an MCP server, and Codex can find and run USITC HTS product search like any built-in tool.

How much does USITC HTS product search cost in Codex?

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Codex plan is separate.

Do I need an Alexandria account to use USITC HTS product search in Codex?

No. Spiral runs USITC HTS product search on its own Alexandria account. You sign in to Spiral once and never paste a key.

How long does it take to set up USITC HTS product search in Codex?

About two minutes: add the hosted server, then sign in.

Does Codex wait while USITC HTS product search runs?

USITC HTS product search runs in the background. Codex starts the run, checks on it and gives you the json when it's ready.

Which country's tariffs does the HTS cover?

It covers merchandise imported into the United States, with tariff rates and statistical classifications. Its coverage is U.S. imports.

How often does the schedule change?

USITC revises the online HTS throughout the year as modifications occur. Revision status identifies the current edition and its dates so you can check whether a saved reference needs updating.

Can I retrieve the tariff schedule for an earlier shipment?

These endpoints serve the current revision only. USITC's separate archive provides historical editions beginning in 1989.

Why might a familiar product name return no matches?

HTS descriptions can use technical wording. USITC says phone chargers are listed as static converters for telecommunication devices, so searching only for the everyday name can miss them.

Does keyword search return every matching tariff entry?

USITC's guide documents a limit of the first 100 matches for its underlying REST search. Use narrower product terms or chapter records when you need broader coverage.

Get started

Start using USITC HTS product search in Codex

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into Codex:

Set up Codex

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options