TOOL API

query_logs

Returns logs for a branch. Pass `limit` to cap how many. There is no `cursor` argument. Filters combine with AND. Pass `logql` instead of structured filters, not with them. Give the window as `since` or `start_time`, not both; default is the previous hour, max seven days; `end_time` is exclusive. Private beta; a branch without logs access returns HTTP 404 with reason "telemetry_not_enabled". branch_id is a branch id (br-...), not a branch name. Call list_branches to resolve a name.

devOAuth1 credits

Call information

Tool slug
mcp-server-neon.query_logs
Provider
Neon
Average response
0 ms
Calls in 7 days
0

Input parameters

project_id

Required for an unscoped connection. May be omitted when the connection is scoped to one project; if provided, it must match that project.

branch_idrequired

string

since

string

start_time

string

end_time

string

limit

integer

sort_order

string

source

string

service_name

string

scope_name

string

minimum_severity

string

severity_text

string

body_contains

string

trace_id

string

logql

string