# Get run event summary

Tool: `veryfront__get_run_events_summary`

Count run events by type and time bucket without event bodies or usage metrics.

## Arguments

| Name                  | Type                                   | Required | Description                                              |
| --------------------- | -------------------------------------- | -------- | -------------------------------------------------------- |
| `run_id`              | string · uuid                          | Yes      | Run identifier that scopes the request.                  |
| `buckets`             | integer · min 1 · max 500 · default 60 |          | Provide the buckets.                                     |
| `event_class`         | string                                 |          | Provide the event class. One of `fact`, `delta`.         |
| `event_type`          | array of string                        |          | Provide one or more event type values.                   |
| `is_error`            | string                                 |          | Provide the is error. One of `true`, `false`.            |
| `start`               | string · date-time                     |          | Provide the start.                                       |
| `end`                 | string · date-time                     |          | Provide the end.                                         |
| `span_id`             | string · min length 1                  |          | Provide the span id.                                     |
| `turn_id`             | string · min length 1                  |          | Provide the turn id.                                     |
| `search`              | string · min length 1 · max length 200 |          | Provide the search.                                      |
| `include_descendants` | string · default false                 |          | Provide the include descendants. One of `true`, `false`. |

## Responses

| Status | Description                                           |
| ------ | ----------------------------------------------------- |
| 200    | The tool ran; its output is result.structuredContent. |

## Call it

```bash
curl -X POST -N "https://api.veryfront.com/mcp" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Accept: application/json, text/event-stream" \
  -H "Content-Type: application/json" \
  -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "veryfront__get_run_events_summary",
    "arguments": {
      "run_id": "00000000-0000-0000-0000-000000000000"
    }
  }
}'
```

## Example response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"run_id\":\"00000000-0000-0000-0000-000000000000\",\"total\":0,\"error_count\":0,\"first_event_id\":0,\"last_event_id\":0,\"first_event_at\":\"2026-01-01T00:00:00Z\",\"last_event_at\":\"2026-01-01T00:00:00Z\",\"by_event_class\":{\"fact\":0,\"delta\":0},\"by_event_type\":[{\"event_type\":\"string\",\"event_class\":\"fact\",\"count\":0,\"error_count\":0}],\"buckets\":[{\"start\":\"2026-01-01T00:00:00Z\",\"end\":\"2026-01-01T00:00:00Z\",\"count\":0,\"error_count\":0}]}"
      }
    ],
    "structuredContent": {
      "run_id": "00000000-0000-0000-0000-000000000000",
      "total": 0,
      "error_count": 0,
      "first_event_id": 0,
      "last_event_id": 0,
      "first_event_at": "2026-01-01T00:00:00Z",
      "last_event_at": "2026-01-01T00:00:00Z",
      "by_event_class": {
        "fact": 0,
        "delta": 0
      },
      "by_event_type": [
        {
          "event_type": "string",
          "event_class": "fact",
          "count": 0,
          "error_count": 0
        }
      ],
      "buckets": [
        {
          "start": "2026-01-01T00:00:00Z",
          "end": "2026-01-01T00:00:00Z",
          "count": 0,
          "error_count": 0
        }
      ]
    }
  }
}
```
