events query
events_queryDeclarative query over a JSON event log (array, NDJSON or a URL to either, up to 500,000 events) without writing a parser: filter on dotted field paths (eq, ne, gt, gte, lt, lte, contains, regex, in, exists, missing), sort by a field, compute the delta and percent change between successive events (optionally per group_by key, e.g. per agent) and keep only events whose delta crosses a threshold, collapse runs shorter than N consecutive events, pick output fields, and get group counts, delta stats and a manifest of every field the query assumed. Built for agent traces, latency logs and state-transition dumps. Costs $0.004 USDC per call (x402).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"events": "<events>"
},
"name": "events_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| delta | No | {field, op (gt|lt|abs), threshold} | |
| limit | No | ||
| where | No | [{field, op, value}] | |
| events | Yes | JSON array, NDJSON string, or URL | |
| select | No | comma-separated field paths | |
| sort_by | No | ||
| group_by | No | ||
| collapse_runs_shorter_than | No |