Skip to main content
Glama

Comtrade Country Codes

comtrade_country_codes
Read-onlyIdempotent

Look up UN Comtrade reporter/partner codes for trade queries (e.g., "842" = US, "156" = China). Note Comtrade uses 842 for the US, not the ISO 840. Returns code and country name pairs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
noteYesInstructions for using numeric codes in parameters
countriesYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed2 schema fields changed
    • removedOutput schema / properties / countries / description
      Removed value: -"List of countries with numeric codes"
    • changedOutput schema / properties / note / description
      Previous value: -"Usage guidance for numeric codes"New value: +"Instructions for using numeric codes in parameters"
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "countries": {
      +      "description": "List of countries with numeric codes",
      +      "items": {
      +        "properties": {
      +          "full_name": {
      +            "description": "Full country name",
      +            "type": "string"
      +          },
      +          "label": {
      +            "description": "Country label or abbreviation",
      +            "type": "string"
      +          },
      +          "numeric_code": {
      +            "description": "ISO numeric country code",
      +            "type": "number"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "note": {
      +      "description": "Usage guidance for numeric codes",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "note",
      +    "countries"
      +  ],
      +  "type": "object"
      +}
  3. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {}
      +]
  4. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already mark as read-only and idempotent. Description adds that it returns code and country name pairs, and highlights the unusual code for US, adding value beyond annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, no wasted words, front-loaded with purpose and a key nuance about US code. Highly efficient.

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

Completeness5/5

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

Given no parameters and existence of output schema, description fully explains what the tool does and returns. Complete for its simplicity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

No parameters; schema coverage is 100% trivially. Description adds no parameter info, but with 0 params this is acceptable. Baseline for 0 params is 4.

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

Purpose5/5

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

Clearly states it looks up UN Comtrade reporter/partner codes for trade queries, provides examples, and differentiates from siblings like comtrade_top_commodities and comtrade_trade_data.

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

Usage Guidelines4/5

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

Indicates usage for 'trade queries' and explicitly notes the non-standard US code (842 vs ISO 840), giving clear context. Could mention when not to use, but sufficient.

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.