Skip to main content
GET
/
api
/
mcp-logs
/
stats
Get MCP tool log statistics
curl --request GET \
  --url http://localhost:8080/api/mcp-logs/stats
{
  "total_executions": 123,
  "success_rate": 123,
  "average_latency": 123,
  "total_cost": 123
}

Query Parameters

tool_names
string

Comma-separated list of tool names to filter by

server_labels
string

Comma-separated list of server labels to filter by

status
enum<string>

Comma-separated list of statuses to filter by

Available options:
processing,
success,
error
virtual_key_ids
string

Comma-separated list of virtual key IDs to filter by

llm_request_ids
string

Comma-separated list of LLM request IDs to filter by

start_time
string<date-time>

Start time filter (RFC3339 format)

end_time
string<date-time>

End time filter (RFC3339 format)

min_latency
number

Minimum latency filter

max_latency
number

Maximum latency filter

Search in tool arguments and results

Response

Successful response

MCP tool log statistics

total_executions
integer

Total number of tool executions

success_rate
number

Success rate percentage

average_latency
number

Average execution latency in milliseconds

total_cost
number

Total cost in dollars for all executions