Skip to main content
Glama

Trade Macro Dashboard

trade_macro_dashboard
Read-onlyIdempotent

Check US trade indicators: monthly customs duty revenue, Treasury exchange rates, import/export price indices, maritime port disruptions, and the FRED macro block (trade-weighted dollar index, goods-and-services balance, imports, exports). Bilateral figures are NOT here, for one country's trade balance or monthly trend, call census_trade_balance or census_trade_trends with a country.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "_fredKey": "your-trade-intel-api-key"
    },
    "name": "trade_macro_dashboard"
  }
}

Input Schema

NameRequiredDescriptionDefault
_blsKeyNoBLS registration key (gateway-injected; without it the price-index subcall runs keyless against a 25/day-per-IP cap)
_fredKeyNoFRED API key (gateway-injected, for the macro series)

Output Schema

NameRequiredDescriptionDefault
analysisYesAnalysis type identifier
fred_macroNoFRED macro series if API key provided
trade_trendsYes12-month trade trends from Census
price_indicesYesBLS import/export price indices
trade_balanceYesUS trade balance from Census
exchange_ratesYesExchange rates from Treasury
customs_revenueYesUS customs revenue from Treasury

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / _blsKey
      Added value: +{
      +  "description": "BLS registration key (gateway-injected; without it the price-index subcall runs keyless against a 25/day-per-IP cap)",
      +  "type": "string"
      +}
    • changedInput schema / properties / _fredKey / description
      Previous value: -"FRED API key (optional, for macro series)"New value: +"FRED API key (gateway-injected, for the macro series)"
  2. Changed1 schema field changed
    • changedOutput schema / required
      Previous value: -[
      -  "analysis",
      -  "customs_revenue",
      -  "exchange_rates",
      -  "trade_balance",
      -  "trade_trends",
      -  "fred_macro",
      -  "price_indices"
      -]New value: +[
      +  "analysis",
      +  "customs_revenue",
      +  "exchange_rates",
      +  "trade_balance",
      +  "trade_trends",
      +  "price_indices"
      +]
  3. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "analysis": {
      +      "description": "Analysis type identifier",
      +      "type": "string"
      +    },
      +    "customs_revenue": {
      +      "description": "US customs revenue from Treasury",
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "exchange_rates": {
      +      "description": "Exchange rates from Treasury",
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "fred_macro": {
      +      "description": "FRED macro series if API key provided",
      +      "properties": {
      +        "dollar_index": {
      +          "description": "Trade-weighted dollar index (DTWEXBGS)",
      +          "type": [
      +            "object",
      +            "null"
      +          ]
      +        },
      +        "exports_goods_services": {
      +          "description": "Exports of goods and services (EXPGS)",
      +          "type": [
      +            "object",
      +            "null"
      +          ]
      +        },
      +        "goods_services_balance": {
      +          "description": "Goods and services balance (BOPGSTB)",
      +          "type": [
      +            "object",
      +            "null"
      +          ]
      +        },
      +        "imports_goods_services": {
      +          "description": "Imports of goods and services (IMPGS)",
      +          "type": [
      +            "object",
      +            "null"
      +          ]
      +        }
      +      },
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "price_indices": {
      +      "description": "BLS import/export price indices",
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "trade_balance": {
      +      "description": "US trade balance from Census",
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "trade_trends": {
      +      "description": "12-month trade trends from Census",
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    }
      +  },
      +  "required": [
      +    "analysis",
      +    "customs_revenue",
      +    "exchange_rates",
      +    "trade_balance",
      +    "trade_trends",
      +    "fred_macro",
      +    "price_indices"
      +  ],
      +  "type": "object"
      +}
  4. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "_fredKey": "your-trade-intel-api-key"
      +  }
      +]
  5. First observed

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=true, so the safety profile is fully covered and the description needn't repeat it. The description adds scope context by implying the result is a composite of several upstream sources (duty revenue, Treasury rates, FRED series), but it discloses nothing about rate limits, key requirements, or partial-failure behavior — the 25/day keyless cap is only visible in the schema parameter text, not here.

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?

Two sentences, both front-loaded with the affirmative scope first and the exclusion/routing second. The indicator list is long but each item is a genuine data domain an agent needs to match against, so nothing is padding for its own sake.

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 zero-required-parameter aggregation tool with an output schema and fully documented parameters, the description covers scope, sibling routing, and the set of series returned — enough to call it correctly. The only real gap is that it never tells the agent what a partial or degraded response looks like when a subcall fails or runs keyless.

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 description coverage is 100% for both parameters, and those schema descriptions already explain that _blsKey and _fredKey are gateway-injected and what happens without _blsKey. The description contributes nothing about the parameters, so the baseline 3 applies — the schema does all the work.

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?

The description names a concrete verb-and-resource ('Check US trade indicators') and then enumerates the exact data families returned: customs duty revenue, Treasury exchange rates, price indices, port disruptions, and a named FRED macro block. It also explicitly states what the tool is NOT ('Bilateral figures are NOT here'), which separates it from trade_bilateral_analysis without requiring the agent to open any schema.

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?

It gives an explicit exclusion and routes the agent elsewhere ('for one country's trade balance or monthly trend, call census_trade_balance or census_trade_trends with a country'). What's missing is a positive-side condition — it never says when this aggregate dashboard is preferable over the per-country tools, only when it isn't, so the agent must infer that this is the US-wide default.

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