Compute Profit and Loss
compute_profit_and_lossCalculate profit and loss for a date range by subtracting expenses from revenue, excluding account 9000 and legacy YECL closing journals.
Instructions
Compute profit and loss statement (kasumiaruanne) for a period. Shows revenue minus expenses; account 9000 (Arvestuslik koondtulemus, the RIK year-end close counter-account) and legacy YECL closing journals are excluded.
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": {
"date_from": "<date_from>",
"date_to": "<date_to>"
},
"name": "compute_profit_and_loss"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fresh | No | Clear cached API/reference data before computing this report (use after web UI changes). | |
| date_to | Yes | Period end (YYYY-MM-DD) | |
| date_from | Yes | Period start (YYYY-MM-DD) |