analyze
Statistics computed server-side on verified autario indicators (World Bank, FRED, Eurostat, OECD, IMF, WHO, SEC): correlation, regression, growth, drivers, seasonality, value checks.
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": {
"action": "<action>"
},
"name": "analyze"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | No | correlate: First indicator ID calculate: First operand A (the numerator of a ratio). Indicator id of a numeric series, exactly as find_data action "indicators" or get_data action "profile" return it (a public indicator or one of your own uploads or connector tables). lag_analysis: First indicator id (candidate leading series) | |
| b | No | correlate: Second indicator ID calculate: Second operand B (the denominator of a ratio). Indicator id of a numeric series, exactly as find_data action "indicators" or get_data action "profile" return it (a public indicator or one of your own uploads or connector tables). lag_analysis: Second indicator id (candidate lagging series) | |
| x | No | Independent variable (predictor) indicator ID | |
| y | No | Dependent variable (target) indicator ID | |
| op | No | rolling_stats: mean | std | min | max | sum (default: mean) calculate: ratio | ratio_pct | diff | sum | product (default: ratio) | |
| 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 | describe, regression, pct_change, rolling_stats, calculate, lag_analysis, seasonality, find_drivers, decompose_drivers, what_matters: Optional time window. "2010-2023" keeps 2010 through 2023, "2019-01-2024-06" works by month, and a single "2015" keeps 2015 onward. Omitted or unparseable = the whole series. correlate: Optional time range: "2010-2023" verify_value: Time period (e.g. "2023" or "2023-06") | |
| action | Yes | Which operation to run. describe = summary statistics and trend of one series, needs indicator, entity; correlate = correlation between two series, needs entity, a, b; regression = linear regression of y on x, needs entity, y, x; pct_change = percent change and growth over a period, needs entity, indicator; rolling_stats = rolling mean, sum or other window statistic, needs entity, indicator; calculate = arithmetic between two series, checked for compatible meaning, needs a, b, entity; lag_analysis = lead and lag between two series, needs a, b, entity; seasonality = trend, seasonal and residual parts of a series, needs indicator, entity; find_drivers = which candidate indicators move with a target, needs entity, target_indicator, candidates; decompose_drivers = share of a target's change explained by each candidate, needs target_indicator, candidates; what_matters = ranked factors behind an outcome, needs entity, outcome; verify_value = check a quoted number against the source, needs indicator, entity, time. | |
| entity | No | describe, regression, pct_change, rolling_stats, calculate, seasonality: Entity the series is read for: an ISO 3166 alpha-3 country code such as "DEU" or "USA", or an aggregate code such as "WLD" or "EUU" (the canonical name matches too). Use the codes find_data action "indicators" and get_data action "profile" accept. correlate, find_drivers: Entity code (e.g. DEU) lag_analysis: Entity code (e.g. USA) decompose_drivers: Entity code (e.g. DEU). Omit for entity-less private series. what_matters: Entity code (e.g. USA, DEU) verify_value: Entity code (e.g. DEU, USA, EUU) | |
| period | No | pct_change: yoy | qoq | mom (default: yoy) seasonality: Seasonal period in time steps (12=monthly, 4=quarterly, 7=weekly). Auto-inferred from indicator frequency if omitted. | |
| reason | No | Why the refused combination is correct here. Returned with the result so a human can audit the decision. | |
| window | No | Window size in periods (2-100, default 5) | |
| max_lag | No | lag_analysis: Max lag in periods (1-20, default 5) decompose_drivers: Max lead/lag periods to scan per candidate (0 disables, default 5, max 20) | |
| outcome | No | Indicator id of the outcome metric | |
| expected | No | The value you want to verify. Omit for existence-only check. | |
| override | No | Compute a combination autario refused as incompatible. Requires `reason`. | |
| indicator | No | describe, pct_change, rolling_stats, seasonality: Indicator id of a numeric series, exactly as find_data action "indicators" or get_data action "profile" return it (a public indicator or one of your own uploads or connector tables). verify_value: Indicator ID | |
| candidates | No | find_drivers: Candidate indicator IDs to test (max 30) decompose_drivers: Candidate indicator ids to decompose jointly (2-15) what_matters: Optional comma-separated candidate indicator ids. If omitted, auto-selects from ontology. | |
| target_indicator | No | The KPI you want to explain |