{"ok":true,"tool":"BMI Calculator","operation":"calculate-bmi","description":"Calculate Body Mass Index from height and weight.","method":"POST","endpoint":"/api/bmi-calculator","webUrl":"https://toolhub-5eo.pages.dev/tools/bmi-calculator","parameters":{"type":"object","properties":{"unit":{"type":"string","enum":["metric","imperial"],"description":"metric uses cm and kg; imperial uses inches and pounds"},"height":{"type":"number","description":"Height in cm (metric) or inches (imperial)"},"weight":{"type":"number","description":"Weight in kg (metric) or pounds (imperial)"},"feet":{"type":"number","description":"Optional: height in feet (imperial only, combined with inches)"},"inches":{"type":"number","description":"Optional: additional inches (imperial only)"}},"required":["unit","height","weight"]},"response":{"type":"object","properties":{"bmi":{"type":"number"},"category":{"type":"string","enum":["Underweight","Normal weight","Overweight","Obese"]}}},"example":{"request":{"unit":"metric","height":175,"weight":70},"response_shape":{"type":"object","properties":{"bmi":{"type":"number"},"category":{"type":"string","enum":["Underweight","Normal weight","Overweight","Obese"]}}}},"howToCall":"POST a JSON body to https://toolhub-5eo.pages.dev/api/bmi-calculator. Returns {\"ok\":true,\"result\":{...}} on success or {\"ok\":false,\"error\":\"...\"} on failure. No auth, CORS-enabled.","parametersSummary":"  unit (string, required, one of: metric|imperial) — metric uses cm and kg; imperial uses inches and pounds\n  height (number, required) — Height in cm (metric) or inches (imperial)\n  weight (number, required) — Weight in kg (metric) or pounds (imperial)\n  feet (number, optional) — Optional: height in feet (imperial only, combined with inches)\n  inches (number, optional) — Optional: additional inches (imperial only)","curlExample":"curl -X POST https://toolhub-5eo.pages.dev/api/bmi-calculator -H \"Content-Type: application/json\" -d '{\"unit\":\"metric\",\"height\":175,\"weight\":70}'"}