declarations_recalculate
Recalculate a draft declaration by repopulating its data from current invoices; works only on declarations in draft status.
Instructions
Recalculate a draft declaration by re-populating its data from current invoices. Only works on declarations in "draft" status.
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": {
"id": "<id>"
},
"name": "declarations_recalculate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Declaration UUID to recalculate | |
| companyId | No | Company UUID (overrides STORNO_COMPANY_ID env var) |