ToolRegistry

interface ToolRegistry

Registry interface for managing tools in the MCP server.

Provides methods to access tool names, count, and existence checks. Implementations should supply logic for synchronous or asynchronous modes.

Inheritors

Functions

Link copied to clipboard
abstract fun getToolCount(): Int

Returns the number of tools registered in the server.

Link copied to clipboard
abstract fun getToolNames(): List<String>

Returns a list of tool names registered in the server.

Link copied to clipboard
abstract fun hasToolNamed(name: String): Boolean

Checks if a tool with the given name exists in the server.