v1

latestOpenAPI 3.1.0Apache 2.02026-07-264001921002.3 KB
Logging

Get MCP tool logs

Retrieves MCP tool execution logs with filtering, search, and pagination via query parameters.

get/api/mcp-logs

Query parameters

tool_namesstring

Comma-separated list of tool names to filter by

server_labelsstring

Comma-separated list of server labels to filter by

status'processing' | 'success' | 'error'

Comma-separated list of statuses to filter by (processing, success, error)

virtual_key_idsstring

Comma-separated list of virtual key IDs to filter by

llm_request_idsstring

Comma-separated list of LLM request IDs to filter by

start_timestring date-time

Start time filter (RFC3339 format)

end_timestring date-time

End time filter (RFC3339 format)

min_latencynumber

Minimum latency filter (milliseconds)

max_latencynumber

Maximum latency filter (milliseconds)

content_searchstring

Search in tool arguments and results

limitinteger

Number of logs to return (default 50, max 1000)

offsetinteger

Number of logs to skip

sort_by'timestamp' | 'latency' | 'cost'

Field to sort by

order'asc' | 'desc'

Sort order

Response

Successful response

has_logsboolean

Whether any logs exist in the system