Skip to content
Eden Engine

Top Importer of an HS Code from a Country's Export Records, by Record Count (1 Row)

omnial/top-importer-by-trade-count

Searches one origin country's customs export records for an HS code over a date window and returns the importing company with the most matching trade records: its name and three-letter country code, with its total USD value, weight, quantity, record count, and USD value per unit of weight and per unit of quantity, plus the total number of matching importers. One row per call.

activeper resultv2

Price

Up to $0.026 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/top-importer-by-trade-count" })

// 3. learn: read the usage guide at runtime
omnial_learn({ tool: "omnial/top-importer-by-trade-count" })

// 4. run: price the exact call first, then run it
omnial_execute({ tool: "omnial/top-importer-by-trade-count", input: { /* see input_schema */ }, dry_run: true })
omnial_execute({ tool: "omnial/top-importer-by-trade-count", 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.026
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 HS code to search, 4 to 10 digits."
    },
    "pageNo": {
      "enum": [
        1
      ],
      "type": "integer",
      "description": "The page number; only the first page (1) is offered."
    },
    "catalog": {
      "enum": [
        "exports"
      ],
      "type": "string",
      "description": "The record side searched; only exports 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",
      "description": "Rows per call; only 1 is offered."
    },
    "sortField": {
      "enum": [
        "tradeCount"
      ],
      "type": "string",
      "default": "tradeCount",
      "description": "Ranking key. Fixed at tradeCount, the number of trade records."
    },
    "sortOrder": {
      "enum": [
        "DESC"
      ],
      "type": "string",
      "default": "DESC",
      "description": "Ranking direction. Fixed at DESC, most records first."
    },
    "startDate": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "description": "Start of the date window, YYYY-MM-DD."
    },
    "countryOfOriginCode": {
      "type": "string",
      "pattern": "^[A-Z]{3}$",
      "description": "The exporting (origin) country whose export records are searched, as one ISO 3166 three-letter code in capitals."
    }
  },
  "additionalProperties": false
}
Output schema
output_schema.json
{
  "type": "object",
  "properties": {
    "total": {
      "type": "number",
      "description": "The total number of matching importers."
    },
    "content": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "The importing company's name as recorded."
          },
          "weight": {
            "type": "number",
            "description": "Total weight of the matched records, as recorded; the unit is not stated, and records can omit weight, so it can be far below the true weight."
          },
          "country": {
            "type": "string",
            "description": "The importer's country, as an ISO 3166 three-letter code."
          },
          "quantity": {
            "type": "number",
            "description": "Total quantity of the matched records, as recorded; the unit is not stated."
          },
          "sumOfUSD": {
            "type": "number",
            "description": "Total value of the importer's matched records, in USD."
          },
          "tradeCount": {
            "type": "number",
            "description": "The number of the importer's matched trade records."
          },
          "weightAvgPrice": {
            "type": "number",
            "description": "USD value per unit of weight (sumOfUSD divided by weight); greatly inflated when the recorded weight is incomplete."
          },
          "quantityAvgPrice": {
            "type": "number",
            "description": "USD value per unit of quantity (sumOfUSD divided by quantity)."
          }
        }
      },
      "description": "One importer row: the one with the most matching trade records."
    }
  },
  "description": "The top importer by record count and the number of matching importers."
}