potal

v1.3.1
io.github.soulmaten7/potal Checked 5 hours ago Published 8 months ago

Total landed cost API for cross-border commerce.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

calculate_landed_cost

Calculate the total landed cost for a product being shipped internationally. Returns a detailed breakdown of import duties, VAT/GST, customs fees, and the final total price the buyer will pay. Supports 240 countries and territories. Includes China CBEC tax, Mexico IEPS, Brazil cascading tax, India IGST, and processing fees for 12 countries.

ParameterTypeDescription
destinationCountry *stringDestination country as 2-letter ISO code. Examples: US, GB, DE, CA, AU, JP, FR, KR
origin *stringOrigin country as 2-letter ISO code. Examples: CN (China), DE (Germany), JP (Japan), IT (Italy), GB (United Kingdom)
price *numberProduct price in USD. Example: 49.99
hsCodestringIf known, the HS Code for precise duty calculation. Example: 6109.10 (cotton t-shirts)
productCategorystringProduct category for classification. Examples: electronics, apparel, footwear, accessories, food
productNamestringName of the product for automatic HS Code classification. Examples: Cotton T-Shirt, Laptop, Running Shoes
shippingPricenumberShipping cost in USD. Default: 0. Example: 8.50
zipcodestringDestination ZIP/postal code. Recommended for US destinations to calculate state sales tax. Example: 10001 (New York), 90210 (Beverly Hills)

classify_product

Classify a product into an HS (Harmonized System) code for customs. Uses AI-powered classification with keyword matching fallback. Returns HS code, description, chapter, and confidence level.

ParameterTypeDescription
productName *stringProduct name or description. Example: 'cotton t-shirt', 'laptop computer', 'running shoes'
hsCodestringKnown HS code to override classification. Example: '6109.10'
productCategorystringProduct category hint. Example: 'apparel', 'electronics', 'footwear'

check_restrictions

Check import restrictions for a product in a destination country. Returns prohibited items, required permits, watched items, and carrier restrictions. Essential for compliance screening before shipping.

ParameterTypeDescription
destinationCountry *stringDestination country ISO2 code. Example: 'US', 'DE', 'JP'
hsCode *stringHS code to check restrictions for. Example: '9302' (firearms), '3004' (pharmaceuticals)
productNamestringProduct name for auto-classification if no HS code.

screen_shipment

Comprehensive shipment screening: calculates landed cost, checks restrictions, and identifies trade remedies — all in one call. Use this for a complete pre-shipment compliance and cost analysis.

ParameterTypeDescription
destinationCountry *stringDestination country ISO2
origin *stringOrigin country ISO2
price *numberProduct price in USD
productName *stringProduct name for classification
hsCodestringKnown HS code
shippingPricenumberShipping cost in USD

screen_denied_party

Screen a person or entity against sanctions and denied-party lists. Checks OFAC SDN, BIS Entity List, CSL, and other databases (21,301 entries from 19 sources). Essential for trade compliance.

ParameterTypeDescription
name *stringPerson or entity name to screen. Example: 'Huawei Technologies'
countrystringCountry ISO2 code to narrow results. Example: 'CN'
minScorenumberMinimum match score 0.5-1.0. Default: 0.8

lookup_fta

Look up Free Trade Agreements between two countries. Covers 63 FTAs including USMCA, RCEP, CPTPP, KORUS, EU-UK TCA. Returns preferential duty rates if an FTA applies.

ParameterTypeDescription
destination *stringDestination country ISO2 code. Example: 'US'
origin *stringOrigin country ISO2 code. Example: 'KR'
hsCodestringHS code for product-specific FTA rate. Example: '6109.10'

list_supported_countries

Get a list of all 240 supported countries with their VAT/GST rates, average duty rates, de minimis thresholds, and currency information. Use this to check if a country is supported or to compare tax rates.

generate_document

Generate trade documents for a shipment: Commercial Invoice (CI), Packing List (PL), or Certificate of Origin (C/O). Returns a structured JSON document ready for export/PDF generation.

ParameterTypeDescription
destinationCountry *stringDestination country (ISO 2-letter code, e.g. 'US')
documentType *stringType of trade document to generate
exporterName *stringExporter/seller company name
importerName *stringImporter/buyer company name
originCountry *stringCountry of origin (ISO 2-letter code, e.g. 'CN')
productName *stringProduct name/description
quantity *numberNumber of units
unitPrice *numberPrice per unit in USD
currencystringCurrency code (default: USD)
hsCodestringHS code (6+ digits)
weightnumberTotal weight in kg

compare_countries

Compare Total Landed Cost across multiple destination countries for the same product. Useful for finding the cheapest import route or comparing duty rates between countries. Returns a side-by-side comparison of costs.

ParameterTypeDescription
destinationCountries *arrayList of destination countries to compare (ISO 2-letter codes, e.g. ['US', 'GB', 'DE', 'JP'])
originCountry *stringOrigin/export country (ISO 2-letter code, e.g. 'CN')
price *numberProduct price in USD
productName *stringProduct name/description
hsCodestringHS code (6+ digits)
shippingPricenumberShipping cost in USD (default: 0)