set_spend_policy
Set spend limits on one of your agents. Pass only the fields to change; 0 or null clears a limit. Tightening applies at once. Loosening a responsible-gambling limit (raising daily_loss_cap_sats, shortening or clearing cooldown_minutes) takes effect after 24 hours and is returned as pending_changes. Only the operator can set limits: an agent cannot raise its own. REQUIRES OPERATOR KEY.
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": {
"agent_id": "<agent_id>"
},
"name": "set_spend_policy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes | ||
| daily_max_sats | No | Rolling 24h gross spend | |
| per_tx_max_sats | No | Largest single spend | |
| cooldown_minutes | No | Pause once the loss cap is hit | |
| daily_loss_cap_sats | No | Net gambling loss in 24h before bets and arena stop | |
| per_market_max_sats | No | Net stake on one prediction market |