# Commerce and Trade Competitiveness Data Hub

## Links

- Product page URL: https://www.agentpmt.com/marketplace/trade-competitiveness-data
- Product markdown URL: https://www.agentpmt.com/marketplace/trade-competitiveness-data?format=agent-md
- Product JSON URL: https://www.agentpmt.com/marketplace/trade-competitiveness-data?format=agent-json

## Overview

- Product ID: 6980db6a71cad8f61bf5b1d4
- Type: data
- Unit type: request
- Price: 500 credits
- Categories: Data Science, Financial Data, Risk Management & Analytics, Academic & Scientific Research, Public Records & Government Data, Civic Data & Demographics
- Generated at: 2026-07-05T10:24:54.135Z

### Page Description

Access World Bank trade and competitiveness data from TCdata360 (2,400+ indicators, 46 sources) for 200+ countries. Get merchandise exports/imports, trade balances, tariff rates, high-tech and ICT export shares, Logistics Performance Index rankings, Ease of Doing Business scores, and trade-to-GDP ratios. Includes CAGR trend analysis, regional comparisons, and SDG 17 alignment tracking.

### Agent Description

Query World Bank TCdata360 trade and competitiveness data by country or region name. Returns merchandise exports/imports in USD, trade balance calculations, tariff rates (simple and weighted mean), LPI scores, Doing Business rankings, high-tech/ICT export shares, and trade openness ratios. Supports topic filtering (exports, imports, competitiveness, logistics, tariffs), time ranges, CAGR trends, and regional comparisons. Use action 'get_instructions' for full documentation.

## Details

### Details

Access World Bank trade and competitiveness data from TCdata360 (2,400+ indicators, 46 sources) for 200+ countries. Get merchandise exports/imports, trade balances, tariff rates, high-tech and ICT export shares, Logistics Performance Index rankings, Ease of Doing Business scores, and trade-to-GDP ratios. Includes CAGR trend analysis, regional comparisons, and SDG 17 alignment tracking.

### Actions

- `query_trade_data` (5 credits): Fetch trade and competitiveness data for a country or region from the World Bank. Returns merchandise exports/imports, trade balance, tariff rates, high-tech/ICT export shares, Logistics Performance Index, Ease of Doing Business scores, trade openness ratios, CAGR trend analysis, and regional comparisons.

### Use Cases

Export market analysis,Trade competitiveness benchmarking,Tariff and logistics monitoring,Cross-border policy research,Country trade profile comparisons

### Workflows Using This Tool

No public workflows currently reference this product.

### Related Content

No related content is currently linked to this product.

## Integration Details

### DynamicMCP

- Setup page URL: https://www.agentpmt.com/dynamic-mcp
- Claude setup guide: https://www.agentpmt.com/dynamic-mcp#platform=claude
- ChatGPT setup guide: https://www.agentpmt.com/dynamic-mcp#platform=chatgpt
- Cursor setup guide: https://www.agentpmt.com/dynamic-mcp#platform=cursor
- Windsurf setup guide: https://www.agentpmt.com/dynamic-mcp#platform=windsurf

Use the local router for command-based MCP clients. It forwards requests to `https://api.agentpmt.com/mcp` and does not execute tools locally.

```bash
npm install -g @agentpmt/mcp-router
agentpmt-setup
```

### REST API

The live page renders cURL, Python, JavaScript, and Node.js examples. Logged-in users see those examples prefilled with their own API and budget credentials.

- Purchase endpoint: https://api.agentpmt.com/products/purchase
- Authorization format: `Bearer <base64(apiKey:budgetKey)>`

```bash
curl -X POST "https://api.agentpmt.com/products/purchase" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer eW91ci1hcGkta2V5LWhlcmU6eW91ci1idWRnZXQta2V5LWhlcmU=" \
  -d '{
    "product_id": "6980db6a71cad8f61bf5b1d4",
    "parameters": {
      "action": "query_trade_data",
      "country_or_region": "example_country_or_region",
      "trade_topic": "all",
      "calculate_trade_balance": true,
      "include_doing_business": true,
      "include_lpi": true,
      "time_period": "latest",
      "include_regional_comparison": true,
      "include_trends": true
    }
  }'
```

### Autonomous Agents

Autonomous agents can access this tool through AgentAddress credit balances or direct x402 payments. Use the Autonomous Agent API reference for endpoint shapes after choosing the access pattern below.

- Autonomous Agent API reference URL: https://www.agentpmt.com/docs/api-reference/autonomous-agents
- Autonomous Agent API reference markdown URL: https://www.agentpmt.com/docs/api-reference/autonomous-agents?format=agent-md
- Credit-Based Access Using AgentAddress: https://www.agentpmt.com/docs/autonomous-agents/credit-based-tool-usage-with-agentaddress
- AgentAddress is preferred for persistent file access, stored platform state, and maximum tool use ability across repeated calls.
- Direct x402 is for independent one-off tool calls that do not require shared files or stored platform state.
- Direct x402 public payments: USDC on Base, Arbitrum, Optimism, Polygon, and Avalanche.

#### Product Skill Package

This product has a published Agent Skill package for product-specific operating instructions.

- Skill slug: commerce-and-trade-competitiveness-data-hub
- Version: 1.0.0
- Download SKILL.md: https://raw.githubusercontent.com/AgentPMT/agent-skills/main/skills/commerce-and-trade-competitiveness-data-hub/SKILL.md
- Package source: https://github.com/AgentPMT/agent-skills/tree/main/skills/commerce-and-trade-competitiveness-data-hub
- OpenClaw listing: https://clawhub.ai/agentpmt/commerce-and-trade-competitiveness-data-hub
- OpenClaw install: `openclaw skills install commerce-and-trade-competitiveness-data-hub`
- skills.sh install: `npx skills add AgentPMT/agent-skills --skill commerce-and-trade-competitiveness-data-hub`
- Last published: 2026-06-24T04:25:45.711Z

### Schema

#### Parameters

- Schema type: actions

```json
{
  "actions": {
    "query_trade_data": {
      "description": "Fetch trade and competitiveness data for a country or region from the World Bank. Returns merchandise exports/imports, trade balance, tariff rates, high-tech/ICT export shares, Logistics Performance Index, Ease of Doing Business scores, trade openness ratios, CAGR trend analysis, and regional comparisons.",
      "properties": {
        "country_or_region": {
          "type": "string",
          "description": "Country or region name in English (e.g., 'China', 'Japan', 'Vietnam', 'Sub-Saharan Africa'). Also accepts partial matches and income groups ('High Income', 'OECD'). Unicode names are not supported.",
          "required": true
        },
        "trade_topic": {
          "type": "string",
          "description": "Trade topic to query. Options: exports, imports, competitiveness, logistics, tariffs, trade_costs, or all.",
          "required": false,
          "default": "all",
          "enum": [
            "exports",
            "imports",
            "competitiveness",
            "logistics",
            "tariffs",
            "trade_costs",
            "all"
          ]
        },
        "calculate_trade_balance": {
          "type": "boolean",
          "description": "Calculate trade balance (exports minus imports) if both merchandise export and import data are available.",
          "required": false,
          "default": true
        },
        "include_doing_business": {
          "type": "boolean",
          "description": "Include Doing Business rankings and ease of doing business scores. Setting to false also filters out time-to-export/import and cost-to-export/import indicators.",
          "required": false,
          "default": true
        },
        "include_lpi": {
          "type": "boolean",
          "description": "Include Logistics Performance Index (LPI) scores and rankings.",
          "required": false,
          "default": true
        },
        "time_period": {
          "type": "string",
          "description": "Time period: 'latest' (most recent), 'last_5_years', 'last_10_years', or specific range 'YYYY:YYYY' (e.g., '2015:2020').",
          "required": false,
          "default": "latest"
        },
        "include_regional_comparison": {
          "type": "boolean",
          "description": "Include regional and global comparison data (World, High Income, Upper Middle Income, Lower Middle Income) for key indicators.",
          "required": false,
          "default": true
        },
        "include_trends": {
          "type": "boolean",
          "description": "Include trend analysis with absolute change, percent change, direction, and CAGR for indicators with multiple data points.",
          "required": false,
          "default": true
        }
      }
    }
  },
  "properties": {
    "action": {
      "type": "string",
      "description": "Action to perform: 'get_instructions' for documentation, 'query_trade_data' to fetch trade and competitiveness data",
      "required": false,
      "enum": [
        "get_instructions",
        "query_trade_data"
      ]
    },
    "country_or_region": {
      "type": "string",
      "description": "Country or region name in English (e.g., 'China', 'Japan', 'Vietnam', 'Africa'). Required for query_trade_data. Unicode names are not supported.",
      "required": false
    },
    "trade_topic": {
      "type": "string",
      "description": "Trade topic to query: 'exports', 'imports', 'competitiveness', 'logistics', 'tariffs', 'trade_costs', or 'all'",
      "required": false,
      "default": "all",
      "enum": [
        "exports",
        "imports",
        "competitiveness",
        "logistics",
        "tariffs",
        "trade_costs",
        "all"
      ]
    },
    "calculate_trade_balance": {
      "type": "boolean",
      "description": "Calculate trade balance (exports - imports) if both values available",
      "required": false,
      "default": true
    },
    "include_doing_business": {
      "type": "boolean",
      "description": "Include Doing Business rankings and ease of doing business scores",
      "required": false,
      "default": true
    },
    "include_lpi": {
      "type": "boolean",
      "description": "Include Logistics Performance Index (LPI) scores and rankings",
      "required": false,
      "default": true
    },
    "time_period": {
      "type": "string",
      "description": "Time period: 'latest' (most recent), 'last_5_years', 'last_10_years', or specific range 'YYYY:YYYY' (e.g., '2015:2020')",
      "required": false,
      "default": "latest"
    },
    "include_regional_comparison": {
      "type": "boolean",
      "description": "Include regional/global comparison data for context",
      "required": false,
      "default": true
    },
    "include_trends": {
      "type": "boolean",
      "description": "Include trend analysis if historical data available",
      "required": false,
      "default": true
    }
  }
}
```

### Usage Instructions

# Commerce and Trade Competitiveness Data Hub

## Overview
Natural language interface to World Bank trade and competitiveness data. Query exports, imports, trade balance, logistics performance, tariffs, and trade costs by country or region. Uses English country names only -- no indicator codes needed.

Data sourced from World Bank World Development Indicators (WDI) and TCdata360 (2,400+ indicators from 46 sources). Covers merchandise and service trade volumes, exports/imports as % of GDP, trade openness, Ease of Doing Business rankings, Logistics Performance Index (LPI), tariff rates, time and cost to trade, high-tech and ICT exports, and CAGR trend analysis. Includes regional/global comparisons, trade balance calculations, human-readable insights, and SDG 17 (Partnerships through Trade) alignment.

## Actions

### query_trade_data
Fetches trade and competitiveness data for a country or region from the World Bank.

**Required parameters:**
- `country_or_region` (string): Country or region name in English (e.g., "China", "Japan", "Vietnam", "Sub-Saharan Africa"). Also accepts partial matches and income groups ("High Income", "OECD"). Unicode names are not supported. Unrecognized names return an error with a suggestion.

**Optional parameters:**
- `trade_topic` (string): One of "exports", "imports", "competitiveness", "logistics", "tariffs", "trade_costs", or "all". Defaults to "all".
- `calculate_trade_balance` (boolean): Calculate trade balance (exports minus imports) if both merchandise export and import data are available. Defaults to true.
- `include_doing_business` (boolean): Include Doing Business rankings and ease of doing business scores. Defaults to true. Setting to false also filters out time-to-export/import and cost-to-export/import indicators.
- `include_lpi` (boolean): Include Logistics Performance Index scores. Defaults to true. Setting to false filters out the logistics_performance indicator.
- `time_period` (string): "latest" (most recent available), "last_5_years", "last_10_years", or a specific range "YYYY:YYYY" (e.g., "2015:2020"). Also accepts "YYYY-YYYY" format (converted to "YYYY:YYYY"). Defaults to "latest".
- `include_regional_comparison` (boolean): Include regional and global comparison data (World, High Income, Upper Middle Income, Lower Middle Income) for key indicators. Defaults to true.
- `include_trends` (boolean): Include trend analysis with absolute change, percent change, direction, and CAGR for indicators with multiple data points. Defaults to true.

**Example -- All trade data for Vietnam:**
```json
{
  "action": "query_trade_data",
  "country_or_region": "Vietnam",
  "trade_topic": "all",
  "time_period": "latest"
}
```

**Example -- Export trends for China over the last 10 years:**
```json
{
  "action": "query_trade_data",
  "country_or_region": "China",
  "trade_topic": "exports",
  "time_period": "last_10_years",
  "include_trends": true
}
```

**Example -- Competitiveness metrics for Singapore:**
```json
{
  "action": "query_trade_data",
  "country_or_region": "Singapore",
  "trade_topic": "competitiveness",
  "include_doing_business": true,
  "include_lpi": true
}
```

**Example -- Tariff analysis for India:**
```json
{
  "action": "query_trade_data",
  "country_or_region": "India",
  "trade_topic": "tariffs",
  "time_period": "latest"
}
```

**Example -- Trade costs with regional comparison:**
```json
{
  "action": "query_trade_data",
  "country_or_region": "Rwanda",
  "trade_topic": "trade_costs",
  "include_regional_comparison": true
}
```

**Example -- Logistics performance for Netherlands:**
```json
{
  "action": "query_trade_data",
  "country_or_region": "Netherlands",
  "trade_topic": "logistics"
}
```

**Example -- Imports data without Doing Business indicators:**
```json
{
  "action": "query_trade_data",
  "country_or_region": "Brazil",
  "trade_topic": "imports",
  "include_doing_business": false
}
```

## Workflows

### Country Trade Profile
1. Call `query_trade_data` with a country and `trade_topic: "all"` for a comprehensive trade overview.
2. Review the `insights` array for human-readable analysis of trade patterns.
3. Check `trade_balance` for surplus/deficit status.
4. Review `regional_comparison` to see how the country compares to World, High Income, Upper Middle Income, and Lower Middle Income averages.

### Trade Balance Analysis
1. Call `query_trade_data` with `calculate_trade_balance: true` (default).
2. The response includes a `trade_balance` section with exports, imports, balance amount, and surplus/deficit classification for each year.
3. Currency values are formatted in human-readable units (millions, billions, trillions).

### Competitiveness Benchmarking
1. Call `query_trade_data` with `trade_topic: "competitiveness"`.
2. Review Ease of Doing Business rank (1 = best, lower is better) and LPI score (1-5 scale, higher is better).
3. Trade openness (trade as % of GDP) indicates how integrated the economy is with global trade.

### Historical Trend Analysis
1. Call `query_trade_data` with `time_period: "last_10_years"` and `include_trends: true`.
2. Review the `trends` section for each indicator showing oldest/newest values, absolute and percent change, direction (improving/declining/stable), and CAGR.
3. For exports and competitiveness indicators, positive change means "improving". For tariffs, time, and cost indicators, negative change means "improving" (lower is better).

## Notes
- **Supported countries:** 100+ countries by full English name (e.g., "Vietnam", "Japan", "Germany"), plus partial name matching. Also supports 2-3 letter ISO codes if they match known World Bank codes.
- **Regions:** "Sub-Saharan Africa", "Latin America", "Middle East", "South Asia", "East Asia", "Europe", "North America", "Arab World".
- **Income groups:** "Low Income", "Lower Middle Income", "Upper Middle Income", "High Income", "OECD".
- **Special values:** "World" or "Global" for worldwide data.
- Country name input longer than 100 characters is rejected.
- If country_or_region is empty, defaults to "World" (WLD).
- **Trade topics and their indicators:**
  - `exports`: merchandise exports, exports % of GDP, high-tech exports, ICT exports, service exports, time to export, cost to export
  - `imports`: merchandise imports, imports % of GDP, service imports, time to import, cost to import
  - `competitiveness`: Ease of Doing Business rank, LPI, trade % of GDP, exports/imports % of GDP
  - `logistics`: LPI score, time to export/import
  - `tariffs`: simple mean tariff rate, weighted mean tariff rate
  - `trade_costs`: time to export/import, cost to export/import, simple and weighted mean tariff rates
  - `all`: all available trade indicators
- **Trade balance calculation:** Exports minus imports. Positive = surplus, negative = deficit, zero = balanced. Calculated by matching merchandise export and import data by year.
- **Currency formatting:** Large values displayed in millions, billions, or trillions (e.g., "$1.23 trillion").
- **CAGR (Compound Annual Growth Rate):** Calculated when multi-year data is available and both start and end values are positive.
- **Trend direction interpretation:** For exports/competitiveness/logistics, positive change = "improving". For tariffs/time/cost/ease of doing business, negative change = "improving" (lower is better).
- **Insights generated automatically:** Trade surplus/deficit, export orientation (% of GDP), trade openness, LPI interpretation (world-class/strong/moderate/developing/challenges), Doing Business rank tier, tariff level, export process efficiency, ICT export strength, export growth trends, and comparison to global averages.
- **LPI score interpretation:** 4.0+ = world-class, 3.5-4.0 = strong, 3.0-3.5 = moderate, 2.5-3.0 = developing, below 2.5 = significant challenges.
- **Ease of Doing Business interpretation:** Rank 1-30 = top-tier, 31-100 = competitive, 100+ = challenges present. Note: Doing Business project was discontinued in 2021; latest data from 2020.
- **Regional comparison:** Compares key indicators (exports % of GDP, imports % of GDP, trade % of GDP, LPI, Ease of Doing Business) against World, High Income, Upper Middle Income, and Lower Middle Income averages.
- Data availability varies by country and indicator. Most recent data is typically 1-2 years behind the current year.
- SDG alignment: SDG 17 (Partnerships for the Goals), SDG 17.10 (universal trading system), SDG 17.11 (increase developing country exports).

### Frequently Asked Questions

#### How do I connect this tool to an external agent?

- Page URL: https://www.agentpmt.com/faq
- Markdown URL: https://www.agentpmt.com/faq?format=agent-md

You can install the local MCP server by opening a terminal and running:

```
npm install -g @agentpmt/mcp-router
agentpmt-setup
```

This will connect you to local agents like Claude Code, Windsurf, Grok Build, Cursor, etc.

Alternatively you can connect to the hosted version with this config block, no installation required:

```
{
  "mcpServers": {
    "agentpmt": {
      "type": "streamable-http",
      "url": "https://api.agentpmt.com/mcp",
      "headers": {
        "Authorization": "Bearer <AGENTPMT_BEARER_TOKEN>",
        "x-instance-metadata": "{\"client\":\"generic-mcp\",\"platform\":\"remote\"}"
      }
    }
  }
}
```

[View MCP Connection Instructions](/docs/mcp-reference/connection) for more details.

#### How does an external agent use this tool?

- Page URL: https://www.agentpmt.com/faq
- Markdown URL: https://www.agentpmt.com/faq?format=agent-md

After the external agent is connected to an Agent Group that can use this tool, paste this prompt into the agent:

> Use the AgentPMT-Tool-Search-and-Execution tool. First call action 'get\_instructions' so you know how to use the tool search interface. Then call action 'get\_schema' with tool\_id 6980db6a71cad8f61bf5b1d4 ("Commerce and Trade Competitiveness Data Hub"). After reading the schema and any returned instructions, tell me what this tool can do, we are going to be using it

The agent should fetch the tool schema first, collect the required parameters for your request, and then call the tool through AgentPMT.

### Dependencies

This product has no public dependency products.