How to Use USITC HTS chapter records in Gemini CLI
Fetch current tariff entries by chapter, including headings, descriptions, units, and duty-rate columns. Use it to build a chapter reference or compare related classifications beyond keyword matches.
Prompts to try with USITC HTS chapter records in Gemini CLI
Copy an example into Gemini CLI, or ask in your own words.
Use USITC HTS chapter records to retrieve chapter 85 and build a searchable table in this project with HTS numbers and article descriptions.
Use USITC HTS chapter records to look this up and give me the result as a table. Save the result in ./assets.
Pull the latest numbers from USITC HTS chapter records and tell me what changed since last week.
Check USITC HTS chapter records and summarize what you find in three bullet points.
Pull the newest data from USITC HTS chapter records and give me the result as a table.
How to set up USITC HTS chapter records in Gemini CLI
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the server
Or add it to ~/.gemini/settings.json yourself:
gemini mcp add --scope user --transport http spiral https://api.spiral.ai/mcp
- Sign in
Start gemini and run:
/mcp auth spiral
- Check it
In Gemini CLI, run /mcp. From your shell:
gemini mcp list
Use the Spiral skill
- Send Gemini CLI this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- 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
- Create an API key
In the console, under API keys.
- Run USITC HTS chapter records
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/records_list", "input": { "limit": 500 } }'
Then paste one of the prompts above: Gemini CLI finds USITC HTS chapter records on Spiral, shows the price and runs it.
USITC HTS chapter records providers and prices
Spiral runs USITC HTS chapter records through Alexandria. Open a card for today's price, with every fee included.
Settings you can ask for
Ask Gemini CLI for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Limit | 1 to 5000 | 500 | Rows per page. Default 500; 5000 returns any chapter in one page (chapter 99, the largest, has about 3,350 rows). |
Every API field of USITC Harmonized Tariff Schedule (HTSUS) · Records list is on its tool page: open its card above.
What can you do with USITC HTS chapter records in Gemini CLI?
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.
Maintain a chapter reference table
Build a reference table of chapter descriptions, quantity units, and duty-rate columns. Use revision checks to trigger comparisons against your previously saved chapter data.
More on USITC HTS chapter records and Gemini CLI
Overview
USITC HTS chapter records in other agents
Questions about USITC HTS chapter records in Gemini CLI
Can Gemini CLI use USITC HTS chapter records?
Yes. Add Spiral to Gemini CLI as an MCP server, and Gemini CLI can find and run USITC HTS chapter records like any built-in tool.
How much does USITC HTS chapter records cost in Gemini CLI?
$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Gemini CLI plan is separate.
Do I need an Alexandria account to use USITC HTS chapter records in Gemini CLI?
No. Spiral runs USITC HTS chapter records 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 chapter records in Gemini CLI?
About two minutes: add the server, then sign in, then check it.
Does Gemini CLI wait while USITC HTS chapter records runs?
USITC HTS chapter records runs in the background. Gemini CLI 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.
Start using USITC HTS chapter records in Gemini CLI
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Gemini CLI:
set up https://spiral.ai/SKILL.md


