Home / Servers / Vercel API / create_observability_query
POST /v2/observability/query
An MCP tool from the Vercel API server, hosted on mcp.hjlabs.in.
POST /v2/observability/query [POST /v2/observability/query]
Name on the gateway: vercel_api__create_observability_query · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
metric required | string | Metric id |
scope required | object | Owner or project scope for the query |
aggregation | string | Aggregation function to apply. Some aggregations require a dimension: use /… |
groupBy | array | Dimensions to group results by. JSON dimensions support nested refs, for… |
filter | string | Filter to apply to the query. JSON dimensions support nested refs, for example… |
limit | number | Maximum number of results |
orderBy | string | Rollup column to order grouped results by. Use the generated rollup key for… |
orderDirection | asc | desc | Direction to order grouped results by. Defaults to desc. |
granularity | object | Time bucket size |
startTime | string | Start timestamp |
endTime | string | End timestamp |
bucketTimezone | string | IANA timezone (e.g. Europe/Paris) used only to align calendar buckets (1d/1mo)… |
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__create_observability_query",
"arguments": {
"metric": "…",
"scope": "…"
}
}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 post /v2/observability/query tool with metric set to ….