MCP Tools
Execute MCP Tool
Executes an MCP (Model Context Protocol) tool that has been configured in Bifrost. This endpoint is used to execute tool calls returned by AI models during conversations. Requires MCP to be configured in Bifrost.
post/v1/mcp/tool/execute
Request body
Example request
{
"id": "tool_123",
"type": "function",
"function": {
"name": "get_weather",
"arguments": "{\"location\": \"San Francisco, CA\"}"
}
}Response
Tool execution successful
Example response
{
"role": "user",
"content": "Hello, how are you?",
"tool_calls": [
{
"id": "tool_123",
"type": "function",
"function": {
"name": "get_weather",
"arguments": "{\"location\": \"San Francisco, CA\"}"
}
}
]
}