Skip to main content
Glama

Rank countries by macro indicator

get_macro_indicators
Read-only

Compare countries on GDP growth, inflation, debt, unemployment, housing, credit, confidence or macro stress; rank up to 200 economies or compare a named set with values, periods and sources.

Instructions

Cross-country macro comparison from Bullrun's Global Markets warehouse: rank up to ~200 countries on one indicator (GDP growth annual or quarterly, CPI inflation, government debt/GDP, unemployment, youth unemployment, real house-price growth, house price-to-income and price-to-rent vs history, BIS credit-to-GDP gap, household debt service, household credit/GDP, business and consumer confidence, or Bullrun's macro stress score), or compare a named set of countries. Every row has value, period, source and a historyCode for get_macro_history. Use for "fastest growing economies", "highest inflation in Europe", "most indebted G7 government", "where is housing most overvalued", "compare unemployment in Spain, Italy and Greece". Read-only.

Input Schema

NameRequiredDescriptionDefault
limitNo
orderNodesc = highest value first, asc = lowest first.desc
countriesNoOnly these countries (e.g. ["Germany","France","Italy"]); aliases like US/UK understood. Omit for every covered country.
indicatorYesWhich cross-country indicator: gdp_growth (annual), gdp_growth_quarterly, inflation, government_debt, unemployment, youth_unemployment, real_house_prices, house_price_to_income, house_price_to_rent, credit_gap, household_debt_service, household_credit, business_confidence, consumer_confidence, macro_stress (Bullrun composite).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.7.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly/openWorld=false, so the 'Read-only' line is redundant. What earns credit is the added context: coverage of roughly 200 countries, and that every row carries value, period, source and a historyCode — return-shape information the annotations cannot convey and no output schema exists to supply.

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?

The lead clause front-loads the verb, resource and source, and the example queries earn their place by disambiguating the two usage modes. Some length is wasted re-enumerating all 15 indicator values that the enum already lists verbatim.

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 no output schema, the description usefully states row fields (value, period, source, historyCode) and the country universe. Remaining gaps are minor but real: it doesn't say whether the latest available period is used or how to interpret 'vs history' comparators.

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 75% and the enum glosses already explain each indicator; only 'limit' is undocumented. The description adds modest value by expanding friendly names ('government debt/GDP', 'price-to-rent vs history', 'BIS credit-to-GDP gap'), but it never clarifies how 'countries' interacts with ranking or whether the latest period is returned — so it roughly matches the schema baseline.

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?

Names a specific verb (rank/compare) and resource (countries on a macro indicator) plus the source warehouse. It is clearly separable from siblings: get_macro_history is the time-series companion and get_country_macro is the single-country view, so an agent can route without opening 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?

Gives concrete example questions ('fastest growing economies', 'highest inflation in Europe', 'compare unemployment in Spain, Italy and Greece') that map directly onto the two supported modes: rank-all vs. named-country comparison. It also routes to get_macro_history via historyCode. It stops short of explicitly stating when NOT to use it (e.g. single-country profile → get_country_macro).

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