Run Mcp Tool

Execute a specific MCP tool The request body should contain the tool arguments in the MCPToolExecuteRequest format.

Authentication

AuthorizationBearer

Header authentication of the form Bearer <token>

Path parameters

mcp_server_idstringRequired
tool_idstringRequired

Request

This endpoint expects an object.
argsmap from strings to anyOptional
Arguments to pass to the MCP tool

Response

Successful Response
statusenum
The status of the tool execution and return object
Allowed values:
agent_stateobject or null
The agent state
stdoutlist of strings or null

Captured stdout (prints, logs) from function invocation

stderrlist of strings or null
Captured stderr from the function invocation
sandbox_config_fingerprintstring or null
The fingerprint of the config for the sandbox

Errors