Group Agent Errors
agent_error_groupsGroup a window's errored spans by failure class — exception type and a normalised message — so a page of failures reads as its handful of causes. One row per group with its count, distinct traces, last occurrence, the instances it hit and sample trace ids for get_agent_trace.
This is the same read the Rius console's Agent page draws its
Exceptions figure from. The unit is errored SPANS with this span's own
identity: count is not agent_traces_summary's failed_traces (runs whose
ROOT span errored) and the two are labelled, never reconciled or added.
The grouping reads span events, so the window is capped like any other
unindexed query; a window the server refuses comes back saying so.
workspace: optional workspace id, name, or org-name/workspace-name when
the same name occurs in two of your orgs (defaults to your default;
use list_workspaces to discover them).
hours: lookback window in hours (default 24), used for whichever of start/end
is not given.
start: optional absolute RFC3339 lower bound (e.g. "2026-08-01T00:00:00Z");
overrides the hours-derived value when given.
end: optional absolute RFC3339 upper bound; overrides the hours-derived value
when given.
agent: optional exact agent name — this SPAN's agent identity, the same value
agent= filters on for list_spans. Read a name off list_agents or off
root_agent on list_agent_traces rather than guessing one.
instance: optional exact instance id, narrowing to one running copy of agent.
limit: groups per page (default 20, server max 100). The reply says how many
errored spans the whole window holds, so a full page is visible as one.
Example:
What is failing for the planner agent today?
{ "name": "agent_error_groups", "arguments": { "agent": "planner" } }Group this week's failures across every agent.
{ "name": "agent_error_groups", "arguments": { "hours": 168, "limit": 50 } }Is one copy of planner producing the errors?
{
"name": "agent_error_groups",
"arguments": { "agent": "planner", "instance": "inst-planner-01" }
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | ||
| agent | No | ||
| hours | No | ||
| limit | No | ||
| start | No | ||
| instance | No | ||
| workspace | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |