Skip to main content
POST
Call Tool

Authorizations

Authorization
string
header
required

Your Klavis AI API key.

Body

application/json
serverUrl
string
required

The full URL for connecting to the MCP server

toolName
string
required

The name of the tool to call

toolArgs
Toolargs · object

The input parameters for the tool

connectionType
enum<string>
default:StreamableHttp

The connection type to use for the MCP server. Default is STREAMABLE_HTTP.

Available options:
SSE,
StreamableHttp
headers
Headers · object | null

Optional HTTP headers to include when connecting to the server

Response

Successful Response

success
boolean
required

Whether the API call was successful

result
CallToolResult · object | null

The result of the tool call, if successful

error
string | null

Error message, if the tool call failed