Home / Servers / Vercel API / aggregate_events
Aggregates custom events
An MCP tool from the Vercel API server, hosted on mcp.hjlabs.in.
Aggregates custom events Counts custom events on a project, within the requested date range. Results are either aggregated or broken down over time. Results can additionally be broken down by one dimension, and filtered by… [GET /v1/query/web-analytics/events/aggregate]
Name on the gateway: vercel_api__aggregate_events · read-only.
Parameters
| Name | Type | Description |
|---|---|---|
projectId required | string | The project identifier or the project name |
by required | array | Up to two dimensions used to break down results. At most one time granularity… |
since required | number | Timestamp in milliseconds, or a valid Date string. Selects data from… |
until required | number | Timestamp in milliseconds, or a valid Date string. Selects data until… |
limit | integer | Number of distinct results, default to 10. Other results are grouped into… |
filter | string | OData-compliant filter. Encode the value when sending it in a URL. Allows… |
teamId | string | The Team identifier to perform the request on behalf of. |
slug | string | The Team slug to perform the request on behalf of. |
How to call it
Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:
{
"name": "vercel_api__aggregate_events",
"arguments": {
"projectId": "…",
"by": [],
"since": 0,
"until": 0
}
}Or connect the Vercel API server directly, which lists 472 tools including this one:
claude mcp add --transport http hj-vercel-api https://mcp.hjlabs.in/mcp/vercel-api \
--header "Authorization: Bearer YOUR_API_KEY"Try asking
Use the aggregates custom events tool with projectId set to ….