voice_budgets
Manage per-tenant daily duplex-voice allowances in audio seconds: list usage, get, set/upsert, or delete budgets so tenants fall back to the engine default.
Instructions
Per-tenant daily duplex-voice allowances (ai_voice_budgets, audio seconds/day). action: list (each row includes used_today) | get | set (business_id + daily_seconds; upsert — business_id may be any tenant id, non-UUIDs are mapped to the same derived row the voice edge charges) | delete (tenant falls back to the engine default, VOICE_LIVE_DAILY_SECONDS). Mirrors the portal's Duplex-voice budgets card (on any realtime model's detail page — the allowance is per TENANT, not per model; POST /admin/voice-budgets is still the write route).
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": {
"action": "<action>"
},
"name": "voice_budgets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | Config branch: which `environment` rows of the AI config DB to read/write. staging = the editable working set (default); prod = what production serves. | staging |
| note | No | Free-text note. | |
| action | Yes | Operation to run: list | get | set | delete. The tool description lists what each action needs. | |
| business_id | No | Tenant business UUID, or any other tenant id (mapped to a stable UUID). | |
| daily_seconds | No | Daily duplex-voice allowance in audio seconds. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |