reports_sales_analysis
Generates a sales analysis report for a date range, returning KPI summaries, monthly revenue trends, recent invoices, top clients, and top products so you can track invoiced, collected, and outstanding amounts.
Instructions
Generate a sales analysis report for a date range. Returns KPI summary (annual total, invoiced, collected, outstanding), monthly revenue trends, recent invoices, top clients, and top products. Requires X-Company header (companyId param or STORNO_COMPANY_ID env var).
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": {
"dateFrom": "<dateFrom>",
"dateTo": "<dateTo>"
},
"name": "reports_sales_analysis"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dateTo | Yes | End date in YYYY-MM-DD format (e.g. 2026-02-26) | |
| dateFrom | Yes | Start date in YYYY-MM-DD format (e.g. 2026-01-01) | |
| companyId | No | Company UUID (overrides STORNO_COMPANY_ID env var) |