calculate_growth_rate
Compute absolute and percentage changes for economic time series from FRED. Select comparison by calendar date to avoid off-by-one errors from missing values.
Instructions
Calculate absolute and percentage change for a FRED series.
The comparison observation is selected by calendar date rather
than only by list position, which avoids off-by-one errors when
observations contain missing values.
Examples:
CPIAUCSL with periods=12 for year-over-year change.
GDP with periods=1 for quarter-over-quarter change.
UNRATE with periods=1 for month-over-month change.
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": {
"series_id": "<series_id>"
},
"name": "calculate_growth_rate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| periods | No | ||
| series_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||