mcp-server

List Tools

Lists all tools available for a specific remote MCP server in various AI model formats.

This eliminates the need for manual MCP code implementation and format conversion. Under the hood, Klavis instantiates an MCP client and establishes a connection with the remote MCP server to retrieve available tools.

post/mcp-server/list-tools

Request body

serverUrlstring required

The full URL for connecting to the MCP server

connectionType'SSE' | 'StreamableHttp'
format'openai' | 'anthropic' | 'gemini' | 'mcp_native'
headersobject nullable

Optional HTTP headers to include when connecting to the server

Response

Successful Response

successboolean required

Whether the list tools request was successful

format'openai' | 'anthropic' | 'gemini' | 'mcp_native' required
errorstring nullable

Error message, if the request failed

Changes

No recorded changes to this endpoint across all 50 revisions of this API.