Skip to content
Docs

Observability

Investigate errors and request behavior in your projects with runtime logs and traces. You can query observability data and inspect its schema to build queries for a specific issue.

Query observability data.

Parameters

ParameterTypeRequiredDescription
teamIdstringNoTeam ID to use for this operation.
requestBodyobjectYesRequest body for this tool.

Mints a short-lived HS256 JWT scoped to a deployment hostname. The Vercel CLI presents this JWT to the Vercel proxy on requests it wants traced.

Parameters

ParameterTypeRequiredDescription
teamIdstringNoTeam ID to use for this operation.
slugstringNoTeam slug to use for this operation. Use instead of teamId.
requestBodyobjectNoRequest body for this tool.

Lists the projects that are currently configured as disabled for Observability Plus on a team.

Parameters

ParameterTypeRequiredDescription
teamIdstringNoTeam ID to use for this operation.
slugstringNoTeam slug to use for this operation. Use instead of teamId.

Get the observability query schema.

Parameters

This tool takes no parameters.

Get a project trace by request ID.

Parameters

ParameterTypeRequiredDescription
projectIdstringYesThe project ID
requestIdstringYesThe Vercel CLI request ID associated with the trace
teamIdstringNoTeam ID to use for this operation.
slugstringNoTeam slug to use for this operation. Use instead of teamId.

Get grouped runtime error clusters for a project. Each cluster includes the error name, occurrence count, affected routes, sample messages, and when the error was first and last seen. Use this tool to investigate production errors before querying individual entries with get_runtime_logs. Time ranges can span up to 7 days.

ParameterTypeRequiredDefaultDescription
projectIdstringYes-The project ID to get runtime errors for.
teamIdstringYes-The team ID or slug. Use the team that owns the resource.
sincestringNo-Start of the window as an ISO date or relative lookback from now (e.g. "1h", "24h", "7d"). Defaults to 24h ago. Max lookback is 7d.
untilstringNo-Optional end of the window as an ISO date, relative lookback, or "now". Omit this when the end should be the current time.
routesstringNo-Comma-separated route paths to filter by (e.g. "/api/checkout").

Sample prompt: "Why is my production app throwing errors?"

Get runtime logs for a project or deployment. Runtime logs include application output such as console.log messages, errors, and other execution details from Vercel Functions during requests. You can filter logs by environment, log level, source, time range, and full-text search. Use group_by to return counts instead of individual lines. For production errors, start with get_runtime_errors.

ParameterTypeRequiredDefaultDescription
projectIdstringYes-The project ID to get runtime logs for.
teamIdstringYes-The team ID or slug. Use the team that owns the resource.
deploymentIdstringNo-Filter logs to a specific deployment ID or URL.
environmentstringNo-Filter by environment: "production" or "preview". Allowed values: "production", "preview".
levelArray<string>No-Filter by log level(s). Can specify multiple levels. Allowed values: "error", "warning", "info", "fatal".
sourceArray<string>No-Filter by raw log source(s): function or daemon. Allowed values: "function", "daemon".
sincestringNo-Start of the window as an ISO date or relative lookback from now (e.g., "1h", "30m", "7d"). Defaults to the 50 minutes before until (or now), within Hobby's retention window.
untilstringNo-Optional end of the window as an ISO date, relative lookback, or "now". Omit this when the end should be the current time.
limitintegerNo-Maximum number of log entries to return. Defaults to 50, max 100.
querystringNo-Full-text search query to filter logs.
requestIdstringNo-Filter by specific request ID.
group_bystringNo-Return counts grouped by this attribute instead of individual log lines. Use for "how many errors", "source breakdown", "top paths". Fast even over wide time ranges. Allowed values: "requestPath", "level", "source", "deploymentId", "branch".

Sample prompt: "Show me the runtime error logs for my project from the last hour"


Was this helpful?

supported.