Skip to main content
Glama

voice_insights

Read-only

Roll up duplex-voice latency metrics for a look-back window: sessions, turns, tool calls, barge-ins, and p50/p95 timings from end-of-turn to first audio or spoken answer.

Instructions

Duplex-voice latency rollup — the Live Monitor's voice card (admin.screens.observability.load_voice_live_insights): sessions, assistant turns, tool calls, barge-ins, and p50/p95 of end-of-turn -> first audio, end-of-turn -> spoken answer, delegate wall time and brain LLM time, over the last hours (clamped to [1, 8760]). ch_ok: false + notice means the tracing store was unreachable or is not set up (numbers are blanks, not zeros). For one call's audio use traces(action="audio").

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "voice_insights"
  }
}

Input Schema

NameRequiredDescriptionDefault
hoursNoLook-back window in hours (clamped to 1-8760).
trace_envNoEnvironment tag of the traces to scope telemetry to (dev|staging|prod); '' = all environments.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations only state readOnlyHint=true, and the description adds genuinely useful behavior beyond that: the hours value is clamped to [1, 8760], and a `ch_ok: false` plus `notice` response means the tracing store was unreachable or unconfigured, with blanks rather than zeros. That failure-mode semantics is exactly the context an agent cannot get from annotations. Minor gaps such as cost or latency of the query remain, so not a 5.

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?

The metric list is front-loaded and information-dense, with no filler sentences. The embedded internal route `admin.screens.observability.load_voice_live_insights` and the hard line breaks inside a single sentence add some noise an agent cannot act on, which keeps it from a 5.

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

Completeness5/5

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

For a two-optional-parameter read-only rollup with a full output schema, the description covers scope (hours), environment, the fields returned, and the degraded-response case. Nothing needed to call it correctly or interpret a blank result is missing.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already documents both `hours` (with the same 1-8760 clamp) and `trace_env` ('= all environments'). The description only restates the clamping, which duplicates the schema, and says nothing about trace_env; baseline 3 applies when structured fields do the work.

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

Purpose5/5

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

The description names the specific resource (duplex-voice latency rollup) and enumerates the exact metrics returned: sessions, assistant turns, tool calls, barge-ins, and p50/p95 for end-of-turn -> first audio, spoken answer, delegate wall time and brain LLM time. That is far more specific than the title and makes it distinguishable from generic telemetry tools.

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?

It gives an explicit boundary case: 'For one call's audio use traces(action="audio")', so the agent knows when to route elsewhere. It also implies the aggregate-over-hours use case. It stops short of full when/when-not guidance relative to concepts like voice_budgets, so it is strong but not exhaustive.

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