agent-intern usage statistics (local)
agent_statsSummarize local delegation usage—calls, errors, latency, backend health, weekly trends, token counts, saved swarm answers, and remaining quota—without storing prompts, answers, or raw errors.
Instructions
Show how the delegation tools have been used, from a local file. Calls per backend (ok, errors, average seconds), per day and per week, backend health (error rate and the last error's category), recent swarms with where their saved answers are, token counts where a backend reports them, and Antigravity's remaining quota. Numbers only: no prompt, answer or raw error text is ever stored (turn recording off with AGENT_INTERN_NO_STATS=1). Spends no quota.
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": "agent_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | How many days back to summarise, 1 to 90. Default 7. | |
| watch | No | Also open a local page with charts (127.0.0.1, same token check as the other watch windows). The table is returned either way. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |