Skip to main content
Glama

International Customs Data

international_customs
DestructiveIdempotent

Read, or add to, the customs data on a booked international order: hazmat confirmation, commodities (Schedule B / HTS / HS codes, values, country of origin), EEI authorization or ITN. Omit customs and update to read what is saved, including what is still missing. Pass customs to merge fields in; the forwarder is notified, invalid optional values come back in warnings, and sanctioned parties are rejected. Auth required. Tax ids, importer of record, customs bond, importer registration and ISF are added by the customer in the Warp portal after booking; do not ask for them here.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "order_id": "<order_id>"
    },
    "name": "international_customs"
  }
}

Input Schema

NameRequiredDescriptionDefault
customsNoCustoms fields to add or correct: hazmat confirmation, EEI choice and commodity lines
order_idYesOrder id or order number (P-xxxxx-xxxx)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changed
    • changedInput schema / properties / customs / description
      Previous value: -"Customs fields to add or correct"New value: +"Customs fields to add or correct: hazmat confirmation, EEI choice and commodity lines"
    • removedInput schema / properties / customs / properties / consignee_tax_id
      Removed value: -{
      -  "description": "Consignee tax id in its country's format",
      -  "type": "string"
      -}
    • removedInput schema / properties / customs / properties / customs_bond
      Removed value: -{
      -  "description": "US imports: customs bond number",
      -  "type": "string"
      -}
    • removedInput schema / properties / customs / properties / exporter_of_record
      Removed value: -{
      -  "additionalProperties": false,
      -  "description": "Only when someone other than the shipper is the exporter of record",
      -  "properties": {
      -    "city": {
      -      "type": "string"
      -    },
      -    "contact_name": {
      -      "type": "string"
      -    },
      -    "country": {
      -      "pattern": "^[A-Za-z]{2}$",
      -      "type": "string"
      -    },
      -    "email": {
      -      "type": "string"
      -    },
      -    "name": {
      -      "description": "Company name, Latin characters",
      -      "type": "string"
      -    },
      -    "phone": {
      -      "description": "International format, e.g. +862150000000",
      -      "type": "string"
      -    },
      -    "state": {
      -      "type": "string"
      -    },
      -    "street": {
      -      "type": "string"
      -    },
      -    "street2": {
      -      "type": "string"
      -    },
      -    "tax_id": {
      -      "description": "Tax id in the party's country format (US: EIN)",
      -      "type": "string"
      -    },
      -    "zipcode": {
      -      "description": "Required where the country uses postal codes",
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "name",
      -    "street",
      -    "city",
      -    "country",
      -    "contact_name",
      -    "phone"
      -  ],
      -  "type": "object"
      -}
    • removedInput schema / properties / customs / properties / importer_of_record
      Removed value: -{
      -  "additionalProperties": false,
      -  "description": "Only when someone other than the consignee is the importer of record (e.g. the seller or a broker clears import)",
      -  "properties": {
      -    "city": {
      -      "type": "string"
      -    },
      -    "contact_name": {
      -      "type": "string"
      -    },
      -    "country": {
      -      "pattern": "^[A-Za-z]{2}$",
      -      "type": "string"
      -    },
      -    "email": {
      -      "type": "string"
      -    },
      -    "name": {
      -      "description": "Company name, Latin characters",
      -      "type": "string"
      -    },
      -    "phone": {
      -      "description": "International format, e.g. +862150000000",
      -      "type": "string"
      -    },
      -    "state": {
      -      "type": "string"
      -    },
      -    "street": {
      -      "type": "string"
      -    },
      -    "street2": {
      -      "type": "string"
      -    },
      -    "tax_id": {
      -      "description": "Tax id in the party's country format (US: EIN)",
      -      "type": "string"
      -    },
      -    "zipcode": {
      -      "description": "Required where the country uses postal codes",
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "name",
      -    "street",
      -    "city",
      -    "country",
      -    "contact_name",
      -    "phone"
      -  ],
      -  "type": "object"
      -}
    • removedInput schema / properties / customs / properties / importer_of_record_number
      Removed value: -{
      -  "description": "US imports: the consignee's importer of record number (EIN or CBP number YYDDPP-NNNNN)",
      -  "type": "string"
      -}
    • removedInput schema / properties / customs / properties / importer_registration_number
      Removed value: -{
      -  "description": "Destination importer registration: Brazil CNPJ (14 digits) or CPF (11), Colombia NIT, Argentina CUIT (11 digits), Nigeria Form M (MF + 8-12 digits)",
      -  "type": "string"
      -}
    • removedInput schema / properties / customs / properties / isf
      Removed value: -{
      -  "additionalProperties": false,
      -  "description": "Ocean imports into the US only: Importer Security Filing (10+2) parties. The forwarder files it with the customer after booking; country of origin and HTS come from commodities.",
      -  "properties": {
      -    "buyer": {
      -      "additionalProperties": false,
      -      "properties": {
      -        "address": {
      -          "description": "One-line address",
      -          "type": "string"
      -        },
      -        "country": {
      -          "pattern": "^[A-Za-z]{2}$",
      -          "type": "string"
      -        },
      -        "name": {
      -          "type": "string"
      -        }
      -      },
      -      "required": [
      -        "name",
      -        "address",
      -        "country"
      -      ],
      -      "type": "object"
      -    },
      -    "consignee_number": {
      -      "type": "string"
      -    },
      -    "consolidator": {
      -      "additionalProperties": false,
      -      "properties": {
      -        "address": {
      -          "description": "One-line address",
      -          "type": "string"
      -        },
      -        "country": {
      -          "pattern": "^[A-Za-z]{2}$",
      -          "type": "string"
      -        },
      -        "name": {
      -          "type": "string"
      -        }
      -      },
      -      "required": [
      -        "name",
      -        "address",
      -        "country"
      -      ],
      -      "type": "object"
      -    },
      -    "container_stuffing_location": {
      -      "additionalProperties": false,
      -      "properties": {
      -        "address": {
      -          "description": "One-line address",
      -          "type": "string"
      -        },
      -        "country": {
      -          "pattern": "^[A-Za-z]{2}$",
      -          "type": "string"
      -        },
      -        "name": {
      -          "type": "string"
      -        }
      -      },
      -      "required": [
      -        "name",
      -        "address",
      -        "country"
      -      ],
      -      "type": "object"
      -    },
      -    "importer_of_record_number": {
      -      "type": "string"
      -    },
      -    "manufacturer": {
      -      "additionalProperties": false,
      -      "properties": {
      -        "address": {
      -          "description": "One-line address",
      -          "type": "string"
      -        },
      -        "country": {
      -          "pattern": "^[A-Za-z]{2}$",
      -          "type": "string"
      -        },
      -        "name": {
      -          "type": "string"
      -        }
      -      },
      -      "required": [
      -        "name",
      -        "address",
      -        "country"
      -      ],
      -      "type": "object"
      -    },
      -    "seller": {
      -      "additionalProperties": false,
      -      "properties": {
      -        "address": {
      -          "description": "One-line address",
      -          "type": "string"
      -        },
      -        "country": {
      -          "pattern": "^[A-Za-z]{2}$",
      -          "type": "string"
      -        },
      -        "name": {
      -          "type": "string"
      -        }
      -      },
      -      "required": [
      -        "name",
      -        "address",
      -        "country"
      -      ],
      -      "type": "object"
      -    },
      -    "ship_to": {
      -      "additionalProperties": false,
      -      "properties": {
      -        "address": {
      -          "description": "One-line address",
      -          "type": "string"
      -        },
      -        "country": {
      -          "pattern": "^[A-Za-z]{2}$",
      -          "type": "string"
      -        },
      -        "name": {
      -          "type": "string"
      -        }
      -      },
      -      "required": [
      -        "name",
      -        "address",
      -        "country"
      -      ],
      -      "type": "object"
      -    }
      -  },
      -  "type": "object"
      -}
    • removedInput schema / properties / customs / properties / shipper_tax_id
      Removed value: -{
      -  "description": "Shipper tax id. US exports: the EIN (9 digits); if omitted, the EIN on the account's customs profile is used.",
      -  "type": "string"
      -}
    • removedInput schema / properties / update
      Removed value: -{
      -  "additionalProperties": {},
      -  "description": "Advanced: raw fields in gw's internationalInfo shape, merged over customs",
      -  "type": "object"
      -}
  2. Changed2 schema fields changed
    • addedInput schema / properties / customs
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Customs fields to add or correct",
      +  "properties": {
      +    "commodities": {
      +      "description": "One line per kind of goods. A line with description, code, country of origin, value, quantity and weight is complete; anything missing is collected by the forwarder after booking.",
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "country_of_origin": {
      +            "description": "Where the goods were made, ISO alpha-2",
      +            "pattern": "^[A-Za-z]{2}$",
      +            "type": "string"
      +          },
      +          "description": {
      +            "description": "Plain description of the goods",
      +            "type": "string"
      +          },
      +          "eccn": {
      +            "description": "US exports: ECCN; leave empty for EAR99 goods",
      +            "type": "string"
      +          },
      +          "hs_code": {
      +            "description": "No US end (between two other countries): 6-10 digit HS code",
      +            "type": "string"
      +          },
      +          "hts_code": {
      +            "description": "US imports: 10-digit HTS code",
      +            "type": "string"
      +          },
      +          "license_type": {
      +            "description": "US exports: license type or exception, e.g. NLR",
      +            "type": "string"
      +          },
      +          "quantity": {
      +            "minimum": 1,
      +            "type": "integer"
      +          },
      +          "schedule_b": {
      +            "description": "US exports: 10-digit Schedule B code",
      +            "type": "string"
      +          },
      +          "value_usd": {
      +            "description": "Total value of this line, USD",
      +            "minimum": 0,
      +            "type": "number"
      +          },
      +          "weight_lbs": {
      +            "description": "Total weight of this line, lb",
      +            "exclusiveMinimum": 0,
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "description"
      +        ],
      +        "type": "object"
      +      },
      +      "maxItems": 50,
      +      "type": "array"
      +    },
      +    "consignee_tax_id": {
      +      "description": "Consignee tax id in its country's format",
      +      "type": "string"
      +    },
      +    "customs_bond": {
      +      "description": "US imports: customs bond number",
      +      "type": "string"
      +    },
      +    "ear99_no_license": {
      +      "description": "US exports: every item is EAR99 and needs no export license",
      +      "type": "boolean"
      +    },
      +    "eei_authorization": {
      +      "description": "US exports: the shipper authorizes the forwarder to file the EEI in AES. Needed when any one Schedule B line is over $2,500 or a license is required, unless an ITN is given.",
      +      "type": "boolean"
      +    },
      +    "exporter_of_record": {
      +      "additionalProperties": false,
      +      "description": "Only when someone other than the shipper is the exporter of record",
      +      "properties": {
      +        "city": {
      +          "type": "string"
      +        },
      +        "contact_name": {
      +          "type": "string"
      +        },
      +        "country": {
      +          "pattern": "^[A-Za-z]{2}$",
      +          "type": "string"
      +        },
      +        "email": {
      +          "type": "string"
      +        },
      +        "name": {
      +          "description": "Company name, Latin characters",
      +          "type": "string"
      +        },
      +        "phone": {
      +          "description": "International format, e.g. +862150000000",
      +          "type": "string"
      +        },
      +        "state": {
      +          "type": "string"
      +        },
      +        "street": {
      +          "type": "string"
      +        },
      +        "street2": {
      +          "type": "string"
      +        },
      +        "tax_id": {
      +          "description": "Tax id in the party's country format (US: EIN)",
      +          "type": "string"
      +        },
      +        "zipcode": {
      +          "description": "Required where the country uses postal codes",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "name",
      +        "street",
      +        "city",
      +        "country",
      +        "contact_name",
      +        "phone"
      +      ],
      +      "type": "object"
      +    },
      +    "importer_of_record": {
      +      "additionalProperties": false,
      +      "description": "Only when someone other than the consignee is the importer of record (e.g. the seller or a broker clears import)",
      +      "properties": {
      +        "city": {
      +          "type": "string"
      +        },
      +        "contact_name": {
      +          "type": "string"
      +        },
      +        "country": {
      +          "pattern": "^[A-Za-z]{2}$",
      +          "type": "string"
      +        },
      +        "email": {
      +          "type": "string"
      +        },
      +        "name": {
      +          "description": "Company name, Latin characters",
      +          "type": "string"
      +        },
      +        "phone": {
      +          "description": "International format, e.g. +862150000000",
      +          "type": "string"
      +        },
      +        "state": {
      +          "type": "string"
      +        },
      +        "street": {
      +          "type": "string"
      +        },
      +        "street2": {
      +          "type": "string"
      +        },
      +        "tax_id": {
      +          "description": "Tax id in the party's country format (US: EIN)",
      +          "type": "string"
      +        },
      +        "zipcode": {
      +          "description": "Required where the country uses postal codes",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "name",
      +        "street",
      +        "city",
      +        "country",
      +        "contact_name",
      +        "phone"
      +      ],
      +      "type": "object"
      +    },
      +    "importer_of_record_number": {
      +      "description": "US imports: the consignee's importer of record number (EIN or CBP number YYDDPP-NNNNN)",
      +      "type": "string"
      +    },
      +    "importer_registration_number": {
      +      "description": "Destination importer registration: Brazil CNPJ (14 digits) or CPF (11), Colombia NIT, Argentina CUIT (11 digits), Nigeria Form M (MF + 8-12 digits)",
      +      "type": "string"
      +    },
      +    "isf": {
      +      "additionalProperties": false,
      +      "description": "Ocean imports into the US only: Importer Security Filing (10+2) parties. The forwarder files it with the customer after booking; country of origin and HTS come from commodities.",
      +      "properties": {
      +        "buyer": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "address": {
      +              "description": "One-line address",
      +              "type": "string"
      +            },
      +            "country": {
      +              "pattern": "^[A-Za-z]{2}$",
      +              "type": "string"
      +            },
      +            "name": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "name",
      +            "address",
      +            "country"
      +          ],
      +          "type": "object"
      +        },
      +        "consignee_number": {
      +          "type": "string"
      +        },
      +        "consolidator": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "address": {
      +              "description": "One-line address",
      +              "type": "string"
      +            },
      +            "country": {
      +              "pattern": "^[A-Za-z]{2}$",
      +              "type": "string"
      +            },
      +            "name": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "name",
      +            "address",
      +            "country"
      +          ],
      +          "type": "object"
      +        },
      +        "container_stuffing_location": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "address": {
      +              "description": "One-line address",
      +              "type": "string"
      +            },
      +            "country": {
      +              "pattern": "^[A-Za-z]{2}$",
      +              "type": "string"
      +            },
      +            "name": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "name",
      +            "address",
      +            "country"
      +          ],
      +          "type": "object"
      +        },
      +        "importer_of_record_number": {
      +          "type": "string"
      +        },
      +        "manufacturer": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "address": {
      +              "description": "One-line address",
      +              "type": "string"
      +            },
      +            "country": {
      +              "pattern": "^[A-Za-z]{2}$",
      +              "type": "string"
      +            },
      +            "name": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "name",
      +            "address",
      +            "country"
      +          ],
      +          "type": "object"
      +        },
      +        "seller": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "address": {
      +              "description": "One-line address",
      +              "type": "string"
      +            },
      +            "country": {
      +              "pattern": "^[A-Za-z]{2}$",
      +              "type": "string"
      +            },
      +            "name": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "name",
      +            "address",
      +            "country"
      +          ],
      +          "type": "object"
      +        },
      +        "ship_to": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "address": {
      +              "description": "One-line address",
      +              "type": "string"
      +            },
      +            "country": {
      +              "pattern": "^[A-Za-z]{2}$",
      +              "type": "string"
      +            },
      +            "name": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "name",
      +            "address",
      +            "country"
      +          ],
      +          "type": "object"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "itn": {
      +      "description": "US exports: the ITN, when the shipper files the EEI itself",
      +      "type": "string"
      +    },
      +    "no_hazmat": {
      +      "description": "The shipper confirms nothing is hazardous: no batteries (also inside devices), aerosols, perfume or paint. Ask the user; without it the forwarder asks before moving the freight.",
      +      "type": "boolean"
      +    },
      +    "shipper_tax_id": {
      +      "description": "Shipper tax id. US exports: the EIN (9 digits); if omitted, the EIN on the account's customs profile is used.",
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
    • changedInput schema / properties / update / description
      Previous value: -"Fields to merge, in gw's internationalInfo shape"New value: +"Advanced: raw fields in gw's internationalInfo shape, merged over customs"
  3. Added

TDQS

A4.3/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the annotations, it discloses side effects and outcomes an agent could not infer: the forwarder is notified, invalid optional values are returned as warnings rather than failures, and sanctioned parties are rejected. It also adds auth requirements and a partial-update (merge) model, which clarifies the destructiveHint=true and idempotentHint=true annotations rather than contradicting them.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded and dense with useful detail; almost every sentence carries distinct information. The read/write instruction ('Omit customs and update to read what is saved, including what is still missing') is slightly awkwardly phrased and takes a re-read to parse.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutating, nested-schema tool with no output schema, the description covers the essential gaps: read vs write behavior, merge semantics, warning behavior on invalid values, and which related data must be collected elsewhere. The remaining gap is the shape of the merged/read response beyond 'what is saved' and 'what is still missing'.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the nested commodity schema documents codes, values, weights and country of origin thoroughly, so the schema does the heavy lifting. The description adds genuine meaning beyond it with merge semantics ('Pass customs to merge fields in' and 'Omit customs and update to read'), but says nothing about individual field formats. Baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb pair and resource ('Read, or add to, the customs data on a booked international order') and enumerates the concrete field families (hazmat confirmation, commodities with Schedule B/HTS/HS codes, EEI authorization or ITN). An agent can distinguish this from booking tools like international_book or reference tools like hs_code_search without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives explicit mode selection rules: omit 'customs' to read, pass 'customs' to merge fields in, and it explicitly excludes a set of attributes ('do not ask for them here'). It does not name or defer to any sibling tool, so the routing guidance is conditional but not comparative.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.