Package org.gridgain.internal.mcp.config
Class ToolRegistry
java.lang.Object
org.gridgain.internal.mcp.config.ToolRegistry
Registry for all MCP tools available in the GridGain MCP server.
This class defines tool metadata (schemas, descriptions) and provides execution handlers for MCP tool invocations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic io.modelcontextprotocol.server.McpServerFeatures.AsyncToolSpecificationReturns MCP tool specification for an asynchronous database connectivity check that performs up to 6 attempts with 5-second delays between retries.static io.modelcontextprotocol.server.McpServerFeatures.AsyncToolSpecificationReturns MCP tool specification for analyzing SQL query execution plans.static io.modelcontextprotocol.server.McpServerFeatures.AsyncToolSpecificationReturns MCP tool specification for executing sql select queries.static io.modelcontextprotocol.server.McpServerFeatures.AsyncToolSpecificationReturns MCP tool specification for getting system view schema definition.static io.modelcontextprotocol.server.McpServerFeatures.AsyncToolSpecificationReturns MCP tool specification for getting table schema definition.static io.modelcontextprotocol.server.McpServerFeatures.AsyncToolSpecificationReturns MCP tool specification for schema cache.static io.modelcontextprotocol.server.McpServerFeatures.AsyncToolSpecificationReturns MCP tool specification for listing all database tables.static io.modelcontextprotocol.server.McpServerFeatures.AsyncToolSpecificationReturns MCP tool specification for listing all system views.
-
Constructor Details
-
ToolRegistry
public ToolRegistry()
-
-
Method Details
-
getCheckConnectionTool
public static io.modelcontextprotocol.server.McpServerFeatures.AsyncToolSpecification getCheckConnectionTool()Returns MCP tool specification for an asynchronous database connectivity check that performs up to 6 attempts with 5-second delays between retries.- Returns:
- async tool specification
-
listAllDatabaseTables
public static io.modelcontextprotocol.server.McpServerFeatures.AsyncToolSpecification listAllDatabaseTables()Returns MCP tool specification for listing all database tables.- Returns:
- async tool specification
-
getTableSchemaDefinition
public static io.modelcontextprotocol.server.McpServerFeatures.AsyncToolSpecification getTableSchemaDefinition()Returns MCP tool specification for getting table schema definition.- Returns:
- async tool specification
-
getSqlSelectTool
public static io.modelcontextprotocol.server.McpServerFeatures.AsyncToolSpecification getSqlSelectTool()Returns MCP tool specification for executing sql select queries.- Returns:
- async tool specification
-
listAllSystemViews
public static io.modelcontextprotocol.server.McpServerFeatures.AsyncToolSpecification listAllSystemViews()Returns MCP tool specification for listing all system views.- Returns:
- async tool specification
-
getSystemViewSchemaDefinition
public static io.modelcontextprotocol.server.McpServerFeatures.AsyncToolSpecification getSystemViewSchemaDefinition()Returns MCP tool specification for getting system view schema definition.- Returns:
- async tool specification
-
getQueryExecutionPlanTool
public static io.modelcontextprotocol.server.McpServerFeatures.AsyncToolSpecification getQueryExecutionPlanTool()Returns MCP tool specification for analyzing SQL query execution plans.- Returns:
- async tool specification
-
invalidateSchemaCache
public static io.modelcontextprotocol.server.McpServerFeatures.AsyncToolSpecification invalidateSchemaCache()Returns MCP tool specification for schema cache.- Returns:
- async tool specification
-