GDP Data
GDPDataGDP Data: Get GDP (Gross Domestic Product) data for any country including current values and historical data going back to 1960. With changes=true it also returns the direction against the previous year, and on paid plans the prior year's GDP, the dollar and percent change, whether real growth is accelerating or slowing, and 5- and 10-year compound annual growth. (Cost: 2 credits)
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": {
"country": "<country>"
},
"name": "GDPData"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | No | Specific year to retrieve data for (1960-present). Returns latest if not specified. | |
| changes | No | Include the change against the previous year, the growth trend, the 5-year average growth rate and the 5- and 10-year compound annual growth rates | |
| country | Yes | ISO 2 or 3-letter country code (e.g., US, USA, GB, GBR) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| error | No | Error message, null on success | |
| status | No | "ok" on success |