Class GrouperMcpSqlGetSchema
java.lang.Object
edu.internet2.middleware.grouper.ws.mcp.GrouperMcpSqlGetSchema
MCP tool handler for retrieving database schema (DDL) information.
Supports three actions:
listExternalSystems- list available external system IDslistTables- list table/view names for an external systemtableInfo- get DDL or column metadata for a specific table
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.fasterxml.jackson.databind.node.ObjectNodeexecute(com.fasterxml.jackson.databind.JsonNode arguments, GrouperMcpAuthUser authUser) execute the sql_get_schema toolstatic com.fasterxml.jackson.databind.node.ObjectNodereturn the MCP tool definition for sql_get_schema
-
Constructor Details
-
GrouperMcpSqlGetSchema
public GrouperMcpSqlGetSchema()
-
-
Method Details
-
toolDefinition
public static com.fasterxml.jackson.databind.node.ObjectNode toolDefinition()return the MCP tool definition for sql_get_schema- Returns:
- the tool definition as a Jackson ObjectNode
-
execute
public static com.fasterxml.jackson.databind.node.ObjectNode execute(com.fasterxml.jackson.databind.JsonNode arguments, GrouperMcpAuthUser authUser) execute the sql_get_schema tool- Parameters:
arguments- the tool arguments from the MCP requestauthUser- the authenticated user- Returns:
- the MCP tool result
-