Check a Shopify CSV for customs data gaps
customs_data_gap_checkBest for: "which products have no HS code?" or "run a customs readiness check on this". Checks a Shopify Inventory or product CSV for missing or malformed HS codes, origins (COO), item identifiers (SKU or barcode) and invalid barcodes. Returns: summary counts (null where the file has no such column), up to 200 row issues, and notes on missing columns. Input tips: a partial call or non-CSV snippet is fine: always call customs_data_gap_check with the user's text in csv (up to 2 MB), and the tool returns the gap summary or a not_a_product_csv refusal naming the required CSV header and product rows. Not for: suggesting missing HS codes (use bulk_hs_candidates). Nothing is stored: the input is used for this answer and dropped.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"csv": "<csv>"
},
"name": "customs_data_gap_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| csv | Yes | The product CSV text from Shopify (product or Inventory CSV), WooCommerce or Etsy, header row plus product rows, up to 2 MB; commas, semicolons and tabs are read. A partial call or non-CSV product snippet is fine when the user asks to check readiness: pass the text as csv and the tool returns the gap summary or not_a_product_csv. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | Yes | ||
| issues | Yes | Up to 200 rows to fix. | |
| summary | Yes | A count is null when the file has no column to check it with. | |
| truncated | Yes | true when more than 200 rows had problems and the list was cut. |