Get Gdp
get_gdpFetch annual GDP in current USD (NY.GDP.MKTP.CD) 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": "DE"
},
"name": "get_gdp"
}
}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 GDP data in current USD 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 |