module RubyLLM::MCP::Providers::OpenAI::ComplexParameterSupport

def param_schema(param)

def param_schema(param)
  format = {
    type: param.type,
    description: param.description
  }.compact
  if param.type == "array"
    format[:items] = param.items
  elsif param.type == "object"
    format[:properties] = param.properties.transform_values { |value| param_schema(value) }
  end
  format
end