Försäljning per artikel
get_sales_by_articleSales per article: top-selling articles, revenue, contribution margin where a purchase price exists, and stocked articles that have not sold in the period. Use when the person asks which articles sell most, or what in stock is not selling. Example question: "Vilka artiklar säljer mest? Vad har vi i lager som inte sålt på länge?" Read-only; computed on the server from live Fortnox data over all pages (Fortnox API, https://api.fortnox.se/apidocs).
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": "get_sales_by_article"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max | No | fakturor att läsa raderna för (standard 100, högst 300) Number. | |
| top | No | antal artiklar i listan, standard 25 Number. | |
| todate | No | fakturadatum till (standard i dag) Date as YYYY-MM-DD unless the text allows more. | |
| fromdate | No | fakturadatum från ÅÅÅÅ-MM-DD (standard 90 dagar bakåt) Date as YYYY-MM-DD unless the text allows more. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||