{
  "server": {
    "name": "bot.border/borderbot",
    "version": "1.0.0",
    "url": "https://mcp.border.bot/mcp"
  },
  "tools": [
    {
      "name": "classify_product",
      "title": "Classify a product (HS/HTS code)",
      "description": "Find the HS / HTS tariff code for a product being shipped to one or more countries. Destinations and the code list each is answered in: US HTS (10-digit): Puerto Rico, United States; EU Combined Nomenclature / TARIC (10-digit): the 27 EU member states, Monaco, San Marino; other countries aren’t classified yet. Takes a product page URL, a plain-language description and/or a public product photo URL, and one or more destinations. Missing details are asked for in a form before anything is charged; where the client has no forms, the result has status \"needs_input\" with the questions and the arguments they fill. Without a destination, the form lists every country border.bot classifies for as a checkbox, with the classification mode. Countries that share a code list (the EU’s members) are classified and charged once, each with its own import restrictions. With a product URL, the classifier reads the listing, and border.bot infers the country of origin from it (page data, then AI) and asks the user to confirm it. Costs the mode’s credits (see `mode`) per code list, charged only when the classification runs. Returns the code, its hierarchy, confidence, reasoning, alternatives, the destination’s import restrictions on each code (agency requirements such as US PGA flags, licences, prohibitions) and the remaining credit balance.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "description": {
            "description": "What the product is: type, material/composition, intended use and user. E.g. \"Men’s short-sleeve t-shirt, 100% cotton, knitted\".",
            "type": "string",
            "maxLength": 2000
          },
          "product_url": {
            "description": "Product page URL (http/https). border.bot reads it for details and origin.",
            "type": "string",
            "maxLength": 2048
          },
          "image_url": {
            "description": "Public URL of a product photo (http/https) to classify with vision — use when there is no listing URL.",
            "type": "string",
            "maxLength": 2048
          },
          "destination_country": {
            "description": "Where the parcel is going — ISO 3166-1 alpha-2 code such as \"US\", \"GB\" or \"DE\" (country names also work). When empty, the user is asked.",
            "type": "string",
            "maxLength": 60
          },
          "destination_countries": {
            "description": "Several destinations at once: ISO-2 codes such as [\"US\", \"DE\", \"FR\"]. One classification per code list (the EU’s members share one).",
            "anyOf": [
              {
                "maxItems": 60,
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 60
                }
              },
              {
                "type": "string",
                "maxLength": 1000
              }
            ]
          },
          "origin_country": {
            "description": "Where the product was made — ISO-2 code, or \"unknown\". When empty, border.bot infers it (product page, then AI) and asks the user to confirm.",
            "type": "string",
            "maxLength": 60
          },
          "mode": {
            "description": "The classification mode: \"mini\": 1 credit, The fastest: search by meaning and words, then the reranker. No language model; \"pro\" (default): 1 credit, A model rewrites the listing in customs terms, the search stays in the chapters it names, and a model ranks the candidates by the rules of interpretation, with precedent rulings. Brand-only listings are identified on the web; \"max\": 3 credits, The highest accuracy: an agent searches the tariff, walks its tree, reads rulings and identifies products on the web. When empty, the default mode runs.",
            "type": "string",
            "enum": [
              "mini",
              "pro",
              "max"
            ]
          }
        },
        "additionalProperties": false
      },
      "annotations": {
        "title": "Classify a product",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": true
      },
      "_meta": {
        "bot.border/spendsCredits": true
      }
    },
    {
      "name": "classify_products",
      "title": "Classify several products",
      "description": "Find the HS codes for up to 25 products at once (a cart, an order, a catalogue page). Each product needs a description or a product URL, and its destination country. Destinations and the code list each is answered in: US HTS (10-digit): Puerto Rico, United States; EU Combined Nomenclature / TARIC (10-digit): the 27 EU member states, Monaco, San Marino; other countries aren’t classified yet. Each is charged as one classification by the mode; one that fails never stops the others, and is refunded. Nothing is asked: a product missing its description or destination comes back as an error.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "products": {
            "minItems": 1,
            "maxItems": 25,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "description": {
                  "description": "What the product is: type, material, use and who it is for.",
                  "type": "string",
                  "maxLength": 2000
                },
                "product_url": {
                  "description": "Product page URL (http/https).",
                  "type": "string",
                  "maxLength": 2048
                },
                "destination_country": {
                  "description": "Where it is shipped to (ISO-2 code or country name). Needed for every product.",
                  "type": "string",
                  "maxLength": 60
                },
                "origin_country": {
                  "description": "Where it was made, if known.",
                  "type": "string",
                  "maxLength": 60
                },
                "title": {
                  "type": "string",
                  "maxLength": 300
                },
                "brand": {
                  "type": "string",
                  "maxLength": 120
                },
                "price": {
                  "description": "Unit price (some codes depend on it).",
                  "type": "number",
                  "minimum": 0
                },
                "currency": {
                  "description": "ISO 4217 currency of the price.",
                  "type": "string",
                  "maxLength": 3
                }
              },
              "additionalProperties": false
            },
            "description": "The products, each with its destination."
          },
          "mode": {
            "description": "The classification mode: \"mini\": 1 credit, The fastest: search by meaning and words, then the reranker. No language model; \"pro\" (default): 1 credit, A model rewrites the listing in customs terms, the search stays in the chapters it names, and a model ranks the candidates by the rules of interpretation, with precedent rulings. Brand-only listings are identified on the web; \"max\": 3 credits, The highest accuracy: an agent searches the tariff, walks its tree, reads rulings and identifies products on the web. When empty, the default mode runs.",
            "type": "string",
            "enum": [
              "mini",
              "pro",
              "max"
            ]
          }
        },
        "required": [
          "products"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Classify products",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": true
      },
      "_meta": {
        "bot.border/spendsCredits": true
      }
    },
    {
      "name": "find_agency_product_code",
      "title": "Find an agency product code",
      "description": "Find the product code the destination’s import agency asks for on entry, in that agency’s coding scheme: which agency and scheme depend on the destination. Not live yet: no destination has agency codes (FDA’s import product codes for the US, such as 16AYN07, are being loaded), so every call is refused before charging. Lists each part of the code and whether the agency’s own check accepted it. Describe what the product is, what it is made of and how it is processed or packed. Costs 1 credit; goods the agency doesn’t regulate are refused and refunded, and destinations without agency codes are refused before charging.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "description": {
            "type": "string",
            "minLength": 3,
            "maxLength": 2000,
            "description": "What the product is, its material, and how it is processed or packed."
          },
          "destination_country": {
            "description": "Where the goods are imported (its agency’s codes are used) — ISO 3166-1 alpha-2 code such as \"US\", \"GB\" or \"DE\" (country names also work). When empty, the user is asked.",
            "type": "string",
            "maxLength": 60
          },
          "hs_code": {
            "description": "Its tariff code, when known (a hint).",
            "type": "string",
            "maxLength": 16
          }
        },
        "required": [
          "description"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Find an agency product code",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": true
      },
      "_meta": {
        "bot.border/spendsCredits": true
      }
    },
    {
      "name": "calculate_landed_cost",
      "title": "Calculate duties, taxes & landed cost",
      "description": "Calculate import duties, taxes, fees and the total landed cost of a shipment into a country border.bot covers. Destinations: the 27 EU member states, Monaco, Puerto Rico, San Marino, United States; other countries aren’t covered yet. Needs an HS code — or a product URL/description to classify first — plus the country of origin, the destination and the goods value. Missing details are asked from the user directly (or returned as status \"needs_input\" with the exact questions). Costs 1 credit, or 2 when the product must be classified first (the user is asked to confirm). Returns every duty/fee/tax line (a lifted duty names the exemption that lifted it, with its legal basis and any other exemption that also would), the codes to declare (entryCodes: the tariff line, additional duty and exemption headings), exemptions that could still be claimed with what they remove and the proof they need, totals, de minimis status, the trade agreement applied, and conditional measures that may apply (not included in totals).",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "hs_code": {
            "description": "HS/HTS code if known, e.g. \"6109.10\" or \"6109100012\".",
            "type": "string",
            "maxLength": 20
          },
          "description": {
            "description": "Product description (used to classify when no HS code is given).",
            "type": "string",
            "maxLength": 2000
          },
          "product_url": {
            "description": "Product page URL (used to classify, infer origin and suggest the value).",
            "type": "string",
            "maxLength": 2048
          },
          "origin_country": {
            "description": "Country of origin (where it was made) — ISO 3166-1 alpha-2 code such as \"US\", \"GB\" or \"DE\" (country names also work). When empty, the user is asked.",
            "type": "string",
            "maxLength": 60
          },
          "destination_country": {
            "description": "Destination country (one border.bot calculates landed cost for) — ISO 3166-1 alpha-2 code such as \"US\", \"GB\" or \"DE\" (country names also work). When empty, the user is asked.",
            "type": "string",
            "maxLength": 60
          },
          "region": {
            "description": "State, province or territory, where the destination’s import taxes differ inside the country (Canada: ON, QC, BC…). Asked for when it is needed and missing.",
            "type": "string",
            "maxLength": 6
          },
          "value": {
            "description": "Total customs value of the goods in the shipment (price × quantity), excluding shipping.",
            "type": "number",
            "exclusiveMinimum": 0,
            "maximum": 100000000
          },
          "currency": {
            "description": "ISO 4217 currency of `value`, e.g. \"USD\" (default: the product page currency or USD).",
            "type": "string",
            "maxLength": 3
          },
          "shipping_cost": {
            "description": "Shipping cost, in the same currency.",
            "type": "number",
            "minimum": 0,
            "maximum": 10000000
          },
          "insurance_cost": {
            "description": "Insurance cost, in the same currency.",
            "type": "number",
            "minimum": 0,
            "maximum": 10000000
          },
          "quantity": {
            "description": "Number of units (default 1).",
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 1000000
          },
          "weight": {
            "description": "Total shipment weight.",
            "type": "number",
            "exclusiveMinimum": 0,
            "maximum": 100000000
          },
          "weight_unit": {
            "description": "Unit for `weight` (default kg).",
            "type": "string",
            "enum": [
              "kg",
              "lb"
            ]
          },
          "transport_mode": {
            "description": "Transport mode (default air — typical for parcels).",
            "type": "string",
            "enum": [
              "air",
              "sea",
              "road",
              "rail"
            ]
          },
          "shipment_channel": {
            "description": "How the goods travel and clear: \"courier\" (express carriers such as DHL/UPS/FedEx), \"postal\" (national post) or \"freight\" (cargo on its own entry). Default: from transport_mode — air is courier; sea, road and rail are freight. Affects de minimis and fees.",
            "type": "string",
            "enum": [
              "courier",
              "postal",
              "freight"
            ]
          },
          "conditions": {
            "description": "Rate conditions the goods meet, when the destination reserves a rate for them: a kind (pharmaceutical, end_use, certificate, company, quality, route) or the publisher’s code (EU additional code 2500). Only claim one the importer can justify; the rates that could be claimed are listed in the result.",
            "maxItems": 10,
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 20
            }
          },
          "entry_provision": {
            "description": "The special provision the goods are entered under, when not their classification alone (US chapter 98): kind repair_abroad (9802.00.40/.50), processing_abroad (9802.00.60), assembled_abroad (9802.00.80), agreement_provision (USMCA subchapter XXIII), returned (9801.00.10) or other, with the provision code and, for repairs, processing or assembly, the dutiable value (the value of the work abroad, line total). Duties the provision is outside of are left out; Section 232 stays charged.",
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "enum": [
                  "repair_abroad",
                  "processing_abroad",
                  "assembled_abroad",
                  "agreement_provision",
                  "returned",
                  "other"
                ]
              },
              "code": {
                "type": "string",
                "maxLength": 14
              },
              "dutiable_value": {
                "type": "number",
                "minimum": 0
              }
            },
            "required": [
              "kind"
            ],
            "additionalProperties": false
          },
          "purpose": {
            "description": "Why the goods are sent (default sale). gift is a personal gift, not something bought: a free gift with an order is a sale.",
            "type": "string",
            "enum": [
              "sale",
              "gift",
              "sample",
              "return"
            ]
          },
          "sender": {
            "description": "Who sends the goods: a private person or a business. Gift exemptions are usually for gifts from a person (US: up to $100, 19 CFR 10.152); left out, the result is an estimate.",
            "type": "string",
            "enum": [
              "person",
              "business"
            ]
          },
          "gift_in_conjunction_with_purchase": {
            "description": "The gift comes with a purchase (a bonus or free article with an order): never a gift for customs (US 19 CFR 10.153(a)).",
            "type": "boolean"
          },
          "sale_price": {
            "description": "The price the importer sells the goods for (line total, same currency), for taxes charged on the sale price (US large cigars, 27 CFR 41.39).",
            "type": "number",
            "minimum": 0,
            "maximum": 100000000
          },
          "separate_hs_code": {
            "description": "For a line whose duty is that of the goods entered on their own (a garment declared under a US ensemble line such as 6103.22.00.50): the code they take on their own (6105.10.00). Section 301 and other duties on the declared line still apply.",
            "type": "string",
            "maxLength": 20
          },
          "set_articles": {
            "description": "For a line whose duty is the rate of the article in the set with the highest rate (a US set of assorted cutlery, 8215.20.00.00): each article in the set with its own code and how many. The set pays the highest of their rates.",
            "maxItems": 30,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "hs_code": {
                  "type": "string",
                  "maxLength": 20,
                  "description": "The article’s own code."
                },
                "quantity": {
                  "description": "How many of it the set holds.",
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "description": {
                  "description": "What the article is.",
                  "type": "string",
                  "maxLength": 200
                }
              },
              "required": [
                "hs_code"
              ],
              "additionalProperties": false
            }
          },
          "metal_weight_percent": {
            "description": "Share of the goods’ own weight that is metal, all metals together (0–100). Under an exemption’s metal limit it applies the exemption on its own (US Section 232: 9903.82.03, the applicable metal under the share its heading sets); 0 means no metal at all (9903.82.01). Give `materials` too for the metal weight CBP asks for with 9903.82.03.",
            "type": "number",
            "minimum": 0,
            "maximum": 100
          },
          "materials": {
            "description": "What the goods are made of, line totals. Content rules apply from it on their own, as the tariff data sets them: US Section 232 metal under the 9903.82.03 share of the goods’ weight (counting only the metals the line’s lists name, with their weight in kg stated on the entry code), no metal at all (9903.82.01), each metal’s U.S.-melted or smelted share (9903.82.06), Russian-smelted aluminium, and duties on content value (the non-U.S. content of USMCA steel derivatives). Without it the full rate is charged; the result’s contentHints say what to declare.",
            "maxItems": 20,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "material": {
                  "type": "string",
                  "maxLength": 40,
                  "description": "Harmonised material: steel, aluminium, copper, wood, component…"
                },
                "share_percent": {
                  "description": "Share of the goods’ own weight (0–100).",
                  "type": "number",
                  "minimum": 0,
                  "maximum": 100
                },
                "weight_kg": {
                  "description": "Weight of the material in the line, kg.",
                  "type": "number",
                  "minimum": 0
                },
                "value": {
                  "description": "Value of the material in the line, in `currency`.",
                  "type": "number",
                  "minimum": 0
                },
                "origins": {
                  "description": "Where it was produced, by stage: melt_pour (steel), smelt and cast (aluminium, copper), harvest, production; country as ISO-2.",
                  "maxItems": 6,
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "stage": {
                        "type": "string",
                        "maxLength": 20
                      },
                      "country": {
                        "type": "string",
                        "maxLength": 60
                      }
                    },
                    "required": [
                      "stage",
                      "country"
                    ],
                    "additionalProperties": false
                  }
                }
              },
              "required": [
                "material"
              ],
              "additionalProperties": false
            }
          },
          "part_values": {
            "description": "For a line whose rate is charged on parts of the goods (a watch: “6% on the case + 2.8% on the strap, band or bracelet + 5.3% on the battery”): the value of each part, line total in `currency`. Parts: case, strap, battery, movement, apparatus, firearm, sight.",
            "maxItems": 10,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "part": {
                  "type": "string",
                  "maxLength": 20
                },
                "value": {
                  "type": "number",
                  "minimum": 0
                }
              },
              "required": [
                "part",
                "value"
              ],
              "additionalProperties": false
            }
          },
          "claims": {
            "description": "Exemption, relief and declaration codes being claimed (US Chapter 99 exclusions such as 9903.88.69; a declaration a de minimis exemption accepts). Only claim one the importer can justify.",
            "maxItems": 20,
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 20
            }
          }
        },
        "additionalProperties": false
      },
      "annotations": {
        "title": "Calculate landed cost",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": true
      },
      "_meta": {
        "bot.border/spendsCredits": true
      }
    },
    {
      "name": "calculate_cart",
      "title": "Landed cost of a cart",
      "description": "Duties, taxes, fees and the landed cost of a whole cart or order (up to 50 lines) to one destination border.bot covers: the freight shared out by value, one de minimis check, per-entry fees once. Destinations: the 27 EU member states, Monaco, Puerto Rico, San Marino, United States; other countries aren’t covered yet. Each line needs its HS code, country of origin and line value. Costs 1 credit per line.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "destination_country": {
            "description": "Destination country (ISO-2 or name). — ISO 3166-1 alpha-2 code such as \"US\", \"GB\" or \"DE\" (country names also work). When empty, the user is asked.",
            "type": "string",
            "maxLength": 60
          },
          "lines": {
            "minItems": 1,
            "maxItems": 50,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "hs_code": {
                  "type": "string",
                  "maxLength": 20,
                  "description": "HS/HTS code of the line (4–10 digits; dots allowed)."
                },
                "origin_country": {
                  "type": "string",
                  "maxLength": 60,
                  "description": "Where the goods were made (ISO-2 or name)."
                },
                "value": {
                  "type": "number",
                  "exclusiveMinimum": 0,
                  "description": "Total value of the line (price × quantity), in `currency`."
                },
                "quantity": {
                  "description": "Units in the line, default 1.",
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "title": {
                  "description": "What the line is (echoed in the answer).",
                  "type": "string",
                  "maxLength": 200
                },
                "conditions": {
                  "description": "Rate conditions the goods meet, when the destination reserves a rate for them: a kind (pharmaceutical, end_use, certificate, company, quality, route) or the publisher’s code (EU additional code 2500). Only claim one the importer can justify; the rates that could be claimed are listed in the result.",
                  "maxItems": 10,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "maxLength": 20
                  }
                },
                "separate_hs_code": {
                  "description": "For a line whose duty is that of the goods entered on their own (a garment declared under a US ensemble line such as 6103.22.00.50): the code they take on their own (6105.10.00). Section 301 and other duties on the declared line still apply.",
                  "type": "string",
                  "maxLength": 20
                },
                "set_articles": {
                  "description": "For a line whose duty is the rate of the article in the set with the highest rate (a US set of assorted cutlery, 8215.20.00.00): each article in the set with its own code and how many. The set pays the highest of their rates.",
                  "maxItems": 30,
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "hs_code": {
                        "type": "string",
                        "maxLength": 20,
                        "description": "The article’s own code."
                      },
                      "quantity": {
                        "description": "How many of it the set holds.",
                        "type": "integer",
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991
                      },
                      "description": {
                        "description": "What the article is.",
                        "type": "string",
                        "maxLength": 200
                      }
                    },
                    "required": [
                      "hs_code"
                    ],
                    "additionalProperties": false
                  }
                },
                "metal_weight_percent": {
                  "description": "Share of the goods’ own weight that is metal, all metals together (0–100). Under an exemption’s metal limit it applies the exemption on its own (US Section 232: 9903.82.03, the applicable metal under the share its heading sets); 0 means no metal at all (9903.82.01). Give `materials` too for the metal weight CBP asks for with 9903.82.03.",
                  "type": "number",
                  "minimum": 0,
                  "maximum": 100
                },
                "materials": {
                  "description": "What the goods are made of, line totals. Content rules apply from it on their own, as the tariff data sets them: US Section 232 metal under the 9903.82.03 share of the goods’ weight (counting only the metals the line’s lists name, with their weight in kg stated on the entry code), no metal at all (9903.82.01), each metal’s U.S.-melted or smelted share (9903.82.06), Russian-smelted aluminium, and duties on content value (the non-U.S. content of USMCA steel derivatives). Without it the full rate is charged; the result’s contentHints say what to declare.",
                  "maxItems": 20,
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "material": {
                        "type": "string",
                        "maxLength": 40,
                        "description": "Harmonised material: steel, aluminium, copper, wood, component…"
                      },
                      "share_percent": {
                        "description": "Share of the goods’ own weight (0–100).",
                        "type": "number",
                        "minimum": 0,
                        "maximum": 100
                      },
                      "weight_kg": {
                        "description": "Weight of the material in the line, kg.",
                        "type": "number",
                        "minimum": 0
                      },
                      "value": {
                        "description": "Value of the material in the line, in `currency`.",
                        "type": "number",
                        "minimum": 0
                      },
                      "origins": {
                        "description": "Where it was produced, by stage: melt_pour (steel), smelt and cast (aluminium, copper), harvest, production; country as ISO-2.",
                        "maxItems": 6,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "stage": {
                              "type": "string",
                              "maxLength": 20
                            },
                            "country": {
                              "type": "string",
                              "maxLength": 60
                            }
                          },
                          "required": [
                            "stage",
                            "country"
                          ],
                          "additionalProperties": false
                        }
                      }
                    },
                    "required": [
                      "material"
                    ],
                    "additionalProperties": false
                  }
                },
                "part_values": {
                  "description": "For a line whose rate is charged on parts of the goods (a watch: “6% on the case + 2.8% on the strap, band or bracelet + 5.3% on the battery”): the value of each part, line total in `currency`. Parts: case, strap, battery, movement, apparatus, firearm, sight.",
                  "maxItems": 10,
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "part": {
                        "type": "string",
                        "maxLength": 20
                      },
                      "value": {
                        "type": "number",
                        "minimum": 0
                      }
                    },
                    "required": [
                      "part",
                      "value"
                    ],
                    "additionalProperties": false
                  }
                },
                "entry_provision": {
                  "description": "The special provision the goods are entered under, when not their classification alone (US chapter 98): kind repair_abroad (9802.00.40/.50), processing_abroad (9802.00.60), assembled_abroad (9802.00.80), agreement_provision (USMCA subchapter XXIII), returned (9801.00.10) or other, with the provision code and, for repairs, processing or assembly, the dutiable value (the value of the work abroad, line total). Duties the provision is outside of are left out; Section 232 stays charged.",
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "enum": [
                        "repair_abroad",
                        "processing_abroad",
                        "assembled_abroad",
                        "agreement_provision",
                        "returned",
                        "other"
                      ]
                    },
                    "code": {
                      "type": "string",
                      "maxLength": 14
                    },
                    "dutiable_value": {
                      "type": "number",
                      "minimum": 0
                    }
                  },
                  "required": [
                    "kind"
                  ],
                  "additionalProperties": false
                }
              },
              "required": [
                "hs_code",
                "origin_country",
                "value"
              ],
              "additionalProperties": false
            },
            "description": "The cart’s lines."
          },
          "currency": {
            "description": "ISO 4217 currency of every value, default USD.",
            "type": "string",
            "maxLength": 3
          },
          "shipping_cost": {
            "description": "Freight for the whole cart.",
            "type": "number",
            "minimum": 0
          },
          "insurance_cost": {
            "description": "Insurance for the whole cart.",
            "type": "number",
            "minimum": 0
          },
          "region": {
            "description": "State, province or territory, where the destination’s import taxes differ inside the country (a destination that taxes by region refuses a cart without one).",
            "type": "string",
            "maxLength": 6
          },
          "shipping_terms": {
            "description": "Incoterm of the prices (C and D terms already include the carriage).",
            "type": "string",
            "enum": [
              "EXW",
              "FCA",
              "FAS",
              "FOB",
              "CFR",
              "CIF",
              "CPT",
              "CIP",
              "DAP",
              "DPU",
              "DDP"
            ]
          }
        },
        "required": [
          "lines"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Landed cost of a cart",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": true
      },
      "_meta": {
        "bot.border/spendsCredits": true
      }
    },
    {
      "name": "check_restricted_goods",
      "title": "Check restricted & prohibited goods",
      "description": "Check whether a product is prohibited or restricted when shipped to a country: import bans, sanctions tied to where it was made, and agency requirements (e.g. FDA, APHIS) — plus the export rules of the ship-from country when given. Give a product page URL, a description and/or an HS code, plus the destination. Missing details are asked from the user directly (or returned as status \"needs_input\" with the exact questions). Free: no credits are used. Results are guidance — carriers may have their own restrictions.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "description": {
            "description": "What the product is (rules also match on keywords such as \"lithium battery\").",
            "type": "string",
            "maxLength": 2000
          },
          "product_url": {
            "description": "Product page URL (http/https) — read for the title, materials, brand and origin.",
            "type": "string",
            "maxLength": 2048
          },
          "hs_code": {
            "description": "HS code if known (4–10 digits), e.g. \"8507.60\" — needed for HS-based rules.",
            "type": "string",
            "maxLength": 20
          },
          "destination_country": {
            "description": "Where the goods are going (its import rules are checked) — ISO 3166-1 alpha-2 code such as \"US\", \"GB\" or \"DE\" (country names also work). When empty, the user is asked.",
            "type": "string",
            "maxLength": 60
          },
          "origin_country": {
            "description": "Where the product was made — ISO-2 code, or \"unknown\". Drives origin rules such as sanctions. When empty, the user is asked.",
            "type": "string",
            "maxLength": 60
          },
          "ship_from_country": {
            "description": "Country the parcel ships from, if export rules should be checked (optional).",
            "type": "string",
            "maxLength": 60
          }
        },
        "additionalProperties": false
      },
      "annotations": {
        "title": "Check restricted goods",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": true
      },
      "_meta": {
        "bot.border/spendsCredits": false
      }
    },
    {
      "name": "check_agency_filings",
      "title": "Check agency filings (Comply)",
      "description": "For a product and its tariff code, say what each government agency that flags the line needs for it to clear: file a certificate (with the regulations it certifies to, e.g. a CPSC Children’s Product Certificate citing ASTM F963 sections, and any testing exemptions) or disclaim (CPSC Disclaim A or B, with the intended-use code). Each regulation cited comes with what complying takes: third-party testing by an accepted laboratory (CPSC: 16 CFR 1112.15, with a few accepted laboratories, those in the origin country first, and the lab search) and its labelling sections (the wording a rule requires, verbatim, and where it goes); a children’s product certificate also needs the tracking label. Each answer says who the product is for (children or general use) and the rules that may also apply, with their probabilities. Give the destination and a description saying what the product is and who it is for, with its HS code if known (without one, it is classified first and charged as a classification). `agencies` limits the answer (e.g. [\"CPSC\"]). Missing details are asked from the user directly (or returned as status \"needs_input\"). Charged the Comply price per item (refunded if it fails). Rules come from the agency’s own files (US: CPSC eFiling and the CFR); whether one applies is decided for the product and shown with its probability.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "hs_code": {
            "description": "The destination’s tariff code, e.g. \"9503.00.0073\".",
            "type": "string",
            "maxLength": 20
          },
          "description": {
            "description": "What the product is, what it is made of and who it is for (children or adults).",
            "type": "string",
            "maxLength": 2000
          },
          "destination_country": {
            "description": "Where the goods are going (its agencies are checked) — ISO 3166-1 alpha-2 code such as \"US\", \"GB\" or \"DE\" (country names also work). When empty, the user is asked.",
            "type": "string",
            "maxLength": 60
          },
          "origin_country": {
            "description": "Where the goods are made (accepted testing laboratories there are named first) — ISO 3166-1 alpha-2 code such as \"US\", \"GB\" or \"DE\" (country names also work). When empty, the user is asked.",
            "type": "string",
            "maxLength": 60
          },
          "agencies": {
            "description": "Only these agencies, by name or initials (e.g. [\"CPSC\"]); omitted: every agency that flags the line.",
            "maxItems": 20,
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 200
            }
          }
        },
        "additionalProperties": false
      },
      "annotations": {
        "title": "Check agency filings",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": true
      },
      "_meta": {
        "bot.border/spendsCredits": true
      }
    },
    {
      "name": "cross_check",
      "title": "Check everything to cross a border (Cross)",
      "description": "Everything an order needs to cross a border, in one call, per product: its tariff code (classified for the destination when none is given), what the destination prohibits or restricts, what each government agency that flags the line needs (file or disclaim; for the US, CPSC is decided and FDA and the other agencies are flagged for review), and a verdict (clear, action needed, prohibited, review). With a value and an origin for every product, the shipment’s duties, taxes and landed cost too. Give the destination and the products (a description, and the HS code if known; `value` is the line’s total in `currency`). Missing details are asked from the user directly (or returned as status \"needs_input\"). Each part is charged at its own price (classification, restricted goods, agency filings, landed cost) plus the Cross price per product; a part the destination doesn’t cover is skipped and not charged.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "destination_country": {
            "description": "Where the goods are going — ISO 3166-1 alpha-2 code such as \"US\", \"GB\" or \"DE\" (country names also work). When empty, the user is asked.",
            "type": "string",
            "maxLength": 60
          },
          "origin_country": {
            "description": "Where the goods are made or ship from (for products that don’t say) — ISO 3166-1 alpha-2 code such as \"US\", \"GB\" or \"DE\" (country names also work). When empty, the user is asked.",
            "type": "string",
            "maxLength": 60
          },
          "products": {
            "description": "Up to 25 products.",
            "maxItems": 25,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "description": {
                  "description": "What the product is and what it is made of.",
                  "type": "string",
                  "maxLength": 2000
                },
                "hs_code": {
                  "description": "Its tariff code, if known.",
                  "type": "string",
                  "maxLength": 20
                },
                "sku": {
                  "type": "string",
                  "maxLength": 200
                },
                "origin_country": {
                  "description": "Where this product is made.",
                  "type": "string",
                  "maxLength": 60
                },
                "value": {
                  "description": "The line’s total value in `currency`.",
                  "type": "number",
                  "exclusiveMinimum": 0
                },
                "quantity": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                }
              },
              "additionalProperties": false
            }
          },
          "description": {
            "description": "One product, when there is only one.",
            "type": "string",
            "maxLength": 2000
          },
          "hs_code": {
            "description": "That product’s tariff code, if known.",
            "type": "string",
            "maxLength": 20
          },
          "value": {
            "description": "That product’s total value.",
            "type": "number",
            "exclusiveMinimum": 0
          },
          "currency": {
            "description": "The values’ currency (default USD).",
            "type": "string",
            "minLength": 3,
            "maxLength": 3
          },
          "shipping_cost": {
            "type": "number",
            "minimum": 0
          }
        },
        "additionalProperties": false
      },
      "annotations": {
        "title": "Cross: everything to cross a border",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": true
      },
      "_meta": {
        "bot.border/spendsCredits": true
      }
    },
    {
      "name": "screen_party",
      "title": "Screen a person or company",
      "description": "Check a person’s or company’s name against every loaded denied-party list (the US lists — OFAC’s SDN and non-SDN lists, the Entity List, the Denied Persons List… — and the UN, EU, UK, Canadian, Swiss, Japanese and New Zealand sanctions lists where loaded). Exact and fuzzy matches on names and aliases, each with the list that names the party, its kind (sanctions, export control, debarment) and issuer; the check is kept as the workspace’s evidence. Costs the screening price in credits (1 by default), refunded if the check fails. A match is a lead for a person to review, not a verdict: never refuse a customer on a match alone.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 2,
            "maxLength": 500,
            "description": "The person’s or company’s name."
          },
          "company": {
            "description": "A company to screen too.",
            "type": "string",
            "maxLength": 500
          },
          "country": {
            "description": "The party’s country (ISO-2 or name): matches with an address, nationality or flag there are flagged.",
            "type": "string",
            "maxLength": 60
          },
          "reference": {
            "description": "Your reference for the check (an order or customer id).",
            "type": "string",
            "maxLength": 200
          }
        },
        "required": [
          "name"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Screen a person or company",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "_meta": {
        "bot.border/spendsCredits": false
      }
    },
    {
      "name": "inspect_photo",
      "title": "Inspect a photo of goods",
      "description": "Read every item in one photo of goods: name, description, an English customs description, quantity, category, materials, the 6-digit HS subheading (checked against the live tariff), country of origin (a “Made in” read off the item, quoted, or an estimate of where it was made) and an estimated retail price with a range. Each code, origin and value has a probability, and items a person should check are marked with the reasons. Codes stay at six digits: use classify_product for a destination’s national line. Pass a public https photo URL (inline photos rarely fit an MCP request). Costs the Inspect price per photo however many items it finds; refunded if it fails or the photo shows no product. The inspection is kept as the workspace’s evidence with the photo’s hash, never the photo. The value is a market estimate, not the customs value: declare the price paid.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "image_url": {
            "type": "string",
            "maxLength": 8400000,
            "description": "The photo: a public https URL (or a base64 data URL of a JPEG, PNG, WebP or GIF, up to 6 MB)."
          },
          "language": {
            "description": "The language of names and descriptions, as a BCP 47 tag such as \"en\", \"fr\" or \"pt-BR\" (default English).",
            "type": "string",
            "maxLength": 35
          },
          "max_items": {
            "description": "Return at most this many items.",
            "type": "integer",
            "minimum": 1,
            "maximum": 50
          },
          "reference": {
            "description": "Your reference for the inspection (a parcel or order id).",
            "type": "string",
            "maxLength": 200
          }
        },
        "required": [
          "image_url"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Inspect a photo",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": false,
        "openWorldHint": true
      },
      "_meta": {
        "bot.border/spendsCredits": true
      }
    },
    {
      "name": "infer_country_of_origin",
      "title": "Find where a product is made",
      "description": "Estimate a product’s country of origin from everything known about it: its page data, “Made in …” text, a label in its photo, the brand, materials and price, where it ships from and its barcode. Returns the most likely country with a probability, the alternatives and the evidence. Origin drives duty rates (and sanctions), so confirm with the user when it says review is needed.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "title": {
            "description": "Product name.",
            "type": "string",
            "maxLength": 300
          },
          "description": {
            "description": "Product description.",
            "type": "string",
            "maxLength": 2000
          },
          "brand": {
            "type": "string",
            "maxLength": 120
          },
          "product_url": {
            "description": "Product page URL: its data and “Made in …” text are read.",
            "type": "string",
            "maxLength": 2048
          },
          "image_url": {
            "description": "Product photo URL: a visible “Made in …” label is strong evidence.",
            "type": "string",
            "maxLength": 2048
          },
          "gtin": {
            "description": "Barcode (GTIN, UPC, EAN): a weak hint of where the brand registered.",
            "type": "string",
            "maxLength": 14
          },
          "material": {
            "type": "string",
            "maxLength": 300
          },
          "ship_from": {
            "description": "Country the goods ship from (ISO-2 or name).",
            "type": "string",
            "maxLength": 60
          },
          "price": {
            "type": "number",
            "minimum": 0
          },
          "currency": {
            "type": "string",
            "maxLength": 3
          },
          "review_threshold": {
            "description": "When to send it to review (0–1): an origin below this probability, or a declaration with this much evidence against it. Defaults to the workspace’s setting.",
            "type": "number",
            "minimum": 0,
            "maximum": 1
          }
        },
        "additionalProperties": false
      },
      "annotations": {
        "title": "Find country of origin",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": true
      },
      "_meta": {
        "bot.border/spendsCredits": true
      }
    },
    {
      "name": "check_country_of_origin",
      "title": "Check a declared country of origin",
      "description": "Check whether a declared country of origin (from a supplier, a listing or a customs entry) fits everything else known about the product. Returns a verdict, the share of the evidence pointing elsewhere, the likely origin and the reasons. With no evidence either way it says so instead of guessing.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "declared_origin": {
            "type": "string",
            "maxLength": 60,
            "description": "The declared country of origin (ISO-2 or name)."
          },
          "title": {
            "description": "Product name.",
            "type": "string",
            "maxLength": 300
          },
          "description": {
            "description": "Product description.",
            "type": "string",
            "maxLength": 2000
          },
          "brand": {
            "type": "string",
            "maxLength": 120
          },
          "product_url": {
            "description": "Product page URL: its data and “Made in …” text are read.",
            "type": "string",
            "maxLength": 2048
          },
          "image_url": {
            "description": "Product photo URL: a visible “Made in …” label is strong evidence.",
            "type": "string",
            "maxLength": 2048
          },
          "gtin": {
            "description": "Barcode (GTIN, UPC, EAN): a weak hint of where the brand registered.",
            "type": "string",
            "maxLength": 14
          },
          "material": {
            "type": "string",
            "maxLength": 300
          },
          "ship_from": {
            "description": "Country the goods ship from (ISO-2 or name).",
            "type": "string",
            "maxLength": 60
          },
          "price": {
            "type": "number",
            "minimum": 0
          },
          "currency": {
            "type": "string",
            "maxLength": 3
          },
          "review_threshold": {
            "description": "When to send it to review (0–1): an origin below this probability, or a declaration with this much evidence against it. Defaults to the workspace’s setting.",
            "type": "number",
            "minimum": 0,
            "maximum": 1
          }
        },
        "required": [
          "declared_origin"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Check country of origin",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": true
      },
      "_meta": {
        "bot.border/spendsCredits": true
      }
    },
    {
      "name": "get_credit_balance",
      "title": "Get credit balance",
      "description": "Show the credit balance of the border.bot workspace this connection bills.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {},
        "additionalProperties": false
      },
      "annotations": {
        "title": "Credit balance",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "_meta": {
        "bot.border/spendsCredits": false
      }
    },
    {
      "name": "get_pricing",
      "title": "Get pricing",
      "description": "List how many credits each border.bot action uses.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {},
        "additionalProperties": false
      },
      "annotations": {
        "title": "Pricing",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "_meta": {
        "bot.border/spendsCredits": false
      }
    },
    {
      "name": "list_supported_countries",
      "title": "List supported countries",
      "description": "Look up country codes and coverage: which destinations border.bot classifies for and the code list each is answered in (the destination’s own tariff where border.bot has one: the US HTS and EU TARIC at 10 digits; 6-digit HS for other countries when that is switched on), and which destinations landed-cost calculation covers.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "search": {
            "description": "Filter by country name or code, e.g. \"korea\" or \"KR\".",
            "type": "string",
            "maxLength": 60
          }
        },
        "additionalProperties": false
      },
      "annotations": {
        "title": "Supported countries",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "_meta": {
        "bot.border/spendsCredits": false
      }
    },
    {
      "name": "extract_product_page",
      "title": "Read a product page",
      "description": "Read a product page URL and extract its title, brand, price, materials, images and any stated country of origin. Free unless your workspace pricing says otherwise.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "maxLength": 2048,
            "description": "The product page URL (http or https)."
          }
        },
        "required": [
          "url"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Read product page",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": true
      },
      "_meta": {
        "bot.border/spendsCredits": true
      }
    },
    {
      "name": "create_air_waybill",
      "title": "Air waybill PDF",
      "description": "Generate a master or house air waybill as a PDF on the IATA Resolution 600a face, with the 600b conditions of contract after each copy: 3 originals or the full set of 8. A master waybill needs the carrier’s 3-digit prefix and its allocated 8-digit serial (the last digit is the first seven mod 7); a house waybill takes the forwarder’s own number and the master in masterNumber. Airports are IATA codes, countries ISO-2, text in Latin script. Chargeable weights and totals are worked out when left out. The PDF is a draft until the issuing carrier or its agent signs it; no airline, agent or authority is bound to accept it, and the person stays responsible for its contents (border.bot Terms, Shipping documents: https://border.bot/legal/terms#shipping-documents). Costs 1 credit.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "kind": {
            "default": "master",
            "type": "string",
            "enum": [
              "master",
              "house"
            ]
          },
          "prefix": {
            "type": "string",
            "pattern": "^\\d{3}$"
          },
          "number": {
            "type": "string",
            "minLength": 1,
            "maxLength": 20
          },
          "masterNumber": {
            "type": "string",
            "maxLength": 14
          },
          "shipper": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1
              },
              "address": {
                "type": "string",
                "minLength": 1
              },
              "city": {
                "type": "string",
                "minLength": 1
              },
              "postcode": {
                "type": "string",
                "maxLength": 12
              },
              "country": {
                "type": "string",
                "pattern": "^[A-Z]{2}$"
              },
              "phone": {
                "type": "string",
                "maxLength": 25
              },
              "account": {
                "type": "string",
                "maxLength": 14
              }
            },
            "required": [
              "name",
              "address",
              "city",
              "country"
            ],
            "additionalProperties": false
          },
          "consignee": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1
              },
              "address": {
                "type": "string",
                "minLength": 1
              },
              "city": {
                "type": "string",
                "minLength": 1
              },
              "postcode": {
                "type": "string",
                "maxLength": 12
              },
              "country": {
                "type": "string",
                "pattern": "^[A-Z]{2}$"
              },
              "phone": {
                "type": "string",
                "maxLength": 25
              },
              "account": {
                "type": "string",
                "maxLength": 14
              }
            },
            "required": [
              "name",
              "address",
              "city",
              "country"
            ],
            "additionalProperties": false
          },
          "issuer": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1
              },
              "address": {
                "type": "string",
                "maxLength": 120
              }
            },
            "required": [
              "name"
            ],
            "additionalProperties": false
          },
          "agent": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "maxLength": 60
              },
              "city": {
                "type": "string",
                "maxLength": 40
              },
              "iataCode": {
                "type": "string",
                "maxLength": 14
              },
              "account": {
                "type": "string",
                "maxLength": 14
              }
            },
            "additionalProperties": false
          },
          "accountingInformation": {
            "type": "string",
            "maxLength": 160
          },
          "departure": {
            "type": "string",
            "pattern": "^[A-Z]{3}$"
          },
          "departureName": {
            "type": "string",
            "maxLength": 40
          },
          "destination": {
            "type": "string",
            "pattern": "^[A-Z]{3}$"
          },
          "destinationName": {
            "type": "string",
            "maxLength": 30
          },
          "routing": {
            "default": [],
            "maxItems": 3,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "to": {
                  "type": "string",
                  "pattern": "^[A-Z]{3}$"
                },
                "by": {
                  "type": "string",
                  "pattern": "^[A-Z0-9]{2}$"
                }
              },
              "required": [
                "to",
                "by"
              ],
              "additionalProperties": false
            }
          },
          "firstCarrierName": {
            "type": "string",
            "maxLength": 40
          },
          "flights": {
            "default": [],
            "maxItems": 2,
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 14
            }
          },
          "referenceNumber": {
            "type": "string",
            "maxLength": 20
          },
          "optionalShippingInformation": {
            "type": "string",
            "maxLength": 30
          },
          "currency": {
            "type": "string",
            "pattern": "^[A-Z]{3}$"
          },
          "weightValuation": {
            "default": "PP",
            "type": "string",
            "enum": [
              "PP",
              "CC"
            ]
          },
          "otherChargesPaid": {
            "default": "PP",
            "type": "string",
            "enum": [
              "PP",
              "CC"
            ]
          },
          "declaredValueCarriage": {
            "type": "number",
            "minimum": 0,
            "maximum": 99999999
          },
          "declaredValueCustoms": {
            "type": "number",
            "minimum": 0,
            "maximum": 99999999
          },
          "insurance": {
            "type": "number",
            "minimum": 0,
            "maximum": 99999999
          },
          "handlingInformation": {
            "type": "string",
            "maxLength": 240
          },
          "sci": {
            "type": "string",
            "maxLength": 4
          },
          "weightUnit": {
            "default": "kg",
            "type": "string",
            "enum": [
              "kg",
              "lb"
            ]
          },
          "dimensionUnit": {
            "default": "cm",
            "type": "string",
            "enum": [
              "cm",
              "in"
            ]
          },
          "volumeDivisor": {
            "default": 6000,
            "type": "integer",
            "minimum": 1000,
            "maximum": 10000
          },
          "lines": {
            "minItems": 1,
            "maxItems": 4,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "pieces": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 99999
                },
                "rcp": {
                  "type": "string",
                  "pattern": "^[A-Z]{3}$"
                },
                "grossWeight": {
                  "type": "number",
                  "exclusiveMinimum": 0,
                  "maximum": 999999
                },
                "rateClass": {
                  "type": "string",
                  "enum": [
                    "M",
                    "N",
                    "Q",
                    "B",
                    "K",
                    "C",
                    "R",
                    "S",
                    "U",
                    "E",
                    "X",
                    "Y",
                    "W"
                  ]
                },
                "commodityItem": {
                  "type": "string",
                  "maxLength": 7
                },
                "chargeableWeight": {
                  "type": "number",
                  "exclusiveMinimum": 0,
                  "maximum": 999999
                },
                "rate": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 99999999
                },
                "total": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 99999999
                },
                "description": {
                  "type": "string",
                  "minLength": 1
                },
                "dimensions": {
                  "default": [],
                  "maxItems": 20,
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "pieces": {
                        "type": "integer",
                        "exclusiveMinimum": 0,
                        "maximum": 9999
                      },
                      "length": {
                        "type": "number",
                        "exclusiveMinimum": 0,
                        "maximum": 9999
                      },
                      "width": {
                        "type": "number",
                        "exclusiveMinimum": 0,
                        "maximum": 9999
                      },
                      "height": {
                        "type": "number",
                        "exclusiveMinimum": 0,
                        "maximum": 9999
                      }
                    },
                    "required": [
                      "pieces",
                      "length",
                      "width",
                      "height"
                    ],
                    "additionalProperties": false
                  }
                },
                "hsCodes": {
                  "default": [],
                  "maxItems": 6,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "pattern": "^\\d{6,10}$"
                  }
                }
              },
              "required": [
                "pieces",
                "grossWeight",
                "description",
                "dimensions",
                "hsCodes"
              ],
              "additionalProperties": false
            }
          },
          "otherCharges": {
            "default": [],
            "maxItems": 8,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string",
                  "pattern": "^[A-Z]{2}$"
                },
                "dueTo": {
                  "type": "string",
                  "enum": [
                    "A",
                    "C"
                  ]
                },
                "amount": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 99999999
                }
              },
              "required": [
                "code",
                "dueTo",
                "amount"
              ],
              "additionalProperties": false
            }
          },
          "valuationCharge": {
            "type": "number",
            "minimum": 0,
            "maximum": 99999999
          },
          "tax": {
            "type": "number",
            "minimum": 0,
            "maximum": 99999999
          },
          "shipperSignature": {
            "type": "string",
            "maxLength": 40
          },
          "executedOn": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
          },
          "executedAt": {
            "type": "string",
            "minLength": 1
          },
          "carrierSignature": {
            "type": "string",
            "maxLength": 40
          },
          "copies": {
            "default": "originals",
            "type": "string",
            "enum": [
              "originals",
              "full"
            ]
          },
          "conditions": {
            "default": true,
            "type": "boolean"
          }
        },
        "required": [
          "kind",
          "number",
          "shipper",
          "consignee",
          "issuer",
          "agent",
          "departure",
          "destination",
          "routing",
          "flights",
          "currency",
          "weightValuation",
          "otherChargesPaid",
          "weightUnit",
          "dimensionUnit",
          "volumeDivisor",
          "lines",
          "otherCharges",
          "executedOn",
          "executedAt",
          "copies",
          "conditions"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Air waybill PDF",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "_meta": {
        "bot.border/spendsCredits": true
      }
    },
    {
      "name": "create_commercial_invoice",
      "title": "Commercial invoice PDF",
      "description": "Generate a commercial invoice (goods sold) or pro forma invoice (gifts, samples, returns, repairs: kind proforma) as a PDF for customs and couriers. Give the exporter and consignee (and buyer or importer of record when they differ) with their tax references as label and value (EORI, VAT, EIN…), the currency, and one line per article: a detailed description (what it is, what it is made of; general words like “parts” or “samples” are refused), HS code (6 to 10 digits; use classify_product when unknown), country of origin (ISO-2), quantity and unit price. Totals are worked out; freight, insurance and packing are itemised. Text in Latin script. The person makes the declaration and signs it; border.bot doesn’t check, value or file anything, and no carrier or authority is bound to accept it (border.bot Terms, Shipping documents: https://border.bot/legal/terms#shipping-documents). Costs 1 credit.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "kind": {
            "default": "commercial",
            "type": "string",
            "enum": [
              "commercial",
              "proforma"
            ]
          },
          "number": {
            "type": "string",
            "minLength": 1
          },
          "date": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
          },
          "orderReference": {
            "type": "string",
            "maxLength": 40
          },
          "exporter": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1
              },
              "contact": {
                "type": "string",
                "maxLength": 50
              },
              "address": {
                "type": "string",
                "minLength": 1
              },
              "city": {
                "type": "string",
                "minLength": 1
              },
              "postcode": {
                "type": "string",
                "maxLength": 12
              },
              "region": {
                "type": "string",
                "maxLength": 40
              },
              "country": {
                "type": "string",
                "pattern": "^[A-Z]{2}$"
              },
              "phone": {
                "type": "string",
                "maxLength": 25
              },
              "email": {
                "type": "string",
                "maxLength": 80
              },
              "taxReferences": {
                "default": [],
                "maxItems": 4,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "label": {
                      "type": "string",
                      "minLength": 1
                    },
                    "value": {
                      "type": "string",
                      "minLength": 1
                    }
                  },
                  "required": [
                    "label",
                    "value"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "name",
              "address",
              "city",
              "country",
              "taxReferences"
            ],
            "additionalProperties": false
          },
          "consignee": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1
              },
              "contact": {
                "type": "string",
                "maxLength": 50
              },
              "address": {
                "type": "string",
                "minLength": 1
              },
              "city": {
                "type": "string",
                "minLength": 1
              },
              "postcode": {
                "type": "string",
                "maxLength": 12
              },
              "region": {
                "type": "string",
                "maxLength": 40
              },
              "country": {
                "type": "string",
                "pattern": "^[A-Z]{2}$"
              },
              "phone": {
                "type": "string",
                "maxLength": 25
              },
              "email": {
                "type": "string",
                "maxLength": 80
              },
              "taxReferences": {
                "default": [],
                "maxItems": 4,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "label": {
                      "type": "string",
                      "minLength": 1
                    },
                    "value": {
                      "type": "string",
                      "minLength": 1
                    }
                  },
                  "required": [
                    "label",
                    "value"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "name",
              "address",
              "city",
              "country",
              "taxReferences"
            ],
            "additionalProperties": false
          },
          "buyer": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1
              },
              "contact": {
                "type": "string",
                "maxLength": 50
              },
              "address": {
                "type": "string",
                "minLength": 1
              },
              "city": {
                "type": "string",
                "minLength": 1
              },
              "postcode": {
                "type": "string",
                "maxLength": 12
              },
              "region": {
                "type": "string",
                "maxLength": 40
              },
              "country": {
                "type": "string",
                "pattern": "^[A-Z]{2}$"
              },
              "phone": {
                "type": "string",
                "maxLength": 25
              },
              "email": {
                "type": "string",
                "maxLength": 80
              },
              "taxReferences": {
                "default": [],
                "maxItems": 4,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "label": {
                      "type": "string",
                      "minLength": 1
                    },
                    "value": {
                      "type": "string",
                      "minLength": 1
                    }
                  },
                  "required": [
                    "label",
                    "value"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "name",
              "address",
              "city",
              "country",
              "taxReferences"
            ],
            "additionalProperties": false
          },
          "importer": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1
              },
              "contact": {
                "type": "string",
                "maxLength": 50
              },
              "address": {
                "type": "string",
                "minLength": 1
              },
              "city": {
                "type": "string",
                "minLength": 1
              },
              "postcode": {
                "type": "string",
                "maxLength": 12
              },
              "region": {
                "type": "string",
                "maxLength": 40
              },
              "country": {
                "type": "string",
                "pattern": "^[A-Z]{2}$"
              },
              "phone": {
                "type": "string",
                "maxLength": 25
              },
              "email": {
                "type": "string",
                "maxLength": 80
              },
              "taxReferences": {
                "default": [],
                "maxItems": 4,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "label": {
                      "type": "string",
                      "minLength": 1
                    },
                    "value": {
                      "type": "string",
                      "minLength": 1
                    }
                  },
                  "required": [
                    "label",
                    "value"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "name",
              "address",
              "city",
              "country",
              "taxReferences"
            ],
            "additionalProperties": false
          },
          "reasonForExport": {
            "default": "sale",
            "type": "string",
            "enum": [
              "sale",
              "gift",
              "sample",
              "return",
              "repair",
              "personal",
              "other"
            ]
          },
          "reasonDetail": {
            "type": "string",
            "maxLength": 80
          },
          "incoterm": {
            "type": "string",
            "enum": [
              "EXW",
              "FCA",
              "CPT",
              "CIP",
              "DAP",
              "DPU",
              "DDP",
              "FAS",
              "FOB",
              "CFR",
              "CIF"
            ]
          },
          "incotermPlace": {
            "type": "string",
            "maxLength": 40
          },
          "currency": {
            "type": "string",
            "pattern": "^[A-Z]{3}$"
          },
          "paymentTerms": {
            "type": "string",
            "maxLength": 60
          },
          "carrier": {
            "type": "string",
            "maxLength": 40
          },
          "trackingNumber": {
            "type": "string",
            "maxLength": 40
          },
          "packages": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 99999
          },
          "weightUnit": {
            "default": "kg",
            "type": "string",
            "enum": [
              "kg",
              "lb"
            ]
          },
          "grossWeight": {
            "type": "number",
            "exclusiveMinimum": 0,
            "maximum": 999999
          },
          "netWeight": {
            "type": "number",
            "exclusiveMinimum": 0,
            "maximum": 999999
          },
          "portOfEntry": {
            "type": "string",
            "maxLength": 40
          },
          "marks": {
            "type": "string",
            "maxLength": 120
          },
          "lines": {
            "minItems": 1,
            "maxItems": 200,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "description": {
                  "type": "string",
                  "minLength": 1
                },
                "sku": {
                  "type": "string",
                  "maxLength": 30
                },
                "hsCode": {
                  "type": "string",
                  "maxLength": 16
                },
                "origin": {
                  "type": "string",
                  "pattern": "^[A-Z]{2}$"
                },
                "quantity": {
                  "type": "number",
                  "exclusiveMinimum": 0,
                  "maximum": 9999999
                },
                "unit": {
                  "type": "string",
                  "maxLength": 10
                },
                "unitPrice": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 99999999
                },
                "netWeight": {
                  "type": "number",
                  "exclusiveMinimum": 0,
                  "maximum": 999999
                }
              },
              "required": [
                "description",
                "origin",
                "quantity",
                "unitPrice"
              ],
              "additionalProperties": false
            }
          },
          "freight": {
            "type": "number",
            "minimum": 0,
            "maximum": 99999999
          },
          "insurance": {
            "type": "number",
            "minimum": 0,
            "maximum": 99999999
          },
          "packing": {
            "type": "number",
            "minimum": 0,
            "maximum": 99999999
          },
          "otherCharges": {
            "type": "number",
            "minimum": 0,
            "maximum": 99999999
          },
          "otherChargesLabel": {
            "type": "string",
            "maxLength": 30
          },
          "discount": {
            "type": "number",
            "minimum": 0,
            "maximum": 99999999
          },
          "declarations": {
            "type": "string",
            "maxLength": 600
          },
          "signatory": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1
              },
              "title": {
                "type": "string",
                "maxLength": 40
              },
              "place": {
                "type": "string",
                "maxLength": 40
              }
            },
            "required": [
              "name"
            ],
            "additionalProperties": false
          },
          "paper": {
            "default": "a4",
            "type": "string",
            "enum": [
              "a4",
              "letter"
            ]
          },
          "copies": {
            "default": 1,
            "type": "integer",
            "minimum": 1,
            "maximum": 3
          }
        },
        "required": [
          "kind",
          "number",
          "date",
          "exporter",
          "consignee",
          "reasonForExport",
          "currency",
          "weightUnit",
          "lines",
          "signatory",
          "paper",
          "copies"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Commercial invoice PDF",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "_meta": {
        "bot.border/spendsCredits": true
      }
    },
    {
      "name": "search_catalog",
      "title": "Search the product catalogue",
      "description": "Find products in the workspace’s catalogue by words or a SKU prefix, or those missing an approved tariff code for a market, or with a code waiting for review. Free.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "query": {
            "description": "Words in the title, brand or description, or the start of a SKU.",
            "type": "string",
            "maxLength": 200
          },
          "missing_code_for": {
            "description": "Only products with no approved code for this market (ISO-2 or name).",
            "type": "string",
            "maxLength": 60
          },
          "needs_review": {
            "description": "Only products with a suggested code waiting for review.",
            "type": "boolean"
          },
          "origin_country": {
            "description": "Only products made in this country.",
            "type": "string",
            "maxLength": 60
          },
          "limit": {
            "description": "How many (default 20).",
            "type": "integer",
            "minimum": 1,
            "maximum": 50
          }
        },
        "additionalProperties": false
      },
      "annotations": {
        "title": "Search the product catalogue",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "_meta": {
        "bot.border/spendsCredits": false
      }
    },
    {
      "name": "get_catalog_product",
      "title": "A catalogue product",
      "description": "One product of the workspace’s catalogue, by id or SKU: its items, origin, content (materials and where they were produced), sources and tariff codes per market. Free.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "product_id": {
            "description": "The product’s id.",
            "type": "string",
            "maxLength": 60
          },
          "sku": {
            "description": "Or one of its SKUs.",
            "type": "string",
            "maxLength": 120
          }
        },
        "additionalProperties": false
      },
      "annotations": {
        "title": "A catalogue product",
        "readOnlyHint": true,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "_meta": {
        "bot.border/spendsCredits": false
      }
    },
    {
      "name": "upsert_catalog_product",
      "title": "Add or change a catalogue product",
      "description": "Add a product to the workspace’s catalogue, or change the one with this SKU: title, description, brand, country of origin, value, weight, target markets and what it is made of (metal content and where it was melted, smelted or cast lowers US Section 232 duty when declared). Only the fields given change; every change is kept in the product’s history. Free.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "sku": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "description": "The item’s SKU (finds the product to change)."
          },
          "title": {
            "description": "Product name (needed for a new product).",
            "type": "string",
            "maxLength": 500
          },
          "description": {
            "type": "string",
            "maxLength": 5000
          },
          "brand": {
            "type": "string",
            "maxLength": 200
          },
          "origin_country": {
            "description": "Where it is made (ISO-2 or name).",
            "type": "string",
            "maxLength": 60
          },
          "unit_value": {
            "description": "Value of one unit.",
            "type": "number",
            "minimum": 0
          },
          "currency": {
            "description": "ISO 4217 currency of the value (default USD).",
            "type": "string",
            "maxLength": 3
          },
          "weight_kg": {
            "description": "Weight of one unit, in kg.",
            "type": "number",
            "minimum": 0
          },
          "markets": {
            "description": "Destinations it ships to.",
            "maxItems": 30,
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 60
            }
          },
          "materials": {
            "description": "What it is made of (replaces the list).",
            "maxItems": 10,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "material": {
                  "type": "string",
                  "maxLength": 40,
                  "description": "steel, aluminium, copper, wood, plastic, textile, component…"
                },
                "share_percent": {
                  "description": "Share of one unit’s weight.",
                  "type": "number",
                  "minimum": 0,
                  "maximum": 100
                },
                "weight_kg": {
                  "description": "Weight in one unit, in kg.",
                  "type": "number",
                  "minimum": 0
                },
                "value": {
                  "description": "Value in one unit (in the item’s currency).",
                  "type": "number",
                  "minimum": 0
                },
                "melted_poured_in": {
                  "description": "Steel: country where it was melted and poured.",
                  "type": "string",
                  "maxLength": 60
                },
                "smelted_in": {
                  "description": "Aluminium or copper: country of (primary) smelt.",
                  "type": "string",
                  "maxLength": 60
                },
                "cast_in": {
                  "description": "Aluminium or copper: country where it was most recently cast.",
                  "type": "string",
                  "maxLength": 60
                },
                "produced_in": {
                  "description": "Other materials or parts: where produced.",
                  "type": "string",
                  "maxLength": 60
                }
              },
              "required": [
                "material"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "sku"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Add or change a catalogue product",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "_meta": {
        "bot.border/spendsCredits": true
      }
    },
    {
      "name": "quote_by_sku",
      "title": "Landed cost of catalogue products",
      "description": "Duties, taxes, fees and the landed cost of a cart of catalogue products (by SKU and quantity) to one destination: each product’s approved code for the destination, its origin, value, weight and declared content are used. A product without an approved code for the destination is refused without charging (classify and approve it first). Costs 1 credit per line.",
      "inputSchema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "destination_country": {
            "type": "string",
            "maxLength": 60,
            "description": "Destination country (ISO-2 or name)."
          },
          "lines": {
            "minItems": 1,
            "maxItems": 50,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "sku": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 120
                },
                "quantity": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 1000000
                },
                "value": {
                  "description": "The line’s total value, when it differs from unit value × quantity.",
                  "type": "number",
                  "exclusiveMinimum": 0
                }
              },
              "required": [
                "sku"
              ],
              "additionalProperties": false
            }
          },
          "currency": {
            "description": "ISO 4217 currency of the values (default USD).",
            "type": "string",
            "maxLength": 3
          },
          "shipping_cost": {
            "type": "number",
            "minimum": 0
          },
          "region": {
            "description": "State, province or territory, where the destination’s import taxes differ inside the country (a destination that taxes by region refuses a cart without one).",
            "type": "string",
            "maxLength": 6
          }
        },
        "required": [
          "destination_country",
          "lines"
        ],
        "additionalProperties": false
      },
      "annotations": {
        "title": "Landed cost of catalogue products",
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      },
      "_meta": {
        "bot.border/spendsCredits": true
      }
    }
  ]
}