Docs/Sources/Trade Balance Grounding Data for AI Agents

Trade Balance Grounding Data for AI Agents

US International Trade Data

OperationalCredits 2 per callp50 475msFinance

Overview

Trade Balance sources data from FRED (Federal Reserve Economic Data) using the Census Bureau FT-900 Balance of Payments series, providing seasonally adjusted monthly exports, imports, and the trade balance in millions of US dollars, with history back to 1992. With changes=true every reading includes the previous month's balance, and paid plans add the percent change in exports and imports from the month before and the year before, the change in the balance, rolling 12-month exports, imports and balance, and the 12 monthly readings with history=true. Track the US balance of trade, the trade deficit or surplus, and imports and exports month by month.

Live Test Trade Balance Grounding Data for AI Agents Source →

The tool

Once your client is connected to the VerveContext server, this appears in its tool list as TradeBalanceGroundingDataforAIAgents. It is read-only and open-world — it fetches and never mutates anything on your side — so most clients call it without asking you to confirm.

Tool call
{
  "name": "TradeBalanceGroundingDataforAIAgents",
  "arguments": {}
}

Connecting

One server URL covers every source in the catalog, including this one. Authorization is OAuth: the client opens a browser once, and there is no key to paste into a config file.

{
  "mcpServers": {
    "vervecontext": {
      "url": "https://api.vervecontext.com/v1/mcp"
    }
  }
}

Per-client setup — Claude, Cursor, VS Code, ChatGPT — is on the MCP setup page.

Arguments

These are the properties on the tool's inputSchema, so a well-behaved client validates them before the call is made. Premium arguments are accepted on every plan but only take effect on plans that include them.

ArgumentTypeDescription
dateOptionalstringOptional date in YYYY-MM format for historical lookup. Omit for current data.
date
historyOptionalPremiumbooleanInclude the 12 monthly readings ending at the returned month
changesOptionalbooleanInclude the previous month's balance, month-on-month and year-on-year changes and rolling 12-month totals

What the model gets back

The result carries a structuredContent object matching the tool's declared outputSchema, so a client reads fields without parsing prose. status is "ok" and error is null on success; a null field means the value was not available for that input, not that the call failed.

Result
{
  "status": "ok",
  "error": null,
  "data": {
    "yearMonth": "2026-08",
    "year": 2026,
    "month": 8,
    "exports": 315182,
    "imports": 420754,
    "balance": -105572,
    "unit": "millions_usd",
    "exportsFormatted": "$315.18 billion",
    "importsFormatted": "$420.75 billion",
    "balanceFormatted": "-$105.57 billion",
    "tradeStatus": "deficit",
    "updatedAt": "2026-10-28T03:39:54.665Z",
    "previousYearMonth": "2026-07",
    "previousBalance": -92826,
    "exportsChange1m": 1.435,
    "importsChange1m": 4.2632,
    "balanceChange1m": -12746,
    "exportsChange12m": 10.6908,
    "importsChange12m": 22.1762,
    "balanceChange12m": -45930,
    "exports12m": 3697470,
    "imports12m": 4491225,
    "balance12m": -793756,
    "history": [
      {
        "yearMonth": "2025-09",
        "exports": 292352,
        "imports": 351743,
        "balance": -59392
      },
      {
        "yearMonth": "2025-10",
        "exports": 301158,
        "imports": 338534,
        "balance": -37376
      },
      {
        "yearMonth": "2025-11",
        "exports": 289504,
        "imports": 353372,
        "balance": -63868
      },
      {
        "yearMonth": "2025-12",
        "exports": 285282,
        "imports": 361360,
        "balance": -76078
      },
      {
        "yearMonth": "2026-01",
        "exports": 301271,
        "imports": 353941,
        "balance": -52670
      },
      {
        "yearMonth": "2026-02",
        "exports": 313628,
        "imports": 366127,
        "balance": -52500
      },
      {
        "yearMonth": "2026-03",
        "exports": 321163,
        "imports": 374820,
        "balance": -53657
      },
      {
        "yearMonth": "2026-04",
        "exports": 329893,
        "imports": 382776,
        "balance": -52883
      },
      {
        "yearMonth": "2026-05",
        "exports": 319979,
        "imports": 395731,
        "balance": -75752
      },
      {
        "yearMonth": "2026-06",
        "exports": 317335,
        "imports": 388517,
        "balance": -71182
      },
      {
        "yearMonth": "2026-07",
        "exports": 310723,
        "imports": 403550,
        "balance": -92826
      },
      {
        "yearMonth": "2026-08",
        "exports": 315182,
        "imports": 420754,
        "balance": -105572
      }
    ]
  }
}

Response fields

Paths are relative to data. Premium fields are absent rather than zeroed on plans that do not include them, so check for presence instead of comparing to 0.

FieldTypeExampleDescription
yearMonthstring2026-08Year and month in YYYY-MM format for the trade data
yearnumber2026The calendar year for the trade balance data
monthnumber8The month number (1-12) for trade balance data
exportsnumber315182US exports of goods and services for the month, in millions of USD (BOP basis, seasonally adjusted)
importsnumber420754US imports of goods and services for the month, in millions of USD (BOP basis, seasonally adjusted)
balancenumber-105572Trade balance (exports minus imports) for the month, in millions of USD. Negative means a trade deficit
unitstringmillions_usdUnit for the exports, imports, and balance figures (millions_usd)
exportsFormattedPremiumstring$315.18 billionHuman-readable exports figure (e.g., $265.20 billion)
importsFormattedPremiumstring$420.75 billionHuman-readable imports figure (e.g., $340.40 billion)
balanceFormattedPremiumstring-$105.57 billionHuman-readable trade balance figure (e.g., -$75.20 billion)
tradeStatusstringdeficitWhether the month was a trade deficit or surplus
updatedAtstring2026-10-28T03:39:54.665ZISO 8601 timestamp when the trade data was last updated
previousYearMonthstring2026-07Month of the previous reading (YYYY-MM) (with changes=true)
previousBalancenumber-92826Previous month's trade balance in millions of USD (with changes=true)
exportsChange1mPremiumnumber1.435Percent change in exports from the previous month (with changes=true)
importsChange1mPremiumnumber4.2632Percent change in imports from the previous month (with changes=true)
balanceChange1mPremiumnumber-12746Change in the balance from the previous month, in millions of USD (negative means a wider deficit or smaller surplus) (with changes=true)
exportsChange12mPremiumnumber10.6908Percent change in exports from the same month a year earlier (with changes=true)
importsChange12mPremiumnumber22.1762Percent change in imports from the same month a year earlier (with changes=true)
balanceChange12mPremiumnumber-45930Change in the balance from the same month a year earlier, in millions of USD (with changes=true)
exports12mPremiumnumber3697470Total exports over the 12 months ending at the returned month, in millions of USD (with changes=true)
imports12mPremiumnumber4491225Total imports over the 12 months ending at the returned month, in millions of USD (with changes=true)
balance12mPremiumnumber-793756Total balance over the 12 months ending at the returned month, in millions of USD (with changes=true)
historyPremiumarray[12]The 12 monthly readings ending at the returned month, oldest first (when history=true)
history.0.yearMonthPremiumstring2025-09Month of the reading (YYYY-MM)
history.0.exportsPremiumnumber292352Exports in millions of USD
history.0.importsPremiumnumber351743Imports in millions of USD
history.0.balancePremiumnumber-59392Trade balance in millions of USD

Why ground on it

A model can produce something that looks like this answer from its training data, and be confidently out of date or simply wrong. This source returns the current value in a shape you can check, which is the difference between an answer you can cite and one you have to hedge.

Point an evaluation at yearMonth: it is the field most worth pinning a claim to, and it is either present and current or absent — never plausibly invented.

Failure modes

Errors come back as tool errors carrying a sentence the model can act on, not a bare status code. Error handling covers the full list.

StatusWhat it means
400 / 422The arguments did not validate. The message names the offending one.
401The OAuth session is invalid or expired — reconnect the server.
403Blocked by a key restriction or an IP allow-list. Never a bad identity.
404This source is not part of VerveContext. Check the catalog.
429Out of credits, or a brief rate limit. The message tells them apart.

A call costs 2 credits each time the tool actually runs; a model that reasons about the tool without calling it costs nothing.

Use cases

Economic Analysis
Track US trade patterns for economic research
Policy Research
Analyze trade data for policy research and analysis
Business Intelligence
Factor trade trends into business planning

Other ways to use Trade Balance Grounding Data for AI Agents

Set up Trade Balance Grounding Data for AI Agents on VerveContext, or reach the same source a different way. Your VerveContext account and credits work on all of them — one key, one balance.

Call it as a REST APIOne HTTPS endpoint and an x-api-key header, with SDKs for Node, Python and .NET.APIVerve →Reference →
Give it to an AI agentConnect over MCP and your agent calls it as a native tool — Claude, Cursor, ChatGPT.VerveKit →Reference →
Google Sheets or ExcelA =VERVE() formula fills a column — no script, no export, recalculates in place.VerveSheets →Reference →

More in Finance:

Was this page helpful?