regression
Fit a linear model between two indicators for one entity to see how X predicts Y, returning slope, intercept, R², and an interpretation.
Instructions
Linear regression of y ~ x for one entity. Returns slope, intercept, R² and interpretation. Use for "how does X predict Y?" questions. Runs on any verified autario indicator (World Bank, FRED, Eurostat, OECD, IMF, WHO, ECB, US Census, SEC).
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": {
"entity": "<entity>",
"y": "<y>",
"x": "<x>"
},
"name": "regression"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | Independent variable (predictor) indicator ID | |
| y | Yes | Dependent variable (target) indicator ID | |
| full | No | Return the full raw time series (heavy, many tokens). Default false → you get only the summary/stats, which is enough to ANSWER a question. Set true only when you must plot or export every point. | |
| time | No | ||
| entity | Yes |