# htsapi.dev

> HTS with its legal notes, 222,000+ CBP rulings with status, what they quote on a heading. Keyless.

- name: dev.htsapi/mcp
- version: 1.0.0
- connection class: R0 (autonomous)
- trust: 95/100
- quality: 91/100 (strong)
- owner: not claimed
- descriptor: https://api.protogrid.dev/v1/servers/dev.htsapi%2Fmcp
- tools: https://api.protogrid.dev/v1/servers/dev.htsapi%2Fmcp/tools

**An agent can connect right now, no human step.** Remote endpoint, no authentication, reachable on the last probe.

## Connection (mcpServers)

```json
{
  "mcpServers": {
    "htsapi": {
      "type": "http",
      "url": "https://htsapi.dev/mcp",
      "headers": {
        "X-API-Key": "${X_API_KEY}"
      }
    }
  }
}
```

Placeholders to fill: `${X_API_KEY}`.

## Trust

- hygiene: 100
- liveness: 99
- freshness: 100
- provenance: 85
- drivers: +repository +dns-namespace +website +reachable +uptime-98% +updated-10d-ago
- Derived from observable signals (official registry feed and our own credential-free probes); no code audit performed.

## Quality 91/100 (strong)

### protocol: 75 (weight 25)

- warn `protocol.modern`: newest supported version is 2025-11-25; 2026-07-28 not supported, older versions are deprecated until 2027-07-28
- n/a `protocol.stateless`: only applies to 2026-07-28 servers
- pass `protocol.transport`: streamable HTTP
- n/a `protocol.list_ttl`: only applies to 2026-07-28 servers

### authorization: n/a (weight 15)

- n/a `auth.prm`, `auth.as_metadata`, `auth.cimd`: no remote uses OAuth
- n/a `auth.secret_in_url`: no templated URL

### tool hygiene: 100 (weight 30)

- pass `tools.descriptions`: every tool has a description
- pass `tools.description_length`: descriptions are concise
- pass `tools.schemas`: every tool has an object input schema
- pass `tools.annotations`: 8 of 8 tools declare readOnlyHint or destructiveHint
- pass `tools.directory_hints`: every tool declares readOnlyHint, destructiveHint, idempotentHint and openWorldHint
- pass `tools.token_cost`: about 2,058 tokens to load every tool
- pass `tools.api_dump`: tools are not a one-to-one API dump
- pass `tools.hidden_text`: no hidden text in tool, prompt or resource definitions
- pass `tools.poisoning`: no instructions aimed at the model in tool, prompt or resource definitions

### stability: 100 (weight 15)

- pass `stability.changes`: no tool changes in 30 days
- pass `stability.rug_pull`: no tool changed its meaning under the same name
- pass `stability.new_links`: no tool change named a new site

### dependencies: n/a (weight 15)

- n/a `deps.known_vulns`, `deps.mcp_sdk_version`, `deps.resolvable`: no npm or PyPI package

- tools: 8, about 2,058 tokens to load them all
- tool set hash: daa2f9bb5381d0f6b13f01fd304e9a95
- badge: [![protogrid quality](https://protogrid.dev/badge/dev.htsapi/mcp.svg)](https://protogrid.dev/servers/dev.htsapi/mcp)
- Checks run on what our credential-free, read-only probes observe; tools are never called and no code audit is performed.

### Definition changes

_No changes to tool, prompt or resource template definitions recorded._

## Remotes

- https://htsapi.dev/mcp (streamable-http, auth none, reachable true, uptime30d 0.9756098)

## Packages

_none_

## Tools (8)

- `classify_product`: Classify a product to a US HTS code. COSTS 1 CREDIT (refunded if it fails). Takes 10-60 s.

    Read `answer` first. `answer.code` is as deep as the facts given decide (10 digits when they
    do). When they do not, `answer.options` are the codes it could be, each with its `condition`,
    base rate and `importers_paid`, and `answer.question` is the fact that decides: ask the user,
    then call again with the answer added to the description (a new call, 1 credit).
    `candidates` carry the reasoning and the CBP rulings behind each code.
- `get_notes`: The legal text that decides between headings, from the official US schedule. With a code:
    its section's notes and its chapter's notes, subheading notes, Additional U.S. Notes and
    statistical notes. These have legal force (GRI 1): they exclude goods from a chapter ("this
    chapter does not cover...") and define terms. Without a code: the General Rules of
    Interpretation and the Additional U.S. Rules of Interpretation. The WCO Explanatory Notes are
    not included (copyrighted); heading_scope gives the passages CBP rulings quote from them.
- `get_ruling`: One CBP ruling: its full text, HTS codes, status and, when revoked or modified, the ruling
    that did it, the codes it moved the goods to, and the sentence that says so. Codes the
    current schedule no longer has are listed in `obsolete_codes`. `cites`: the explanatory
    notes, legal notes and GRIs it relies on (heading_scope shows what rulings say a heading covers).
- `heading_scope`: What CBP's rulings quote and decide on a heading: for deciding whether a product falls in it.
    Give the product to get what decides for it first. `passages`: the lines rulings quote when
    deciding (mostly from the WCO Explanatory Notes, not published free; fragments, not the whole
    note), each with the rulings
    that quote it: their goods, HQ or NY, date, status and what CBP concluded; `exclusion` marks
    text on what the heading does not cover. `notes_applied`: the legal notes rulings applied to
    the heading. `cited_without_quote`: rulings that relied on its explanatory note without quoting
    it. Each passage is as a ruling quotes it.
- `importers_paid`: What importers from a country actually paid on a code in the latest 3 months Census has
    published: base rate plus Chapter 99 duties (Section 301, 232 and the like), as a percent of
    value, by month. Not the duty a shipment will owe today (Census is about 2 months behind and
    the rules change), and anti-dumping/countervailing duties are not included. For "what will
    this cost", not for classifying.
- `lookup_hts_code`: The tariff schedule, one level at a time, the way a classifier reads it. No code: the 22
    sections and their chapters, for goods no ruling covers. A chapter (82) lists its headings
    with their legal text; a heading (8205) lists its subheadings in words; a subheading or line
    gives its path from the heading (an "Other" line says what it is not), base rates with the
    special-rate programs named, the 10-digit lines under it and the newest current CBP rulings
    under it. A code no longer in the schedule falls back to the nearest level that is. What
    importers paid is a separate tool, importers_paid.
- `rulings_under_code`: Every CBP ruling that classifies goods under a code: for checking a code someone already
    has. `rulings` are current (not revoked), newest first, or closest to `product` first, each
    with what its goods were; `moved_away` are rulings CBP revoked off this code and the codes the
    revoking ruling put the goods under. If similar goods were moved away, the code is in doubt.
- `search_rulings`: CBP rulings for a product described in plain words, by meaning. Each ruling comes with
    its HTS codes, its status (current, modified, superseded) and the product facts CBP
    classified. `by_code` lists the subheadings current rulings point to, in the order of the rulings,
    each with its HQ rulings, newest ruling and `lines`: the full codes under it with the rulings
    for each, which is where the facts that decide between lines show.

## Prompts and resources

### Prompts (1)

- `` classification_file ``: Classify one product for US import the way a broker documents it, and write the classification file: facts, headings considered, notes, GRIs, code, rulings, open points.
