Class ToolSchemaConverterUtils
java.lang.Object
org.snmp4j.mcp.tool.ToolSchemaConverterUtils
Utility class for converting tool parameters to JSON Schema for use in MCP input schemas.
-
Method Summary
Modifier and TypeMethodDescriptionstatic io.modelcontextprotocol.spec.McpSchema.JsonSchemacreateInputSchema(List<ToolParameter> parameters) Creates a JSON Schema representation of the input parameters for a tool.
-
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.JsonSchemaobject representing the input schema
-