Skip to main content
GET
/
api
/
mcp-logs
/
{id}
Error
A valid request URL is required to generate request examples
{
  "id": "<string>",
  "llm_request_id": "<string>",
  "timestamp": "2023-11-07T05:31:56Z",
  "tool_name": "<string>",
  "server_label": "<string>",
  "virtual_key_id": "<string>",
  "virtual_key_name": "<string>",
  "arguments": {},
  "result": {},
  "error_details": {
    "event_id": "<string>",
    "type": "<string>",
    "is_bifrost_error": true,
    "status_code": 123,
    "error": {
      "type": "<string>",
      "code": "<string>",
      "message": "<string>",
      "param": "<string>",
      "event_id": "<string>"
    },
    "extra_fields": {
      "provider": "openai",
      "model_requested": "<string>",
      "request_type": "<string>"
    }
  },
  "latency": 123,
  "cost": 123,
  "status": "processing",
  "metadata": {},
  "created_at": "2023-11-07T05:31:56Z",
  "virtual_key": {}
}

Documentation Index

Fetch the complete documentation index at: https://docs.getbifrost.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer token authentication. Use your provider API key or Bifrost authentication token. Virtual keys (prefixed with sk-bf-) can also be passed here.

Path Parameters

id
string
required

MCP tool log ID

Response

MCP tool log found

MCP tool execution log entry

id
string

Unique identifier for the log entry

llm_request_id
string

Links to the LLM request that triggered this tool call

timestamp
string<date-time>

When the tool execution started

tool_name
string

Name of the MCP tool that was executed

server_label
string

Label of the MCP server that provided the tool

virtual_key_id
string

ID of the virtual key used for this tool execution

virtual_key_name
string

Name of the virtual key used for this tool execution

arguments
object

Tool execution arguments

result
object

Tool execution result

error_details
object

Error response from Bifrost

latency
number

Execution time in milliseconds

cost
number

Cost in dollars for this tool execution

status
enum<string>

Execution status

Available options:
processing,
success,
error
metadata
object

Custom metadata captured from request headers (configured via logging_headers or x-bf-lh-* prefix)

created_at
string<date-time>

When the log entry was created

virtual_key
object

Full virtual key object (populated when virtual_key_id is set)