Preview service calculation
figa_preview_service_calculationPreview service price/weekday settings and calculated amounts without saving. fromMonth must be later than both the current month in the service timezone and the service start month. expectedRevision identifies the current settings version. comparison: true returns before/after calculations for the effective and following month; otherwise only the proposed effective-month calculation is returned.
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": {
"workspaceId": "<workspaceId>",
"expenseId": "<expenseId>",
"settings": "<settings>"
},
"name": "figa_preview_service_calculation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| settings | Yes | unitPrice: price per session in minor units; weekdays: unique days counted, 0 (Sunday) to 6 (Saturday); fromMonth: first month (YYYY-MM) using these settings; expectedRevision: current settingsRevision. | |
| expenseId | Yes | Template ID of the service billed per session. Occurrence IDs and virtual aliases are rejected. | |
| comparison | No | true returns before/after calculations for the effective and following month. | |
| workspaceId | Yes | ID of a workspace selected for this connection. Other workspaces are rejected. |