Set auto-recharge
set_auto_rechargeTurn auto-recharge on or off and set when it charges the saved default card: when the balance falls below threshold_usd, it tops up to target_usd. threshold_usd and target_usd are required even to turn it off. Needs the billing permission on this sign-in and a workspace owner or manager behind it; target_usd cannot exceed this sign-in's daily top-up cap (TOPUP_CAP_REACHED), and with no saved card the answer is NO_PAYMENT_METHOD. Returns the settings as get_auto_recharge does.
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": {
"enabled": "<enabled>",
"threshold_usd": "<threshold_usd>",
"target_usd": "<target_usd>"
},
"name": "set_auto_recharge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| enabled | Yes | true to turn auto-recharge on, false to turn it off | |
| workspace | No | Workspace ID (optional: defaults to the authenticated workspace) | |
| target_usd | Yes | Top up to this balance, in USD: 50 to 10000, above threshold_usd | |
| environment | No | Environment name (optional: defaults to the environment this session acts in) | |
| threshold_usd | Yes | Top up when the balance falls below this, in USD: 20 to 5000 |