Skip to content
Eden Engine

Export Destinations of a Product from a Country (Export Records, First Country Row)

omnial/export-destination-first-country

From customs export records for one product (an HS code) leaving one origin country in a date window, returns how many destination countries the records go to, plus the first destination row returned: the destination'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 destination's share of the total USD value.

activeper resultv2

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

Tendata

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
agent
// 1. search: find the tool
omnial_search({ query: "what you need" })

// 2. inspect: price and input schema
omnial_inspect({ tool: "omnial/export-destination-first-country" })

// 3. learn: read the usage guide at runtime
omnial_learn({ tool: "omnial/export-destination-first-country" })

// 4. run: price the exact call first, then run it
omnial_execute({ tool: "omnial/export-destination-first-country", input: { /* see input_schema */ }, dry_run: true })
omnial_execute({ tool: "omnial/export-destination-first-country", input: { /* ... */ } })

// 5. settle: the call is charged when it finishes, nothing to do

Not 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.

ChargePrice
Per result
Charged for every result returned
$0.0219
Updated
Oct 27, 2026

Input and output schemas

Input schema
input_schema.json
{
  "type": "object",
  "required": [
    "hsCode",
    "countryOfOriginCode",
    "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": [
        "exports"
      ],
      "type": "string",
      "description": "The records searched; only \"exports\" (export 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."
    },
    "countryOfOriginCode": {
      "type": "string",
      "pattern": "^[A-Z]{3}$",
      "description": "The exporting (origin) country, as an ISO 3166 three-letter code."
    }
  },
  "additionalProperties": false
}
Output schema
output_schema.json
{
  "type": "object",
  "properties": {
    "total": {
      "type": "number",
      "description": "How many destination countries the matching export records go to."
    },
    "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 destination country, as an ISO 3166 three-letter code."
          },
          "amountSharePct": {
            "type": "number",
            "description": "This destination'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 destination row returned (at most one)."
    }
  },
  "description": "The destination roll-up: the count of destinations and the first row."
}