macro_rank
Country ranking: sort all economies by one World Development Indicator for a year (default: each country's latest value), highest first or lowest first, optionally filtered by World Bank region or income group. Aggregates (World, regions) excluded unless requested. CC BY 4.0. Price: $0.02 USDC per request (fixed; one paid HTTP GET = one charge; x402 exact on Base or MPP on Tempo; 4xx errors are not charged).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"indicator": "<indicator>"
},
"name": "macro_rank"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | No | year; default latest available per country | |
| limit | No | 1-300, default 50 | |
| order | No | desc (default) or asc | |
| income | No | income group substring, e.g. High income, Lower middle | |
| region | No | World Bank region substring, e.g. Latin America, Sub-Saharan | |
| indicator | Yes | indicator key from /macro/indicators | |
| aggregates | No | true to include regional/income aggregates |