Origin Countries Supplying an HS Code to an Importing Country (Import Records, First Row)
omnial/import-origin-countries-first-row
From customs import records for one product (an HS code) arriving in one importing country in a date window, returns how many origin countries the records come from, plus the first origin row returned: the origin's three-letter country code, the total USD value, weight and quantity, the average USD value per unit of weight and of quantity, the number of trade records, and that origin's share of the total USD value.
Price
Up to $0.0219 per result; you pay what the call used
You pay the price shown. If a call turns out to cost more than its quote, you pay the actual price, capped at twice the quote. No monthly minimum. Top-ups start at $5.00.
Data source
Data from Tendata.
Use it
Your AI assistant does the work: it finds this tool, shows you the price first, runs it, and you are charged when the run finishes. There is nothing to set up for this tool in particular.
Connect once and your AI can find and run this tool, and any other it needs.
For developers: the calls your assistant makes
// 1. search: find the tool
omnial_search({ query: "what you need" })
// 2. inspect: price and input schema
omnial_inspect({ tool: "omnial/import-origin-countries-first-row" })
// 3. learn: read the usage guide at runtime
omnial_learn({ tool: "omnial/import-origin-countries-first-row" })
// 4. run: price the exact call first, then run it
omnial_execute({ tool: "omnial/import-origin-countries-first-row", input: { /* see input_schema */ }, dry_run: true })
omnial_execute({ tool: "omnial/import-origin-countries-first-row", input: { /* ... */ } })
// 5. settle: the call is charged when it finishes, nothing to doNot connected yet? Point your MCP client at https://mcp.eden-engine.com/mcp, then copy a config for your client.
Pricing
Every charge this tool can incur.
| Charge | Price |
|---|---|
Per result Charged for every result returned | $0.0219 |
- Updated
- Oct 27, 2026
Input and output schemas
Input schema
{
"type": "object",
"required": [
"hsCode",
"countryOfDestinationCode",
"startDate",
"endDate",
"catalog",
"pageNo",
"pageSize"
],
"properties": {
"hsCode": {
"type": "string",
"pattern": "^[0-9]{4,10}$",
"description": "The product's customs HS code, 4 or more digits."
},
"pageNo": {
"enum": [
1
],
"type": "integer",
"description": "The page number; only the first page (1) is offered."
},
"catalog": {
"enum": [
"imports"
],
"type": "string",
"description": "The records searched; only \"imports\" (import records), the one tested, is offered."
},
"endDate": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "End of the date window, YYYY-MM-DD."
},
"pageSize": {
"enum": [
1
],
"type": "integer",
"default": 1,
"description": "Rows per page; only 1, the one tested, is offered."
},
"startDate": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Start of the date window, YYYY-MM-DD. The window may span at most three years."
},
"countryOfDestinationCode": {
"type": "string",
"pattern": "^[A-Z]{3}$",
"description": "The importing (destination) country, as an ISO 3166 three-letter code."
}
},
"additionalProperties": false
}Output schema
{
"type": "object",
"properties": {
"total": {
"type": "number",
"description": "How many origin countries the matching import records come from."
},
"content": {
"type": "array",
"items": {
"type": "object",
"properties": {
"weight": {
"type": "number",
"description": "Total weight of the records, as recorded."
},
"quantity": {
"type": "number",
"description": "Total quantity of the records, as recorded."
},
"sumOfUSD": {
"type": "number",
"description": "Total value of the records, in USD."
},
"tradeCount": {
"type": "number",
"description": "Number of trade records."
},
"countryCode": {
"type": "string",
"description": "The origin country, as an ISO 3166 three-letter code."
},
"amountSharePct": {
"type": "number",
"description": "This origin's share of the total USD value, as a fraction of 1."
},
"weightAvgPrice": {
"type": "number",
"description": "Average USD value per unit of weight (USD value divided by weight)."
},
"quantityAvgPrice": {
"type": "number",
"description": "Average USD value per unit of quantity (USD value divided by quantity)."
}
}
},
"description": "The first origin row returned (at most one)."
}
},
"description": "The origin roll-up: the count of origin countries and the first row."
}