Run Standard Report
run_standard_reportRun one standard report by name (list_standard_reports lists them and the arguments each takes) and return its rows. Pass only the arguments that report lists; any other is refused. Examples: report=top_selling_items with topN=10 and periodDays=30; report=sales_margin with periodDays=90; report=inventory_position with sortBy=runway. At most 200 rows.
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": {
"report": "<report>"
},
"name": "run_standard_report"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topN | No | top_n: how many items. | |
| limit | No | limit: maximum rows. | |
| metric | No | metric: units or revenue. | |
| period | No | period: week, month or quarter (dead stock); day, week or month (matrix). | |
| report | Yes | The report's name from list_standard_reports, e.g. top_selling_items. | |
| sortBy | No | sort_by: runway or on_hand (inventory position). | |
| groupBy | No | group_by: warehouse or sku (total or category for the summary). | |
| dateBasis | No | date_basis: placed (default), completed or paid. | |
| numPeriods | No | num_periods: how many periods the matrix shows. | |
| periodDays | No | period_days: trailing window in days. | |
| horizonDays | No | horizon_days: planning or runway horizon in days. | |
| categoryName | No | category_name: only items in this category. | |
| warehouseName | No | warehouse_name: an exact warehouse name. | |
| revenuePeriodDays | No | revenue_period_days: trailing revenue window (stockout risk). | |
| excludeRawMaterials | No | exclude_raw_materials: leave out production materials. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | No | ||
| report | No | ||
| summary | No | ||
| rowCount | No | ||
| truncated | No | ||
| executedAt | No | ||
| savedReportId | No |