Package org.gridgain.internal.mcp.tools
Class SchemaCacheTool
java.lang.Object
org.gridgain.internal.mcp.tools.SchemaCacheTool
MCP tool for invalidating the cached schema in case the user doubts of cache incorrectness.
Invalidates cached schema for a specific table or all tables.
Users should call this after:
- Database reconnection
- When suspecting stale cached data
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic reactor.core.publisher.Mono<io.modelcontextprotocol.spec.McpSchema.CallToolResult>handleInvalidateSchemaCache(io.modelcontextprotocol.server.McpAsyncServerExchange exchange, Map<String, Object> arguments) Handles theinvalidate_schema_cachetool.
-
Constructor Details
-
SchemaCacheTool
public SchemaCacheTool()
-
-
Method Details
-
handleInvalidateSchemaCache
public static reactor.core.publisher.Mono<io.modelcontextprotocol.spec.McpSchema.CallToolResult> handleInvalidateSchemaCache(io.modelcontextprotocol.server.McpAsyncServerExchange exchange, Map<String, Object> arguments) Handles theinvalidate_schema_cachetool.- Parameters:
exchange- MCP server exchangearguments- tool arguments (optional tableName)- Returns:
- reactive MCP tool result
-