Tariff Code Compliance Explorer with MCP: Examples
These JSON-RPC examples use placeholder versions and node IDs. Always call list_tariff_systems first and use the exact system and version returned at runtime.
List tariff systems
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "list_tariff_systems",
"arguments": {}
}
}Resolve a tariff code
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "resolve_nodes",
"arguments": {
"system": "US_HTS",
"version": "<version from list_tariff_systems>",
"selector": {
"source_key": {
"scheme": "us_hts.code",
"value": "9506"
},
"kinds": ["classification"]
}
}
}
}Search native nodes
{
"jsonrpc": "2.0",
"id": 3,
"method": "tools/call",
"params": {
"name": "search_nodes",
"arguments": {
"system": "US_HTS",
"version": "<version from list_tariff_systems>",
"query": "sports equipment",
"kinds": ["classification"],
"locales": ["en"]
}
}
}Traverse related nodes
{
"jsonrpc": "2.0",
"id": 4,
"method": "tools/call",
"params": {
"name": "traverse_nodes",
"arguments": {
"system": "US_HTS",
"version": "<version from list_tariff_systems>",
"start_node_ids": ["<node id returned by resolve_nodes or search_nodes>"],
"direction": "both",
"relations": ["parent_of", "applies_to", "references", "defines"],
"max_depth": 2,
"max_nodes": 100,
"max_edges_per_node": 50
}
}
}Return to Tariff Code Compliance Explorer with MCP, review the prompts, or inspect the complete tool reference.