htsapi.dev

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

¿Debería usar esto?

Calidad y seguridad

A
Calidad de la descripción
98%
Integridad del esquema
89%
Calidad de los nombres
90%
Riesgo de envenenamiento
100%
Coincidencia de permisos
100%
Cumplimiento del protocolo
100%

Basado en el análisis automatizado de las definiciones de herramientas y el cumplimiento del protocolo.

Costo de contexto

~2,316Tokens (definiciones de herramientas)
~1.5 KBTamaño de respuesta típico
Impacto moderado en la atención (1.81% del contexto de 128k)

Este es el número aproximado de tokens que se consumen cada vez que las herramientas del servidor se cargan en el contexto de un modelo. Los recuentos más altos reducen la atención disponible para otras tareas.

Instalar

Instalación con un clic

Agrega esto a tu archivo `claude_desktop_config.json`:

{
  "mcpServers": {
    "mcp": {
      "url": "https://htsapi.dev/mcp"
    }
  }
}

Puntos de conexión remotos

https://htsapi.dev/mcpstreamable-http

Qué puede hacer

Inventario de herramientas

Herramientas (8)

🟢 Solo lectura🟡 Escritura🔴 Eliminación⚪ Desconocido
🟢lookup_hts_code(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.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "code": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "An HTS chapter, heading or code, 2 to 10 digits, dotted or not (82, 8205, 8205.51, 8205517500). Leave it out for the sections and chapters.",
      "title": "Code"
    }
  },
  "title": "lookup_hts_codeArguments"
}

Esquema de salida

{
  "type": "object",
  "additionalProperties": true,
  "title": "lookup_hts_codeDictOutput"
}
🟢importers_paid(code, country_of_origin)

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.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "code": {
      "description": "An HTS code, 6 to 10 digits, dotted or not (8205.51.30).",
      "title": "Code",
      "type": "string"
    },
    "country_of_origin": {
      "description": "Country of origin: name, ISO code or common alias (China, CN, PRC, Viet Nam).",
      "title": "Country Of Origin",
      "type": "string"
    }
  },
  "required": [
    "code",
    "country_of_origin"
  ],
  "title": "importers_paidArguments"
}

Esquema de salida

{
  "type": "object",
  "additionalProperties": true,
  "title": "importers_paidDictOutput"
}
🟢get_notes(code)

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.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "code": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Any HTS chapter, heading or code (82, 8205, 8205.51.30): its section's and chapter's notes. Leave it out for the General Rules of Interpretation.",
      "title": "Code"
    }
  },
  "title": "get_notesArguments"
}

Esquema de salida

{
  "type": "object",
  "additionalProperties": true,
  "title": "get_notesDictOutput"
}
🟢heading_scope(heading, product)

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.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "heading": {
      "description": "An HTS heading (9505) or any code under it (9505.10.25).",
      "title": "Heading",
      "type": "string"
    },
    "product": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "The product in plain words. Puts first the passages and rulings on goods closest to it: what decides for this product, not what is quoted most.",
      "title": "Product"
    }
  },
  "required": [
    "heading"
  ],
  "title": "heading_scopeArguments"
}

Esquema de salida

{
  "type": "object",
  "additionalProperties": true,
  "title": "heading_scopeDictOutput"
}
🟢rulings_under_code(code, product, limit, offset)

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.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "code": {
      "description": "An HTS heading, subheading or line, 4 to 10 digits (8205, 8205.51, 8205.51.30.30). Old codes no longer in the schedule work too.",
      "title": "Code",
      "type": "string"
    },
    "product": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Optional: the product in plain words, to put the rulings closest to it first.",
      "title": "Product"
    },
    "limit": {
      "default": 20,
      "description": "Rulings to return, 1-50.",
      "title": "Limit",
      "type": "integer"
    },
    "offset": {
      "default": 0,
      "description": "Rulings to skip, for the next page.",
      "title": "Offset",
      "type": "integer"
    }
  },
  "required": [
    "code"
  ],
  "title": "rulings_under_codeArguments"
}

Esquema de salida

{
  "type": "object",
  "additionalProperties": true,
  "title": "rulings_under_codeDictOutput"
}
🟢search_rulings(query, limit)

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.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "query": {
      "description": "The product in plain words: what it is, what it is made of, what it is for.",
      "title": "Query",
      "type": "string"
    },
    "limit": {
      "default": 10,
      "description": "Rulings to return, 1-30.",
      "title": "Limit",
      "type": "integer"
    }
  },
  "required": [
    "query"
  ],
  "title": "search_rulingsArguments"
}

Esquema de salida

{
  "type": "object",
  "additionalProperties": true,
  "title": "search_rulingsDictOutput"
}
🟢get_ruling(ruling_number)

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).

Esquema de entrada

{
  "type": "object",
  "properties": {
    "ruling_number": {
      "description": "A CBP ruling number: N338413, H301540, 881984.",
      "title": "Ruling Number",
      "type": "string"
    }
  },
  "required": [
    "ruling_number"
  ],
  "title": "get_rulingArguments"
}

Esquema de salida

{
  "type": "object",
  "additionalProperties": true,
  "title": "get_rulingDictOutput"
}
🟢classify_product(description, country_of_origin, material)

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.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "description": {
      "description": "What the product is, what it is made of and what it is for, in plain words (3-2000 characters). Several listings of the same product may be pasted together.",
      "title": "Description",
      "type": "string"
    },
    "country_of_origin": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Country of origin: name, ISO code or common alias (China, CN, PRC, Viet Nam). Adds what importers from there paid on the code (Census, the latest 3 published months).",
      "title": "Country Of Origin"
    },
    "material": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Main material, if not already in the description.",
      "title": "Material"
    }
  },
  "required": [
    "description"
  ],
  "title": "classify_productArguments"
}

Esquema de salida

{
  "type": "object",
  "additionalProperties": true,
  "title": "classify_productDictOutput"
}

Comunidad

Califica este servidor

Evidencia

Observaciones recientes

verificadoversión no registrada8 herramientas