Skip to main content
Glama

trade

trade
Read-only

US imports and exports from official Census trade data: by product (HS code) the top partner countries with value, share and year-to-date; by country the trade balance and top products; or US totals, for the latest month or any month. Costs $0.004 USDC per call (x402).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "trade"
  }
}

Input Schema

NameRequiredDescriptionDefault
hsNo2, 4 or 6-digit HS code, e.g. 8703 cars
flowNoimports (default) or exports
limitNo
monthNoYYYY-MM, default latest
countryNoPartner country name

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover safety (readOnlyHint, openWorldHint), and the description adds genuinely useful operational context not in structured fields: a per-call price ($0.004 USDC) and the x402 payment requirement. It does not disclose rate limits, whether hs and country can be combined, or the units/currency of reported values.

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?

Front-loads the data source and purpose, then compactly lists the three modes with semicolons and ends with cost. Dense but every clause carries information; slightly long as a single sentence.

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

Completeness4/5

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

For a 5-parameter, 0-required tool with no output schema, the description usefully sketches the three possible result shapes and the payment model, which compensates for the missing output schema. Gaps remain around 'limit' behavior, value units/currency, and whether product and country filters can be combined.

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?

With 80% schema coverage the baseline is 3, but the description goes further by explaining what each parameter mode produces (hs -> partner countries; country -> trade balance; neither -> US totals). It still leaves 'limit' and the optionality/combination rules of hs+country unaddressed.

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?

States a specific verb+resource ('US imports and exports from official Census trade data') and enumerates three distinct query modes (by HS product, by partner country, or US totals), which clearly separates it from siblings like economy, macro_us, and country.

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?

Explains how the parameter combinations select output: HS code yields top partner countries with value/share/YTD, country yields trade balance and top products, and neither yields US totals, plus the month scope ('latest month or any month'). It gives clear invocation context but names no alternative tools or exclusions, so it stops short of a 5.

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.

Resources