Class ToolSchemaConverterUtils

java.lang.Object
org.snmp4j.mcp.tool.ToolSchemaConverterUtils

public class ToolSchemaConverterUtils extends Object
Utility class for converting tool parameters to JSON Schema for use in MCP input schemas.
  • Method Details

    • createInputSchema

      public static io.modelcontextprotocol.spec.McpSchema.JsonSchema createInputSchema(List<ToolParameter> parameters)
      Creates a JSON Schema representation of the input parameters for a tool.
      Parameters:
      parameters - the list of tool parameters to be converted into a JSON Schema
      Returns:
      a McpSchema.JsonSchema object representing the input schema