HTS MCP
Skip to Content
MCP ToolsOverview

MCP Tools

HTS MCP exposes 39 tools through the Model Context Protocol, organized into 7 categories.

Tool Summary

Tariff Tools

ToolPurpose
get_tariffGet full tariff details for an 8-digit HTS code
search_tariffsMulti-strategy search with semantic, lexical, or hybrid scoring

Enrichment Tools

ToolPurpose
enrich_hts6_codesGenerate AI descriptions and keywords for HTS6 codes
generate_multilevel_embeddingsCreate embeddings at chapter/hts4/hts6/hts8 levels
get_enrichment_statusCheck enrichment availability

Graph Tools

ToolPurpose
generate_graph_edgesGenerate edge candidates via pgvector KNN
classify_graph_edgesClassify candidates with LLM into relationship types
get_graph_statusPipeline statistics and recent runs
get_code_relationshipsQuery classified edges for a code

Resource Tools

ToolPurpose
search_tariff_resourcesSearch policy documents and references
add_tariff_resourceAdd a new policy resource
get_resource_statisticsAggregate resource stats

Reference Tools

ToolPurpose
get_tariff_referencesGet codes referenced in a tariff’s description
get_tariffs_referencing_codeFind tariffs that reference a given code
get_database_statusComprehensive database health and counts

Regulation Tools

ToolPurpose
search_regulationsHybrid vector + full-text search across CFR regulations and CBP documents
get_regulation_sectionLook up a specific CFR section by number
list_regulation_sectionsBrowse sections with chapter/part filtering
get_regulation_structureFull chapter, part, and section hierarchy
get_regulation_cross_referencesWhat a section cites and what cites it
resolve_regulation_definitionsDefined terms scoped to a specific section
search_regulation_definitionsSearch defined terms across all definition sections
get_related_regulation_sectionsSemantically related sections
get_regulation_contextFull regulatory context package for a section
get_entry_rights_directiveFull text of CBP Directive 3530-002A
search_entry_summary_instructionsSearch the ACE Entry Summary Instructions
search_entry_summary_business_rulesSearch the ACE Entry Summary Business Process rules
list_regulation_examsList available customs broker exams
start_regulation_examStart an exam session
get_regulation_exam_questionsFetch exam questions (answers hidden)
start_regulation_questionOpen a question’s research context
submit_regulation_exam_answerSubmit an answer with reasoning and citations
get_regulation_exam_progressSession progress, overall and by category
grade_regulation_examGrade a session against the answer key
get_regulation_exam_resultsGraded results with per-question research trail

Section 301 Tools

ToolPurpose
get_301_statusCheck if Section 301 duties apply to an HTS code
search_301_coverageSearch coverage by HTS code pattern
get_301_list_summaryPer-list stats: code count, rate range, date range
get_301_database_statusSection 301 database statistics

Common Patterns

Basic Tariff Lookup

1. search_tariffs(query="product description") 2. get_tariff(hts_code=result.code) 3. get_tariff_references(hts_code=code)

Relationship Exploration

1. get_code_relationships(hts_code=code, min_confidence=0.7) 2. get_tariff(hts_code=related_code) # for each result

Pipeline Status Check

1. get_database_status() # tariffs, embeddings, enrichments 2. get_enrichment_status() # enrichment detail 3. get_graph_status() # graph pipeline detail