report
Generates aggregated KeyCRM summaries for sales, leads, funnels, manager load, and stale cards across a date range or live pipeline data.
Instructions
Aggregate report over a date range (UTC, YYYY-MM-DD).
kind='sales' - orders: count, revenue (grand_total), average check, breakdown by status_id / manager_id / payment_status. kind='leads' - pipeline cards: count, sum of products_total, breakdown by status_id / pipeline_id / manager_id, plus finished/active split. kind='funnel' - live funnel: cards per status per pipeline, closed share and conversion percent (no date range needed, taken from the pipeline board). kind='managers' - load per manager: cards, closed, active, conversion, products_total. kind='stale' - cards with no updates for more than days (default 7) days.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "report"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | ||
| kind | No | sales | |
| date_to | No | ||
| group_by | No | status | |
| date_from | No | ||
| max_items | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |