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
- Base URLhttp://localhost:8080
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
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\"}"
}
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.