Skip to main content
POST
List Tools

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

connectionType
enum<string>
default:StreamableHttp

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

Available options:
SSE,
StreamableHttp
format
enum<string>
default:mcp_native

The format to return tools in. Default is MCP Native format for maximum compatibility.

Available options:
openai,
anthropic,
gemini,
mcp_native
headers
Headers · object | null

Optional HTTP headers to include when connecting to the server

Response

Successful Response

success
boolean
required

Whether the list tools request was successful

format
enum<string>
required

The format of the returned tools

Available options:
openai,
anthropic,
gemini,
mcp_native
tools
any[] | null

List of tools in the requested format

error
string | null

Error message, if the request failed