stats
Get aggregated usage and health metrics from audit logs: calls, errors, latency, error rate, per model, session, or day over a time window. Spot error spikes or slowdowns without reading raw logs.
Instructions
Read-only usage/health stats aggregated from the ask_fable audit log — see how the tools are performing without spelunking JSONL. Buckets every recorded call over a time window ('1h' | '24h' | '7d' | 'all', default '24h') by 'model', 'session', or 'day', reporting calls / allowed / refused / errors, avg and p95 latency, and error_rate per bucket plus totals. Optional model / session filters narrow to one backend or workflow. Council/chain records also carry quorum, consensus, and synth_fallback in the log. Use it to answer things like 'is GLM erroring a lot today?' or 'how slow are councils this week?'. Makes no model call and is never cached.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | No | Bucket key. 'model' attributes a call to the model that answered (a council to its synthesizer); 'provider' is per backend call — the only view that sees council/chain/debate members one by one, and what the circuit breaker shed (circuit_open); also 'tool', 'session', 'day', 'project', 'cache', 'mode'. | model |
| model | No | Only include records for this model label. | |
| window | No | How far back to aggregate: '1h', '24h', '7d', or 'all'. | 24h |
| session | No | Only include records for this session key. |