FORECAST_FINANCIALS_STATISTICAL
Uses linear regression (Trendline) to mathematically forecast future financials based on historical data. Outputs to Excel with charts.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
output_path | string | yes | — |
metric_name | string | yes | e.g., 'Monthly Revenue' |
historical_data | array | yes | List of historical numbers |
forecast_periods | integer | — | Number of periods into the future to predict (default 12) |
How to use it
You normally trigger this by describing what you want in chat — the agent selects FORECAST_FINANCIALS_STATISTICAL automatically. For example:
Try saying
“use analyst tools to forecast …”
In a workflow
As a step in a multi-step workflow DAG:
json
{
"id": "s1",
"agent": "analyst_tools",
"action": "FORECAST_FINANCIALS_STATISTICAL",
"args": {
"output_path": "/Users/me/Documents/file.txt",
"metric_name": "…",
"historical_data": []
},
"depends_on": [],
"outputs": []
}Direct call
For scripting, call it directly via POST /execute_tool. Every tool returns { success, message, data }.
bash
curl -X POST http://127.0.0.1:8000/execute_tool \
-H "Content-Type: application/json" \
-d '{"tool_name":"FORECAST_FINANCIALS_STATISTICAL","args":{"output_path":"/Users/me/Documents/file.txt","metric_name":"…","historical_data":[]}}'Part of the analyst_tools plugin. Browse the full Plugin & Tool Catalog or the relevant feature guide.