Skip to main content
Glama

No Niner Data Tools

Import & Export Trade Data — UN Comtrade (by Product & Country)

trade_flows
Read-only

Analyse import and export trade flow data for any company, country or product — HS codes, trade partners and volume trends structured

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": {
      "reporter_countries": "<reporter_countries>"
    },
    "name": "trade_flows"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearsNoYears to report (e.g
trade_flowNoImports, exports or both
apify_api_keyNoYour Apify API token (optional). When provided the actor runs live and returns real data. Get one free at https://apify.com/sign-up
comtrade_api_keyNoOptional free UN Comtrade subscription key for full (non-preview) data and higher limits
products_hs_codesNoHS commodity codes (e.g
reporter_countriesYesThe countries whose trade to report — ISO3 code (e.g

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true, destructiveHint=false and idempotentHint=false, so the safety profile is covered. The description adds nothing beyond that: it does not disclose the preview-vs-live data behaviour driven by apify_api_key, rate limits, or the partial-data constraint without a comtrade_api_key. With annotations carrying the safety burden, a 3 is the fair middle.

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?

A single front-loaded sentence with no filler. The trailing clause 'volume trends structured' is dangling and conveys nothing, which costs a point, but the overall brevity is appropriate for the tool.

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

Completeness2/5

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

This is an open-world data-fetch tool with six parameters, no output schema, and two optional API keys that materially change what is returned. A complete description would say what data arrives without keys versus with them and what COMTRADE key coverage unlocks; none of that is present in the description itself.

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 description coverage is 100%, so the schema already documents all six parameters and the baseline is 3. The description restates the concepts behind the parameters (HS codes, countries, trends) but adds no syntax, format, or default details, and mentions 'trade partners' which is not actually an input field.

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

Purpose4/5

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

States a specific verb+resource combination: 'Analyse import and export trade flow data' scoped to HS codes, trade partners and volume trends, which clearly identifies this as a UN Comtrade query tool. The claim of coverage 'for any company' is misleading, since the required parameter is reporter_countries and the data source is country/product based, but the core purpose is otherwise unambiguous.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no conditions that distinguish this from alternatives, and no mention of prerequisites. The single most decision-relevant fact — that a live run requires an Apify token and otherwise returns preview data — appears only in the parameter schema, not in the description.

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.