Skip to main content
Glama

BEA — US International Trade Balance

bea.international.trade_balance
Read-onlyIdempotent

Retrieve US international trade balance data from the BEA International Transactions Accounts (ITA) dataset. Covers balance on goods and services, current account balance, goods imports/exports, services imports/exports, and 800+ additional ITA indicators. Filter by country (China, Canada, Mexico, EU, etc.) or use AllCountries for world totals. Values in millions of USD. Annual or quarterly frequency. Official BEA government data.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
yearNoYear(s) to retrieve. Single year (e.g. "2023"), comma-separated list ("2021,2022,2023"), "LAST5" for latest 5 years, "LAST10" for latest 10, or "X"/"ALL" for all years. Defaults to LAST5.
frequencyNoData frequency: A=Annual (default), Q=Quarterly.
indicatorNoBEA ITA indicator code. Common values: "BalGdsServ" (balance on goods and services, default), "BalGds" (goods only), "BalServ" (services only), "BalCurrAcct" (current account balance), "ExpGds" (goods exports), "ImpGds" (goods imports). See BEA ITA documentation for all 889 available indicators.
area_or_countryNoCountry or area filter. "AllCountries" (default) for world totals, or a specific country name such as "China", "Canada", "Mexico", "Germany", "Japan". Use "AreaAll" for regional groupings.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorNoPresent only when the call failed. Includes error code, message, request_id, and any provider-specific extras.
resultNoTool response payload. Shape varies per tool — consult the tool description and inputSchema. May be an object, array, string, or number depending on the upstream provider response.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already signal read-only, idempotent, non-destructive behavior. The description adds useful context: units (millions USD), frequency options (annual/quarterly), and official provenance. However, it does not cover response behavior, pagination, or potential errors, which the output schema likely handles for return structure.

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?

Four tight sentences with no redundancy. The verb and resource are front-loaded, followed by coverage, filtering, units, and frequency. Every sentence adds a distinct, useful fact.

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 read-only, 4-optional-parameter data retrieval tool with an output schema, the description is nearly complete: it specifies source, coverage, units, frequency, and geography. The only notable gap is the lack of explicit guidance on when to use this tool versus sibling trade or BEA tools, but that falls under usage guidelines and does not impede basic invocation.

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 coverage is 100%, with each parameter detailed and defaults provided. The description adds minimal new meaning: examples of country filters ('China, Canada, Mexico') and 'AllCountries' for world totals, but these are largely restated in the schema. It does not deepen parameter semantics beyond schema.

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?

Description states the exact action ('Retrieve'), resource ('US international trade balance data'), and dataset source ('BEA International Transactions Accounts'). It enumerates specific indicators (goods/services balance, current account) and distinguishes itself from sibling BEA datasets (gdp, regional, industry) and other trade tools like comtrade or wto by naming ITA and US scope.

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

Usage Guidelines3/5

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

The description implies use for US trade balance data and provides context on filtering and frequency, but it does not explicitly state when to prefer this tool over alternatives such as comtrade.trade.query or wto.trade.data for broader trade data. No exclusions or when-not-to-use conditions are given.

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.