toolNames

fun <Error class: unknown class>.toolNames(): List<String>

Sneakily get the names of the tools registered with the given MCP async server.

This uses reflection to access the private tools field of the MCP async server. If this fails, an empty list is returned and a warning is logged.


fun <Error class: unknown class>.toolNames(): List<String>

Retrieves the names of tools registered with this MCP sync server.

Delegates to the underlying async server's toolNames() extension.

Return

a list of tool names registered with the async server