---
title: "Get MCP tool log statistics"
method: GET
path: "/api/mcp-logs/stats"
tags: ["Logging"]
---

# Get MCP tool log statistics

`GET /api/mcp-logs/stats`

Returns statistics for MCP tool logs matching the specified filters.

## Query parameters

- `tool_names` string
- `server_labels` string
- `status` 'processing' | 'success' | 'error'
- `virtual_key_ids` string
- `llm_request_ids` string
- `start_time` string, date-time
- `end_time` string, date-time
- `min_latency` number
- `max_latency` number
- `content_search` string

## Response `200`

Successful response

- object — 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

## Other responses

- `400` — Bad request
- `500` — Internal server error

---

[API](https://skmtc.net/getbifrost/apis/bifrost-api.md) · [All operations](https://skmtc.net/getbifrost/apis/bifrost-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/getbifrost/bifrost-api/versions/f8cab88f64ea/schema)
