{"ok":true,"tool":"ROI Calculator","operation":"calculate-roi","description":"Calculate return on investment and optional annualized ROI.","method":"POST","endpoint":"/api/roi-calculator","webUrl":"https://toolhub-5eo.pages.dev/tools/roi-calculator","parameters":{"type":"object","properties":{"cost":{"type":"number","description":"Initial investment amount"},"returnValue":{"type":"number","description":"Current or final value"},"years":{"type":"number","description":"Holding period in years (optional, enables annualized ROI)"}},"required":["cost","returnValue"]},"response":{"type":"object","properties":{"cost":{"type":"number"},"currentValue":{"type":"number"},"netProfit":{"type":"number"},"roi":{"type":"number"},"years":{"type":"number"},"annualizedRoi":{"type":"number"}}},"example":{"request":{"cost":1000,"returnValue":1500,"years":5},"response_shape":{"type":"object","properties":{"cost":{"type":"number"},"currentValue":{"type":"number"},"netProfit":{"type":"number"},"roi":{"type":"number"},"years":{"type":"number"},"annualizedRoi":{"type":"number"}}}},"howToCall":"POST a JSON body to https://toolhub-5eo.pages.dev/api/roi-calculator. Returns {\"ok\":true,\"result\":{...}} on success or {\"ok\":false,\"error\":\"...\"} on failure. No auth, CORS-enabled.","parametersSummary":"  cost (number, required) — Initial investment amount\n  returnValue (number, required) — Current or final value\n  years (number, optional) — Holding period in years (optional, enables annualized ROI)","curlExample":"curl -X POST https://toolhub-5eo.pages.dev/api/roi-calculator -H \"Content-Type: application/json\" -d '{\"cost\":1000,\"returnValue\":1500,\"years\":5}'"}