Set monthly spending cap
set_spend_capSet or change the customer's monthly spending cap: the most that calls, SMS and the voice agent may cost in one calendar month in the account country time zone (Europe/Prague for Czech accounts). capHal is the cap in integer hellers excluding VAT, from 5000 (50.00 CZK) to 100000000 (1,000,000.00 CZK); ask the customer for the amount and, before calling, repeat it to them in crowns, and after the call repeat the amount from the response again. warnShare (0.5 to 0.99, default 0.8) is the share of the cap at which a warning e-mail is sent. inboundAboveCap true keeps answering inbound calls to the account's agents above the cap; the default false makes them end after one sentence at no cost; when omitted on a change, the saved value stays. Once the cap is reached, new outbound calls and SMS fail with spend_cap_reached (HTTP 402) until the month ends or the cap is raised or removed; calls already in progress still finish, so the total can end slightly above the cap. Number fees, the monthly plan and Done for you orders are not counted and not stopped. Calling it again with the same values sets the same cap, but it renews this month's warning e-mails (they can be sent again). Same data as PUT /v1/account/spend-cap (response schema in /openapi.json).
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": {
"capHal": "<capHal>"
},
"name": "set_spend_cap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| capHal | Yes | Monthly cap in integer hellers excluding VAT, 5000 to 100000000. For example 500000 means 5000 CZK. | |
| warnShare | No | Share of the cap at which the warning e-mail is sent, 0.5 to 0.99. Default 0.8: when omitted, 0.8 is used on every call, including a change, because the saved value is not kept. | |
| inboundAboveCap | No | true keeps answering inbound calls to the account's agents above the cap. Default false; omit to keep the saved value. |