POST
/
mcp-server
/
list-tools
List Tools
curl --request POST \
  --url https://api.klavis.ai/mcp-server/list-tools \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "serverUrl": "<string>",
  "connectionType": "StreamableHttp",
  "format": "mcp_native",
  "headers": {}
}'
{
  "success": true,
  "tools": [
    "<any>"
  ],
  "format": "openai",
  "error": "<string>"
}

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>

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

Available options:
SSE,
StreamableHttp
format
enum<string>

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

Available options:
openai,
anthropic,
gemini,
mcp_native
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