pub fn build_input_schema(
params: &[ApiParam],
request_body_schema: Option<&Value>,
) -> ValueExpand description
Converts a list of ApiParams and an optional request body schema into a
JSON Schema suitable for MCP tool input_schema.
Path/query/header parameters become top-level properties. Required parameters (typically path params) are listed in the “required” array. Request body content is nested under a “body” key to avoid name collisions with path/query parameters.