工具 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 积分

调用信息

工具标识
mcp-server-neon.query_logs
服务提供方
Neon
平均响应
0 ms
近 7 天调用
0

输入参数

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_id必填

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