> ## Documentation Index
> Fetch the complete documentation index at: https://veryfront.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Get run event summary

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

`veryfront__get_run_events_summary`

## Access

No external-service connection is required. Use a Veryfront credential with access to the requested resources.

**Call type:** Read-only.

## Arguments

| Field | Type | Required | Description and constraints |
| - | - | - | - |
| `run_id` | `string` | Yes | Run identifier that scopes the request. Format: `uuid`. |
| `buckets` | `integer` | No | Provide the buckets. Default: `60`. Minimum: `1`. Maximum: `500`. |
| `event_class` | `string` | No | Provide the event class. Values: `"fact"`, `"delta"`. |
| `event_type` | `string[]` | No | Provide one or more event type values. |
| `is_error` | `string` | No | Provide the is error. Values: `"true"`, `"false"`. |
| `start` | `string` | No | Provide the start. Format: `date-time`. |
| `end` | `string` | No | Provide the end. Format: `date-time`. |
| `span_id` | `string` | No | Provide the span id. Minimum length: `1`. |
| `turn_id` | `string` | No | Provide the turn id. Minimum length: `1`. |
| `search` | `string` | No | Provide the search. Minimum length: `1`. Maximum length: `200`. |
| `include_descendants` | `string` | No | Provide the include descendants. Default: `"false"`. |

## Example request

Send this JSON-RPC request through an initialized MCP client. Replace sample identifiers and values before calling the tool. See [MCP client setup](https://veryfront.com/docs/cloud/getting-started/connect-mcp.md).

```json title="request.json" theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "veryfront__get_run_events_summary",
    "arguments": {
      "run_id": "00000000-0000-4000-8000-000000000000"
    }
  }
}
```

## Result

The published output shape is summarized below. Inspect both the MCP response content and `isError` when handling a call.

| Field | Type | Required | Description and constraints |
| - | - | - | - |
| `run_id` | `string` | Yes | Run identifier associated with this result. Format: `uuid`. |
| `total` | `integer` | Yes | The total returned by the tool. Minimum: `0`. |
| `error_count` | `integer` | Yes | The error count returned by the tool. Minimum: `0`. |
| `first_event_id` | `integer or null` | Yes | The first event id returned by the tool. |
| `last_event_id` | `integer or null` | Yes | The last event id returned by the tool. |
| `first_event_at` | `string or null` | Yes | The first event at returned by the tool. |
| `last_event_at` | `string or null` | Yes | The last event at returned by the tool. |
| `by_event_class` | `object` | Yes | Structured by event class details returned by the tool. |
| `by_event_type` | `object[]` | Yes | List of by event type returned by the tool. |
| `buckets` | `object[]` | Yes | Half-open time buckets `[start, end)` covering `first_event_at` through `last_event_at + 1 ms`. Boundaries use whole milliseconds; widths differ by at most 1 ms. Boundaries can be passed directly as the event-list `start` and `end` filters. The bucket count cannot exceed the span in milliseconds. Empty if no events match. |

## Full schemas

```json title="input-schema.json" theme={null}
{
  "type": "object",
  "properties": {
    "run_id": {
      "type": "string",
      "format": "uuid",
      "description": "Run identifier that scopes the request."
    },
    "buckets": {
      "type": "integer",
      "minimum": 1,
      "maximum": 500,
      "default": 60,
      "description": "Provide the buckets."
    },
    "event_class": {
      "type": "string",
      "enum": [
        "fact",
        "delta"
      ],
      "description": "Provide the event class."
    },
    "event_type": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "One event type item supplied to the tool."
      },
      "maxItems": 32,
      "description": "Provide one or more event type values."
    },
    "is_error": {
      "type": "string",
      "enum": [
        "true",
        "false"
      ],
      "description": "Provide the is error."
    },
    "start": {
      "type": "string",
      "format": "date-time",
      "description": "Provide the start."
    },
    "end": {
      "type": "string",
      "format": "date-time",
      "description": "Provide the end."
    },
    "span_id": {
      "type": "string",
      "minLength": 1,
      "description": "Provide the span id."
    },
    "turn_id": {
      "type": "string",
      "minLength": 1,
      "description": "Provide the turn id."
    },
    "search": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "description": "Provide the search."
    },
    "include_descendants": {
      "$ref": "#/properties/is_error",
      "default": "false",
      "description": "Provide the include descendants."
    }
  },
  "required": [
    "run_id"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#",
  "description": "Arguments for the get_run_events_summary tool."
}
```

```json title="output-schema.json" theme={null}
{
  "type": "object",
  "properties": {
    "run_id": {
      "type": "string",
      "format": "uuid",
      "description": "Run identifier associated with this result."
    },
    "total": {
      "type": "integer",
      "minimum": 0,
      "description": "The total returned by the tool."
    },
    "error_count": {
      "type": "integer",
      "minimum": 0,
      "description": "The error count returned by the tool."
    },
    "first_event_id": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 0,
          "description": "The first event id returned by the tool."
        },
        {
          "type": "null",
          "description": "The first event id returned by the tool."
        }
      ],
      "description": "The first event id returned by the tool."
    },
    "last_event_id": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 0,
          "description": "The last event id returned by the tool."
        },
        {
          "type": "null",
          "description": "The last event id returned by the tool."
        }
      ],
      "description": "The last event id returned by the tool."
    },
    "first_event_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time",
          "description": "The first event at returned by the tool."
        },
        {
          "type": "null",
          "description": "The first event at returned by the tool."
        }
      ],
      "description": "The first event at returned by the tool."
    },
    "last_event_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time",
          "description": "The last event at returned by the tool."
        },
        {
          "type": "null",
          "description": "The last event at returned by the tool."
        }
      ],
      "description": "The last event at returned by the tool."
    },
    "by_event_class": {
      "type": "object",
      "properties": {
        "fact": {
          "type": "integer",
          "minimum": 0,
          "description": "The fact returned by the tool."
        },
        "delta": {
          "type": "integer",
          "minimum": 0,
          "description": "The delta returned by the tool."
        }
      },
      "required": [
        "fact",
        "delta"
      ],
      "additionalProperties": false,
      "description": "Structured by event class details returned by the tool."
    },
    "by_event_type": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "event_type": {
            "type": "string",
            "minLength": 1,
            "description": "The event type returned by the tool."
          },
          "event_class": {
            "type": "string",
            "enum": [
              "fact",
              "delta"
            ],
            "description": "The event class associated with this record."
          },
          "count": {
            "type": "integer",
            "minimum": 0,
            "description": "The count returned by the tool."
          },
          "error_count": {
            "type": "integer",
            "minimum": 0,
            "description": "The error count returned by the tool."
          }
        },
        "required": [
          "event_type",
          "event_class",
          "count",
          "error_count"
        ],
        "additionalProperties": false,
        "description": "One by event type item returned by the tool."
      },
      "description": "List of by event type returned by the tool."
    },
    "buckets": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "start": {
            "type": "string",
            "format": "date-time",
            "description": "The start returned by the tool."
          },
          "end": {
            "type": "string",
            "format": "date-time",
            "description": "The end returned by the tool."
          },
          "count": {
            "type": "integer",
            "minimum": 0,
            "description": "The count returned by the tool."
          },
          "error_count": {
            "type": "integer",
            "minimum": 0,
            "description": "The error count returned by the tool."
          }
        },
        "required": [
          "start",
          "end",
          "count",
          "error_count"
        ],
        "additionalProperties": false,
        "description": "One bucket item returned by the tool."
      },
      "description": "Half-open time buckets `[start, end)` covering `first_event_at` through `last_event_at + 1 ms`. Boundaries use whole milliseconds; widths differ by at most 1 ms. Boundaries can be passed directly as the event-list `start` and `end` filters. The bucket count cannot exceed the span in milliseconds. Empty if no events match."
    }
  },
  "required": [
    "run_id",
    "total",
    "error_count",
    "first_event_id",
    "last_event_id",
    "first_event_at",
    "last_event_at",
    "by_event_class",
    "by_event_type",
    "buckets"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#",
  "description": "Structured result returned by the get_run_events_summary tool."
}
```

<details>
  <summary>Try this tool</summary>

  Replace sample arguments with values for your project or connected account. Calls run only when you select Run tool.

  MCP tool call

  Call `veryfront__get_run_events_summary` against the Veryfront MCP endpoint.

  Bearer token or API key

  Arguments (JSON)

  Run tool

  Output JSON

  <pre />
</details>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.