Skip to main content
Glama

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

NameRequiredDescriptionDefault
envNoConfig branch: which `environment` rows of the AI config DB to read/write. staging = the editable working set (default); prod = what production serves.staging
noteNoFree-text note.
actionYesOperation to run: list | get | set | delete. The tool description lists what each action needs.
business_idNoTenant business UUID, or any other tenant id (mapped to a stable UUID).
daily_secondsNoDaily duplex-voice allowance in audio seconds.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden and does well: it discloses upsert semantics, that non-UUID business_ids map to the same derived row the voice edge charges, that delete falls back to the engine default, and that the store mirrors the portal card. It omits permission/auth requirements and rate-limit behavior, so not exhaustive.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the resource definition, then a compact per-action breakdown where every clause carries operational detail. The nested parentheses in the final sentence are dense and slightly harder to parse than a bulleted form would be, but no sentence is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists so return values needn't be explained, and the description still covers the mutation consequences that matter (upsert, delete fallback). Remaining gaps — get's scoping, auth requirements, pagination of list — are minor for a 5-parameter admin tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3, but the description genuinely adds meaning: it ties business_id and daily_seconds to the set action and explains the non-UUID mapping behavior that the schema's 'mapped to a stable UUID' phrasing only hints at. The daily_seconds unit (audio seconds/day) is reinforced beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening line names a specific resource — per-tenant daily duplex-voice allowances backed by ai_voice_budgets in audio seconds/day — and the action enumeration makes the CRUD surface unambiguous. It does not explicitly contrast itself with the voice_insights or voice_scenarios siblings, so it stops short of full sibling differentiation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Each action carries its own requirement: set needs business_id + daily_seconds, delete triggers fallback to VOICE_LIVE_DAILY_SECONDS, list rows include used_today. It also pre-empts a likely misuse by stating the allowance is per TENANT, not per model — a real usage clarification. No explicit when-not-to-use guidance, hence not a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.