A valid request URL is required to generate request examples{
"name": "get_weather",
"role": "tool",
"tool_call_id": "call_123",
"content": "The weather in San Francisco is 72°F and sunny."
}MCP
Execute MCP tool
Executes an MCP tool and returns the result.
POST
/
v1
/
mcp
/
tool
/
execute
A valid request URL is required to generate request examples{
"name": "get_weather",
"role": "tool",
"tool_call_id": "call_123",
"content": "The weather in San Francisco is 72°F and sunny."
}Authorizations
BearerAuthBasicAuthVirtualKeyAuthApiKeyAuth
Bearer token authentication. Use your provider API key or Bifrost authentication token.
Virtual keys (prefixed with sk-bf-) can also be passed here.
Query Parameters
Format of the tool execution request/response.
Available options:
chat, responses Body
application/json
- Chat (Default)
- Responses
MCP tool execution request. The schema depends on the format query parameter:
format=chator empty (default): UseChatAssistantMessageToolCallschemaformat=responses: UseResponsesToolMessageschema
Response
Tool executed successfully
- Chat (Default)
- Responses
MCP tool execution response.
Available options:
assistant, user, system, tool, developer Message content - can be a string or array of content blocks
For tool messages
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Was this page helpful?
⌘I

