live_analytics
Read live KPI dashboard data from the tracing store to monitor volume, cost, latency, error rate, agent/channel breakdowns, and top tools.
Instructions
Live KPI dashboard data (read from the tracing store): volume, cost,
latency percentiles, error rate, per-agent/channel breakdowns, top tools.
Same payload as /admin/live/analytics.json. hours is clamped to
[1, 8760]; status must be success | error | '' (both = no filter).
trace_env (dev|staging|prod|'') scopes to traces tagged with that
environment — unlike env elsewhere, this isn't restricted to staging|prod
since traces can carry a dev tag too (environment is the
deprecated alias). With tracing off (no tracing store configured) the
numbers are empty and notice says so. The per-bucket time series (series, buckets) is
dropped unless include_series=true — the totals and breakdowns answer
most questions and the series is the bulk of the payload.
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": "live_analytics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hours | No | Look-back window in hours (clamped to 1-8760). | |
| status | No | success | error | '' (both). | |
| channel | No | Only traffic from this channel slug. | |
| trace_env | No | Environment tag of the traces to scope telemetry to (dev|staging|prod); '' = all environments. | |
| agent_kind | No | Only this agent kind. | |
| environment | No | DEPRECATED alias of trace_env. | |
| include_series | No | Include the per-bucket time series (large). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |