Skip to main content
Glama
JerBouma

Finance Toolkit

by JerBouma

macroeconomics

Read-onlyIdempotent

Retrieve macroeconomic indicators by country, such as GDP, inflation, trade balance, and exchange rates. Analyze growth, confidence, and crisis signals to support economic research.

Instructions

Macroeconomic indicators by country (GDP, real GDP, CPI, PPI, inflation rate, trade balance, imports, exports, investment, consumption, business/consumer confidence, house prices, rent prices, exchange rates, real effective exchange rate, money supply, household savings rate, household debt-to-income ratio, output gap, real interest rate, misery index, banking/currency/sovereign debt crisis indicators, commercial real estate prices, commodity forward curves). Requires countries='United States' — use comma-separated values for multiple countries. Do NOT use tickers= for this tool. Supports start_date/end_date and quarterly=true. Supports rolling=N (moving-average smoothing) and trailing=N (trailing N-period sum, e.g. a trailing-4-quarter sum) on the raw series. get_consumer_price_index accepts oecd_source=true for monthly/quarterly OECD data instead of the default annual GMDB source. get_commodity_forward_curve requires a commodity= argument instead of countries= (e.g. 'Crude Oil', 'Gold') and returns dated futures contracts, not a country series. Also includes six US-only, FRED-backed indicators (get_retail_sales, get_industrial_production_index, get_housing_starts, get_real_personal_income, get_recession_indicator, get_commercial_real_estate_prices) — these require a free FRED API key (optional; get one at https://fred.stlouisfed.org/docs/api/api_key.html) and only return a 'United States' column regardless of the countries= argument. Every rate and ratio this tool returns i

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
lagNoNumber of periods to lag when computing growth rates.
growthNoReturn period-over-period growth rates instead of absolute values.
periodNoObservation frequency, e.g. 'monthly', 'quarterly', or 'annual'.
measureNoSub-measure selector, e.g. 'M1', 'M2', or 'M3' for money supply.
rollingNoRolling window size in number of periods. When set, the metric is computed over a smoothly overlapping trailing window across the full history (e.g. period='monthly' and rolling=6 gives a rolling 6-month value) instead of one value per period, or (for economics indicators) a simple moving average used to smooth the raw series.
end_dateNoEnd of the date range in YYYY-MM-DD format.2026-10-02
trailingNoTrailing window size in number of periods. Sums the raw values over the trailing N periods (e.g. trailing=4 on quarterly data gives a trailing-4-quarter / TTM-style sum) instead of returning one value per period.
commodityNoValue for commodity. Leave unset to use the default of the indicator you selected. Required by: get_commodity_forward_curve.
contractsNoValue for contracts.
countriesNoComma-separated country names, e.g. 'United States,Germany,Japan'.
indicatorYesName of the specific metric to calculate, e.g. 'get_asset_turnover_ratio'. Required — omitting it returns the list of available indicators.
quarterlyNoReturn quarterly data instead of annual when True.
rate_typeNoValue for rate_type.long_term
start_dateNoStart of the date range in YYYY-MM-DD format.2021-10-03
gmdb_sourceNoUse the Global Macro Database as the data source when True, rather than the OECD. The two are independent providers with different country and period coverage; both return rates and ratios as decimal fractions.
oecd_sourceNoValue for oecd_source.
standardizeNoReturn the Z-Score (standard score) instead of the raw values, i.e. how many standard deviations each value is from the mean of its own series. When combined with growth=True, the growth values are standardized instead of the raw values.
show_columnsNoComma-separated names to filter the output. For historical data use the key names visible in any response record (e.g. 'Close,Volume,Return'). For financial statements use the 'metric' field values from the response (e.g. 'Revenue,Net Income,EBITDA'). Call the tool once without this parameter to see all available names, then repeat with show_columns to reduce response size and token usage.
inflation_adjustedNoAdjust nominal values for inflation when True.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv2.2.1
    • changedInput schema / properties / end_date / default
      Previous value: -"2026-08-19"New value: +"2026-10-02"
    • changedInput schema / properties / start_date / default
      Previous value: -"2021-08-20"New value: +"2021-10-03"
  2. Changed8 schema fields changedv2.2.0
    • addedInput schema / properties / commodity
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Value for commodity. Leave unset to use the default of the indicator you selected. Required by: get_commodity_forward_curve.",
      +  "title": "Commodity"
      +}
    • addedInput schema / properties / contracts
      Added value: +{
      +  "default": 12,
      +  "description": "Value for contracts.",
      +  "title": "Contracts",
      +  "type": "integer"
      +}
    • changedInput schema / properties / end_date / default
      Previous value: -"2026-07-14"New value: +"2026-08-19"
    • changedInput schema / properties / gmdb_source / description
      Previous value: -"Use the OECD Global Macro Data Bank as the data source when True."New value: +"Use the Global Macro Database as the data source when True, rather than the OECD. The two are independent providers with different country and period coverage; both return rates and ratios as decimal fractions."
    • changedInput schema / properties / indicator / enum
      Previous value: -[
      -  "get_business_confidence_index",
      -  "get_composite_leading_indicator",
      -  "get_consumer_confidence_index",
      -  "get_consumer_price_index",
      -  "get_current_account_balance",
      -  "get_current_account_balance_to_gdp_ratio",
      -  "get_exchange_rates",
      -  "get_exports",
      -  "get_exports_to_gdp_ratio",
      -  "get_fixed_investment",
      -  "get_fixed_investment_to_gdp_ratio",
      -  "get_gross_domestic_product",
      -  "get_gross_domestic_product_deflator",
      -  "get_house_prices",
      -  "get_imports",
      -  "get_imports_to_gdp_ratio",
      -  "get_inflation_rate",
      -  "get_investment",
      -  "get_investment_to_gdp_ratio",
      -  "get_money_supply",
      -  "get_rent_prices",
      -  "get_share_prices",
      -  "get_total_consumption",
      -  "get_total_consumption_to_gdp_ratio"
      -]New value: +[
      +  "get_business_confidence_index",
      +  "get_composite_leading_indicator",
      +  "get_consumer_confidence_index",
      +  "get_consumer_price_index",
      +  "get_current_account_balance",
      +  "get_current_account_balance_to_gdp_ratio",
      +  "get_exchange_rates",
      +  "get_exports",
      +  "get_exports_to_gdp_ratio",
      +  "get_fixed_investment",
      +  "get_fixed_investment_to_gdp_ratio",
      +  "get_gross_domestic_product",
      +  "get_gross_domestic_product_deflator",
      +  "get_house_prices",
      +  "get_imports",
      +  "get_imports_to_gdp_ratio",
      +  "get_inflation_rate",
      +  "get_investment",
      +  "get_investment_to_gdp_ratio",
      +  "get_money_supply",
      +  "get_producer_price_index",
      +  "get_rent_prices",
      +  "get_share_prices",
      +  "get_total_consumption",
      +  "get_total_consumption_to_gdp_ratio",
      +  "get_household_savings_rate",
      +  "get_household_debt_to_income_ratio",
      +  "get_retail_sales",
      +  "get_industrial_production_index",
      +  "get_housing_starts",
      +  "get_real_personal_income",
      +  "get_recession_indicator",
      +  "get_commercial_real_estate_prices",
      +  "get_commodity_forward_curve",
      +  "get_output_gap",
      +  "get_real_interest_rate",
      +  "get_real_effective_exchange_rate",
      +  "get_misery_index",
      +  "get_banking_crisis",
      +  "get_currency_crisis",
      +  "get_sovereign_debt_crisis",
      +  "get_real_gross_domestic_product_usd",
      +  "get_real_gross_domestic_product_per_capita",
      +  "get_trade_balance"
      +]
    • addedInput schema / properties / oecd_source
      Added value: +{
      +  "default": false,
      +  "description": "Value for oecd_source.",
      +  "title": "Oecd Source",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / rate_type
      Added value: +{
      +  "default": "long_term",
      +  "description": "Value for rate_type.",
      +  "title": "Rate Type",
      +  "type": "string"
      +}
    • changedInput schema / properties / start_date / default
      Previous value: -"2021-07-15"New value: +"2021-08-20"
  3. Changed5 schema fields changed
    • changedInput schema / properties / end_date / default
      Previous value: -"2026-07-09"New value: +"2026-07-14"
    • addedInput schema / properties / rolling
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Rolling window size in number of periods. When set, the metric is computed over a smoothly overlapping trailing window across the full history (e.g. period='monthly' and rolling=6 gives a rolling 6-month value) instead of one value per period, or (for economics indicators) a simple moving average used to smooth the raw series.",
      +  "title": "Rolling"
      +}
    • addedInput schema / properties / standardize
      Added value: +{
      +  "default": false,
      +  "description": "Return the Z-Score (standard score) instead of the raw values, i.e. how many standard deviations each value is from the mean of its own series. When combined with growth=True, the growth values are standardized instead of the raw values.",
      +  "title": "Standardize",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / start_date / default
      Previous value: -"2021-07-10"New value: +"2021-07-15"
    • addedInput schema / properties / trailing
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Trailing window size in number of periods. Sums the raw values over the trailing N periods (e.g. trailing=4 on quarterly data gives a trailing-4-quarter / TTM-style sum) instead of returning one value per period.",
      +  "title": "Trailing"
      +}
  4. Changed2 schema fields changedv2.1.4
    • changedInput schema / properties / end_date / default
      Previous value: -"2026-06-27"New value: +"2026-07-09"
    • changedInput schema / properties / start_date / default
      Previous value: -"2021-06-28"New value: +"2021-07-10"
  5. Changed2 schema fields changedv2.1.3
    • changedInput schema / properties / end_date / default
      Previous value: -"2026-06-23"New value: +"2026-06-27"
    • changedInput schema / properties / start_date / default
      Previous value: -"2021-06-24"New value: +"2021-06-28"
  6. Changed4 schema fields changedv0.1.2
    • changedInput schema / properties / end_date / default
      Previous value: -"2026-06-22"New value: +"2026-06-23"
    • removedInput schema / properties / rounding
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "integer"
      -    },
      -    {
      -      "type": "null"
      -    }
      -  ],
      -  "default": null,
      -  "description": "Number of decimal places to round results to.",
      -  "title": "Rounding"
      -}
    • addedInput schema / properties / show_columns
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Comma-separated names to filter the output. For historical data use the key names visible in any response record (e.g. 'Close,Volume,Return'). For financial statements use the 'metric' field values from the response (e.g. 'Revenue,Net Income,EBITDA'). Call the tool once without this parameter to see all available names, then repeat with show_columns to reduce response size and token usage.",
      +  "title": "Show Columns"
      +}
    • changedInput schema / properties / start_date / default
      Previous value: -"2021-06-23"New value: +"2021-06-24"
  7. Addedv0.1.1

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint/idempotentHint/openWorldHint, so the safety profile is covered; the description goes further by disclosing the FRED API-key dependency, that those indicators return only a 'United States' column regardless of countries=, that OECD vs GMDB are independent providers with different coverage, and that the forward curve returns dated futures contracts rather than a country series. The truncated trailing sentence leaves some behavioral description incomplete.

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

Conciseness2/5

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

The opening parenthetical enumerates dozens of indicators already present verbatim in the indicator enum, which is pure duplication, and the single enormous run-on sentence buries the most actionable guidance (source toggles, exclusions) mid-text. It also cuts off mid-sentence, so it is oversized and poorly front-loaded simultaneously.

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?

With an output schema present, return-value explanation is unnecessary, and the description covers the high-risk gotchas for a 19-parameter mega-tool: required argument format, source switching, special-cased indicators, and the API-key caveat. Only the truncated final sentence leaves an evident gap.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds genuine cross-parameter semantics: the countries= format, that commodity= replaces countries= for one indicator, that tickers= is invalid here, and how rolling/trailing alter the returned series. These constraints are not fully expressible in the flat schema.

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

Purpose4/5

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

States the verb+resource clearly ('Macroeconomic indicators by country') and enumerates the covered indicator families, plus calls out special cases like the commodity forward curve. However, the purpose statement is padded with a sprawling parenthetical list that duplicates the schema enum rather than crisply characterizing the tool, and the text is truncated mid-sentence.

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

Usage Guidelines5/5

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

Explicit operational routing: countries='United States' is required, 'Do NOT use tickers= for this tool', get_commodity_forward_curve needs commodity= instead of countries=, and get_consumer_price_index switches sources via oecd_source=true. It also flags the six US-only FRED-backed indicators and their API-key requirement, all of which steer correct invocation.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.