Resultaträkning
get_profit_and_lossProfit and loss statement: income and expenses per account class for the financial year, a month, a quarter or another period of whole months, compared with the same period the year before. Use when the person asks for the income statement or how a period went. period takes YYYY-MM, YYYY-Qn or YYYY. Example question: "Visa resultaträkningen för mars. Hur gick kvartal 3 jämfört med i fjol?" 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_profit_and_loss"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | ÅÅÅÅ-MM-DD för att välja år Date as YYYY-MM-DD unless the text allows more. | |
| period | No | en månad "2026-03", ett kvartal "2026-Q3" eller ett kalenderår "2026"; utelämnad = hela räkenskapsåret YYYY-MM, YYYY-Qn or YYYY. | |
| todate | No | ÅÅÅÅ-MM eller ÅÅÅÅ-MM-DD: periodens slut Date as YYYY-MM-DD unless the text allows more. | |
| fromdate | No | ÅÅÅÅ-MM eller ÅÅÅÅ-MM-DD: periodens början (räknas i hela månader) Date as YYYY-MM-DD unless the text allows more. | |
| financialyear | No | räkenskapsårets id; standard det som innehåller i dag Number. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||