Get Population
get_populationFetch annual total population (SP.POP.TOTL) for a country from the World Bank, defaulting to 2015-2024. Returns a year-by-year array of values. Shortcut for get_indicator.
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": {
"country_code": "BR"
},
"name": "get_population"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| country_code | Yes | ISO country code (e.g., "US", "GBR", "CN") |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Time-series population data sorted by year descending | |
| country | Yes | Country name or code | |
| country_id | Yes | World Bank country ID | |
| date_range | Yes | Requested date range in start:end format | |
| indicator_id | Yes | World Bank indicator code | |
| last_updated | Yes | Last update timestamp from World Bank API | |
| total_records | Yes | Total number of records available | |
| indicator_name | Yes | Full indicator name/description |