{"openapi":"3.1.0","info":{"title":"Microapp Tools API","version":"0.1.0","description":"Microapp offers premium utility tools for humans and AI agents, accessible at microapp.io and via this API. The same engine that renders a calculator on the website is exposed here as a function — calculators, converters, encoders, hashes, regex, JWT, color, text utilities — all callable from one URL, free, no signup. Members at microapp.io/membership get a higher rate limit.","contact":{"name":"Microapp","url":"https://microapp.io"}},"servers":[{"url":"https://microapp.io"}],"paths":{"/api/tools/percentage-calculator":{"post":{"summary":"Calculate percentages three ways: what's X% of Y, what % is X of Y, and what's the % change from X to Y. Use mode='of' for the first form, mode='ratio' for the second, mode='change' for the third.","operationId":"percentage_calculator","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"mode":{"type":"string","enum":["of","ratio","change"],"description":"Which percentage operation. 'of' = X% of Y, 'ratio' = X is what % of Y, 'change' = % change from X to Y."},"a":{"type":"number","description":"First number. Meaning depends on mode (see description)."},"b":{"type":"number","description":"Second number. Meaning depends on mode."},"precision":{"description":"Decimal places in the result. Defaults to 2.","type":"integer","minimum":0,"maximum":10}},"required":["mode","a","b"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/tip-calculator":{"post":{"summary":"Compute the tip, total, and per-person split for a bill. All amounts use the same (unspecified) currency — the engine doesn't care about currency codes.","operationId":"tip_calculator","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"bill":{"type":"number","description":"Pre-tip bill amount, in the same currency as the output."},"tip_percent":{"type":"number","description":"Tip percentage (e.g. 18 for 18%)."},"split":{"description":"Number of people splitting the bill. Defaults to 1.","type":"integer","minimum":1,"maximum":9007199254740991}},"required":["bill","tip_percent"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/discount-calculator":{"post":{"summary":"Apply a percentage discount to a price. Returns sale price, amount saved, and the discount percentage echoed back.","operationId":"discount_calculator","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"original":{"type":"number","minimum":0,"description":"Original price."},"discount_percent":{"type":"number","description":"Discount percentage (e.g. 25 for 25%)."}},"required":["original","discount_percent"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/aspect-ratio":{"post":{"summary":"Compute the simplified aspect ratio of a width × height pair, plus the decimal ratio. Useful for image, video, screen, and design contexts.","operationId":"aspect_ratio","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"width":{"type":"number","exclusiveMinimum":0,"description":"Width in any unit."},"height":{"type":"number","exclusiveMinimum":0,"description":"Height in same unit as width."}},"required":["width","height"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/days-between":{"post":{"summary":"Calculate the number of days between two ISO 8601 dates. Returns days, weeks, months, and years (decimal). Inclusive count = absolute |end - start|.","operationId":"days_between","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"start":{"type":"string","description":"Start date in ISO 8601 (YYYY-MM-DD or full ISO timestamp)."},"end":{"type":"string","description":"End date in ISO 8601 (YYYY-MM-DD or full ISO timestamp)."}},"required":["start","end"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/average-calculator":{"post":{"summary":"Compute summary statistics for a list of numbers: count, sum, mean, median, min, max, and mode(s).","operationId":"average_calculator","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"numbers":{"minItems":1,"maxItems":10000,"type":"array","items":{"type":"number"},"description":"Array of numbers to summarize."}},"required":["numbers"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/square-root-calculator":{"post":{"summary":"Compute square root, cube root, square, and cube of a number. Returns all four so callers don't have to call four tools.","operationId":"square_root_calculator","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"n":{"type":"number","description":"The input number. Must be non-negative for the square root branch."}},"required":["n"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/prime-checker":{"post":{"summary":"Test whether an integer ≥ 2 is prime. Returns the verdict plus the prime factorization (useful for composite numbers).","operationId":"prime_checker","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"n":{"type":"integer","minimum":2,"maximum":1000000000,"description":"The integer to test. Must be ≥ 2."}},"required":["n"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/fraction-simplifier":{"post":{"summary":"Simplify a fraction to lowest terms. Returns the simplified numerator/denominator, the decimal value, the gcd used, and the equivalent percentage.","operationId":"fraction_simplifier","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"numerator":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Numerator (integer)."},"denominator":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Denominator (integer, non-zero)."}},"required":["numerator","denominator"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/rem-to-px":{"post":{"summary":"Convert REM (relative to root font size) to pixels. Defaults to a 16px base (browser default); pass base_px to use a different root size.","operationId":"rem_to_px","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"rem":{"type":"number","description":"The REM value to convert."},"base_px":{"description":"Base font size in pixels. Defaults to 16 (browser default).","type":"integer","minimum":1,"maximum":9007199254740991}},"required":["rem"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/salary-to-hourly":{"post":{"summary":"Convert an annual salary to hourly, daily, weekly, and monthly equivalents. Defaults to a standard 40-hour, 52-week schedule.","operationId":"salary_to_hourly","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"annual_salary":{"type":"number","minimum":0,"description":"Annual gross salary in the same (unspecified) currency as the output."},"hours_per_week":{"description":"Working hours per week. Defaults to 40.","type":"number","minimum":1,"maximum":168},"weeks_per_year":{"description":"Working weeks per year. Defaults to 52.","type":"number","minimum":1,"maximum":52}},"required":["annual_salary"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/geometric-mean":{"post":{"summary":"Compute the geometric mean (n-th root of the product) of a list of positive numbers. Also returns the arithmetic mean for comparison.","operationId":"geometric_mean","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"numbers":{"minItems":1,"maxItems":10000,"type":"array","items":{"type":"number","exclusiveMinimum":0},"description":"Array of positive numbers. Negative or zero values invalidate the geometric mean."}},"required":["numbers"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/scientific-notation":{"post":{"summary":"Convert a number to scientific and engineering notation. Returns the coefficient, exponent, and several human-readable forms.","operationId":"scientific_notation","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"n":{"type":"number","description":"The number to convert. Accepts standard or already-in-scientific-notation values."},"precision":{"description":"Significant digits in the coefficient. Defaults to 4.","type":"integer","minimum":0,"maximum":15}},"required":["n"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/age-on-other-planets":{"post":{"summary":"Given an age in Earth days, return the equivalent age in years on each of the eight planets plus Pluto. Years are sidereal orbital periods from the NASA Planetary Fact Sheet; Earth uses the Julian year (365.25 days) for calendar alignment.","operationId":"age_on_other_planets","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ageEarthDays":{"type":"number","minimum":0,"maximum":50000,"description":"Age in Earth days. A typical human lifespan is 0–40,000 days; the upper bound 50,000 covers any plausible age. Decimal days are allowed (e.g. 13189.5)."}},"required":["ageEarthDays"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/weight-on-other-planets":{"post":{"summary":"Given a weight on Earth (in kg or lb), return the equivalent weight on each of the eight planets plus Pluto. Surface-gravity values are from the NASA Planetary Fact Sheet; the ratio is gravity-on-planet ÷ Earth's 9.80665 m/s².","operationId":"weight_on_other_planets","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"weightOnEarth":{"type":"number","exclusiveMinimum":0,"maximum":2000000,"description":"Weight on Earth, in the unit named by `unit`. Must be positive. Typical humans are 30–300 kg / 70–700 lb; the upper bound 2,000,000 covers vehicles, buildings, and silly inputs like 'blue whale'."},"unit":{"type":"string","enum":["kg","lb"],"description":"Unit the input weight is in. 'kg' (kilograms — the bathroom-scale unit in most of the world) or 'lb' (pounds — the US/UK bathroom-scale unit). Output is returned in the same unit; ratios are unit-independent."}},"required":["weightOnEarth","unit"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/heartbeats-since-birth":{"post":{"summary":"Estimate the total number of heartbeats a person has had since birth, given their date of birth and a reference 'now' timestamp. Uses an average resting heart rate of 80 bpm (American Heart Association adult midpoint) by default; the caller can override. Returns heartbeats, breaths, minutes alive, and days alive.","operationId":"heartbeats_since_birth","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"birthMs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Date of birth as a Unix epoch in milliseconds (the value returned by Date.getTime()). Must be on or before nowMs."},"nowMs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The reference 'now' instant, as Unix epoch milliseconds. The widget passes Date.now(); MCP callers can pin a value for deterministic output."},"restingBpm":{"description":"Average resting heart rate in beats per minute. Defaults to 80, the midpoint of the adult resting range (60–100 bpm) per the American Heart Association.","type":"number","exclusiveMinimum":0,"maximum":300},"breathsPerMinute":{"description":"Average breath rate per minute. Defaults to 16, the midpoint of the adult resting range (12–20) per the Mayo Clinic.","type":"number","exclusiveMinimum":0,"maximum":100}},"required":["birthMs","nowMs"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/year-progress":{"post":{"summary":"Calculate how much of a calendar year has elapsed at a given moment. Returns percent elapsed/remaining, day-of-year, seconds elapsed/remaining, leap-year flag, and a 20-char ASCII progress bar. Useful for goal-tracking and 'how much of the year is left' moments.","operationId":"year_progress","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"at":{"description":"Reference timestamp as an ISO 8601 string (YYYY-MM-DD or full ISO datetime). If omitted, the handler treats it as 'now' — but engines are pure, so callers should pass an explicit value to keep results reproducible.","type":"string"},"year":{"description":"Override the year. If omitted, derived from `at`. Use this to compute progress for a year other than the one containing `at` (e.g. ask 'what was 2024's progress on 2024-07-01' explicitly).","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/ab-test-calculator":{"post":{"summary":"Two-proportion z-test for A/B conversion-rate experiments. Returns each arm's rate and 95% Wald confidence interval, the absolute and relative lift, the z statistic, the two-tailed p-value, and a significance decision at the given alpha (default 0.05).","operationId":"ab_test_calculator","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"control_visitors":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991,"description":"Number of unique visitors (or sessions, or impressions — whatever the conversion denominator is) in the control arm. Must be a positive integer."},"control_conversions":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Number of conversions observed in the control arm. Must be a non-negative integer, and cannot exceed control_visitors."},"variant_visitors":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991,"description":"Number of unique visitors in the variant arm. Must be a positive integer."},"variant_conversions":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Number of conversions observed in the variant arm. Must be a non-negative integer, and cannot exceed variant_visitors."},"alpha":{"description":"Significance threshold (default 0.05). p < alpha declares a statistically significant difference. Two-tailed.","type":"number","exclusiveMinimum":0,"maximum":0.5}},"required":["control_visitors","control_conversions","variant_visitors","variant_conversions"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/ab-test-sample-size":{"post":{"summary":"Required sample size per arm for a two-proportion A/B test, given the expected baseline conversion rate, the minimum detectable effect (relative lift), the significance threshold alpha (default 0.05, two-tailed), and the statistical power (default 0.80).","operationId":"ab_test_sample_size","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"baseline_rate":{"type":"number","exclusiveMinimum":0,"maximum":1,"description":"Expected control conversion rate as a proportion in (0, 1). E.g. 0.05 for 5%."},"minimum_detectable_effect":{"type":"number","exclusiveMinimum":0,"description":"Smallest relative lift you want to detect, as a proportion. 0.10 means 'detect a 10% relative lift over baseline' (so for a 5% baseline, you want to detect a move to 5.5%)."},"alpha":{"description":"Significance threshold (default 0.05). Two-tailed.","type":"number","exclusiveMinimum":0,"maximum":0.5},"power":{"description":"Statistical power 1−β (default 0.80).","type":"number","exclusiveMinimum":0,"maximum":1}},"required":["baseline_rate","minimum_detectable_effect"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/arctan-calculator":{"post":{"summary":"Compute arctan(x) — the inverse tangent — in either degrees or radians. The result is the angle θ such that tan(θ) = x, with θ constrained to (-90°, 90°) / (-π/2, π/2). For two-argument arctan that resolves the full circle, use atan2 instead.","operationId":"arctan_calculator","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"x":{"type":"number","description":"The number whose inverse tangent (arctan) you want. Any real number; the function is defined on (-∞, +∞) and returns a value in (-π/2, +π/2)."},"unit":{"description":"Output unit. Defaults to 'degrees'. Use 'radians' for math/physics contexts; 'degrees' for geometry, navigation, and CAD.","type":"string","enum":["degrees","radians"]}},"required":["x"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/bitwise-operations-calculator":{"post":{"summary":"Run a bitwise operation (AND, OR, XOR, NOT, <<, >>, >>>) on two BigInt operands and return the result in decimal, hex, binary, octal, plus the low-32-bit binary representation.","operationId":"bitwise_operations_calculator","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"a":{"type":"string","description":"First integer as a string. Can be decimal ('255'), hex ('0xff' or 'ff'), binary ('0b1010' or '1010'), or octal ('0o17' or '17'). The `base` field tells the engine how to parse it."},"b":{"description":"Second integer as a string. Required for AND, OR, XOR, and the three shifts. Ignored for NOT (unary).","type":"string"},"op":{"type":"string","enum":["and","or","xor","not","shl","shr","ushr"],"description":"Operation: and (&), or (|), xor (^), not (~), shl (<<), shr (>> arithmetic right shift), ushr (>>> logical right shift on the low 32 bits)."},"base":{"default":"dec","description":"How to parse a and b: dec, hex, bin, or oct.","type":"string","enum":["dec","hex","bin","oct"]}},"required":["a","op","base"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/board-foot-calculator":{"post":{"summary":"Compute board feet for lumber. Formula: (thickness_in × width_in × length_in × qty) / 144. One board foot is a piece 1 in thick × 12 in wide × 12 in long.","operationId":"board_foot_calculator","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"thickness_in":{"type":"number","description":"Lumber thickness in inches. Surfaced 1x stock is 0.75; 5/4 stock is 1; 8/4 is 2."},"width_in":{"type":"number","description":"Lumber width in inches. Nominal (a 1x6 = 6) or actual — be consistent across the order."},"length_in":{"type":"number","description":"Lumber length in inches. Multiply feet by 12 (an 8 ft board = 96)."},"qty":{"description":"Number of identical pieces. Defaults to 1.","type":"integer","minimum":1,"maximum":9007199254740991}},"required":["thickness_in","width_in","length_in"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/burn-rate-calculator":{"post":{"summary":"Compute a startup's gross burn, net burn, and runway from starting cash, ending cash, the period in months, and optional monthly revenue. Returns a health label benchmarked to standard SaaS funding-stage runway expectations.","operationId":"burn_rate_calculator","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"starting_cash":{"type":"number","minimum":0,"description":"Cash on hand at the start of the period, in dollars. Use the bank balance plus any short-term equivalents."},"ending_cash":{"type":"number","minimum":0,"description":"Cash on hand at the end of the period, in dollars. If higher than starting_cash, the company is cash-positive and runway is effectively infinite."},"period_months":{"type":"number","exclusiveMinimum":0,"description":"Length of the measurement window in months (default 1). Use 1 for last month, 3 for a quarter, 12 for the trailing year."},"monthly_revenue":{"description":"Optional monthly revenue, in dollars. When provided, the engine separates gross burn (operating expense) from net burn (cash decline after revenue). Omit if you only want to measure raw cash decline.","type":"number","minimum":0}},"required":["starting_cash","ending_cash","period_months"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/cidr-calculator":{"post":{"summary":"Parse an IPv4 CIDR block (or an IP + dotted-decimal mask) and return network, broadcast, first/last usable host, total + usable IP counts, subnet/wildcard masks, the mask in binary, and the legacy IPv4 class.","operationId":"cidr_calculator","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"cidr":{"description":"IPv4 CIDR notation, e.g. '192.168.1.0/24'. Provide this OR (ip + mask). Prefix length must be 0-32.","type":"string"},"ip":{"description":"Dotted-decimal IPv4 address, e.g. '192.168.1.10'. Used with `mask` when CIDR notation isn't provided.","type":"string"},"mask":{"description":"Dotted-decimal subnet mask, e.g. '255.255.255.0'. Must be a contiguous mask (all 1s then all 0s). Used with `ip` when CIDR notation isn't provided.","type":"string"}},"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/coffee-habit-cost-calculator":{"post":{"summary":"Compare the total nominal cost of a recurring coffee habit (drink price × times per week × years) against what the same weekly amount would have grown to if invested at a given annual return. Returns total spent, invested future value, and the opportunity-cost gap. The goal is to make compounding visible — not to moralize about coffee.","operationId":"coffee_habit_cost_calculator","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"drink":{"type":"string","enum":["latte","cappuccino","drip-coffee","cold-brew","custom"],"description":"Drink preset. 'latte' (~$5.75), 'cappuccino' (~$5.25), 'drip-coffee' (~$3.25), 'cold-brew' (~$5.50), or 'custom' to provide custom_price."},"custom_price":{"description":"Required when drink='custom'. Price per drink in dollars (e.g. 4.50). Ignored for presets.","type":"number","exclusiveMinimum":0},"times_per_week":{"type":"number","exclusiveMinimum":0,"description":"How many drinks per week. Fractional is allowed (e.g. 5 weekdays, or 2.5 for an every-other-day habit)."},"years":{"type":"number","exclusiveMinimum":0,"description":"Horizon in years over which the habit continues. Decimals allowed (e.g. 30 for a working career, 10 for a decade)."},"annual_return_percent":{"type":"number","description":"Expected nominal annual return on the alternative investment, as a percentage (e.g. 7 for 7%). 7% real or 10% nominal are common long-term US stock-market assumptions."}},"required":["drink","times_per_week","years","annual_return_percent"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/coffee-ratio-calculator":{"post":{"summary":"Compute the coffee-to-water ratio for popular brew methods (pour-over, French press, AeroPress, cold brew, espresso). Pick a method, enter coffee grams OR water ml, get the other variable plus recommended grind and brew time.","operationId":"coffee_ratio_calculator","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"brew_method":{"type":"string","enum":["pour_over","french_press","aeropress","cold_brew","espresso"],"description":"The brew method. Each preset chooses a sensible default coffee-to-water ratio (pour_over 1:16, french_press 1:15, aeropress 1:14, cold_brew 1:8 concentrate, espresso 1:2)."},"solve_for":{"type":"string","enum":["water","coffee"],"description":"Which variable to compute. 'water' takes coffee grams as input and returns water ml. 'coffee' takes water ml as input and returns coffee grams."},"coffee_g":{"description":"Coffee grams. Required when solve_for='water'. Must be > 0.","type":"number"},"water_ml":{"description":"Water in millilitres. Required when solve_for='coffee'. Must be > 0. Water density is taken as 1 g/ml.","type":"number"},"ratio":{"description":"Override the default ratio for the chosen brew method. The number is N in '1:N' — grams of water per gram of coffee. Typical range 1.5 (espresso ristretto) to 20 (light pour-over). Omit to use the method's default.","type":"number"}},"required":["brew_method","solve_for"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/dollar-cost-averaging-calculator":{"post":{"summary":"Project the final value of a dollar-cost averaging (DCA) plan — equal contributions at regular intervals — and compare against lump-summing the same total at time 0. Returns final value, total invested, gains, equivalent CAGR, optional inflation-adjusted figures, and the lump-sum head-to-head.","operationId":"dollar_cost_averaging_calculator","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"contribution_per_period":{"type":"number","exclusiveMinimum":0,"description":"Amount invested at the end of each period (e.g. 500 for $500 per month)."},"frequency":{"type":"string","enum":["weekly","biweekly","monthly"],"description":"Contribution cadence. 'weekly' = 52/yr, 'biweekly' = 26/yr, 'monthly' = 12/yr."},"period_count":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991,"description":"Total number of contributions (e.g. 120 for 10 years of monthly contributions)."},"annual_return_percent":{"type":"number","description":"Expected nominal annual return as a percentage (e.g. 8 for 8%). Negative values allowed for stress-testing; the periodic rate must remain > -100%."},"inflation_percent":{"description":"Optional annual inflation rate (e.g. 2.5). When provided, the engine also returns inflation-adjusted (today's dollars) final value and gains.","type":"number"}},"required":["contribution_per_period","frequency","period_count","annual_return_percent"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/easter-date-calculator":{"post":{"summary":"Compute Western (Gregorian) Easter Sunday and Eastern Orthodox Easter for any year between 1583 and 4099, plus the related liturgical dates Ash Wednesday, Palm Sunday, Good Friday, and Pentecost. Uses the Meeus / Anonymous Gregorian algorithm.","operationId":"easter_date_calculator","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"year":{"type":"integer","minimum":1583,"maximum":4099,"description":"The year to compute Easter for. Must be an integer between 1583 (first year of the Gregorian calendar) and 4099 (algorithm's documented range)."}},"required":["year"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/jet-lag-calculator":{"post":{"summary":"Predict jet-lag severity and recovery time for a trip between two time zones. Accounts for the direction asymmetry — eastbound (clock advances) takes roughly 1 day per zone; westbound (clock falls back) takes ~2/3 of a day per zone. Returns severity band, estimated recovery days, and direction-specific adjustment tips (pre-flight schedule shift, light exposure, melatonin window, meal timing).","operationId":"jet_lag_calculator","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"fromOffset":{"type":"number","minimum":-12,"maximum":14,"description":"Origin time zone as a UTC offset in hours. Range -12 (Baker Island) to +14 (Kiribati). Examples: New York = -5 (or -4 in DST), London = 0 (or +1 in BST), Tokyo = +9, Sydney = +10 (or +11 in AEDT)."},"toOffset":{"type":"number","minimum":-12,"maximum":14,"description":"Destination time zone as a UTC offset in hours. Same range and units as fromOffset."}},"required":["fromOffset","toOffset"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/meeting-cost-calculator":{"post":{"summary":"Calculate the total cost of a meeting given its duration and a list of attendees with hourly rates. Returns total cost, per-attendee breakdown, cost-per-minute, and order-of-magnitude comparisons (number of $4.50 lattes, number of $800 fully-loaded office days).","operationId":"meeting_cost_calculator","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"duration_minutes":{"type":"number","exclusiveMinimum":0,"maximum":1440,"description":"Meeting length in minutes (e.g. 30 for a half-hour, 60 for an hour, 15 for a standup). Must be greater than zero and at most 1440 (24 hours)."},"attendees":{"minItems":1,"type":"array","items":{"type":"object","properties":{"role":{"type":"string","minLength":1,"description":"Label for this attendee row — usually a job title or team name (e.g. 'Senior Engineer', 'Product Manager', 'Designer'). Used in the per-attendee breakdown."},"hourly_rate":{"type":"number","minimum":0,"description":"Average fully-loaded hourly rate for this role in dollars. 'Fully loaded' means salary + benefits + overhead — typically 1.25–1.4× the gross salary rate."},"count":{"type":"integer","exclusiveMinimum":0,"maximum":1000,"description":"How many attendees in this role are in the meeting. Defaults to 1 if you have one person per row; use higher numbers when modeling 'six engineers at $80/hr'."}},"required":["role","hourly_rate","count"],"additionalProperties":false},"description":"List of attendee rows. At minimum one row. Each row carries a role label, hourly rate, and count — letting you model 'one PM at $90/hr + six engineers at $80/hr' as two rows."}},"required":["duration_minutes","attendees"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/molar-mass-calculator":{"post":{"summary":"Compute the molar mass (g/mol) of a chemical compound from its formula. Parses standard notation with element symbols, subscripts, nested parentheses, and hydrate dots. Returns the total molar mass and a per-element breakdown.","operationId":"molar_mass_calculator","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"formula":{"type":"string","minLength":1,"description":"Chemical formula in standard notation. Element symbols use a capital letter optionally followed by one lowercase letter (Na, Cl, Fe). Subscripts are written as plain digits after the symbol or group (H2O, C6H12O6, Ca(OH)2). Parentheses group atoms with a shared subscript. Hydrate notation with a dot is supported (CuSO4·5H2O)."}},"required":["formula"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/nps-calculator":{"post":{"summary":"Compute Net Promoter Score (NPS) from promoter / passive / detractor counts, or from a raw array of 0–10 scores.","operationId":"nps_calculator","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"promoters":{"description":"Count of respondents who scored 9 or 10. Required if `scores` is not provided.","type":"integer","minimum":0,"maximum":9007199254740991},"passives":{"description":"Count of respondents who scored 7 or 8. Required if `scores` is not provided.","type":"integer","minimum":0,"maximum":9007199254740991},"detractors":{"description":"Count of respondents who scored 0–6. Required if `scores` is not provided.","type":"integer","minimum":0,"maximum":9007199254740991},"scores":{"description":"Optional raw scores in 0–10. When provided, the engine buckets them itself and ignores `promoters`/`passives`/`detractors`.","type":"array","items":{"type":"integer","minimum":0,"maximum":10}}},"additionalProperties":false,"description":"Provide either pre-aggregated counts (`promoters`, `passives`, `detractors`) OR a `scores` array of raw 0–10 responses — not both."}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/npv-calculator":{"post":{"summary":"Compute Net Present Value (NPV) and Internal Rate of Return (IRR) for a series of cashflows discounted at a given rate. Returns NPV, an Accept/Reject decision, IRR, and a per-period present-value breakdown.","operationId":"npv_calculator","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"initial_investment":{"type":"number","minimum":0,"description":"Period-0 outlay as a positive number (e.g. 10000 for a $10,000 upfront cost). Subtracted from the discounted-cashflow sum."},"discount_rate_percent":{"type":"number","description":"Per-period discount rate as a percentage (e.g. 10 for 10%). Must be greater than −100. Negative rates are allowed but unusual."},"cashflows":{"minItems":1,"type":"array","items":{"type":"number"},"description":"Expected cashflows for periods 1, 2, …, N. Index 0 is period 1. Negative values are allowed (mid-life capex). Must contain at least one entry."}},"required":["initial_investment","discount_rate_percent","cashflows"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/protein-intake-calculator":{"post":{"summary":"Daily protein intake recommendation (grams/day and grams/kg) from body weight, activity level, and goal. References: ISSN position stand on protein and exercise (Jäger et al. 2017) and Helms et al. (JISSN 2014) for protein during a caloric deficit.","operationId":"protein_intake_calculator","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"weight":{"type":"number","exclusiveMinimum":0,"description":"Body weight as a positive number, in the unit specified by weight_unit."},"weight_unit":{"type":"string","enum":["kg","lb"],"description":"Unit for the weight input. 'kg' = kilograms, 'lb' = pounds."},"activity_level":{"type":"string","enum":["sedentary","moderately-active","very-active","athlete"],"description":"Self-reported activity. 'sedentary' = desk job, no training. 'moderately-active' = exercise 3-5×/week. 'very-active' = daily training. 'athlete' = competitive, multiple sessions/day."},"goal":{"type":"string","enum":["maintain","build-muscle","lose-fat"],"description":"Body-composition goal. 'maintain' = current weight + recovery. 'build-muscle' = caloric surplus + hypertrophy training. 'lose-fat' = caloric deficit while preserving lean mass."}},"required":["weight","weight_unit","activity_level","goal"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/recipe-scaler":{"post":{"summary":"Scale a recipe's ingredient quantities to a new serving count. Multiplies parseable amounts by target_servings / original_servings; passes 'to taste', 'pinch', and lines with no quantity through unchanged. Handles fractions, mixed numbers, decimals, and ranges. Does not convert between units — '2 cups' scales to '4 cups', not to grams.","operationId":"recipe_scaler","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"original_servings":{"type":"number","exclusiveMinimum":0,"description":"The serving count the recipe was originally written for. Must be > 0. Example: a recipe that says 'Serves 4' → 4."},"target_servings":{"type":"number","exclusiveMinimum":0,"description":"The serving count you want the recipe to produce. Must be > 0. Example: cooking for 6 instead of 4 → 6."},"ingredients":{"type":"string","description":"Ingredient list, one per line, free-form. Recognized forms include '2 cups flour', '1 1/2 tsp salt', '0.5 lb butter', '1-2 cups broth'. Lines with no parseable quantity (e.g. 'salt to taste', 'a pinch of pepper') pass through unchanged."}},"required":["original_servings","target_servings","ingredients"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/road-trip-cost-calculator":{"post":{"summary":"Estimate the total cost of a road trip from fuel, lodging, food, attractions, and tolls. Supports both imperial (miles + MPG + $/gallon) and metric (km + L/100km + per-liter) inputs. Returns total cost, fuel-only subtotal, per-person split, and cost per mile/km.","operationId":"road_trip_cost_calculator","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"distance":{"type":"number","exclusiveMinimum":0,"description":"Round-trip driving distance. Use the unit specified by `unit_system` — miles for 'imperial', kilometers for 'metric'. For a one-way drive, double the one-way distance."},"unit_system":{"description":"Which unit set the distance and fuel-economy inputs are in. 'imperial' = miles + MPG + $/gallon (default); 'metric' = kilometers + L/100km + price per liter.","type":"string","enum":["imperial","metric"]},"fuel_economy":{"type":"number","exclusiveMinimum":0,"description":"Fuel economy. Higher-is-better when `unit_system` is 'imperial' (MPG, miles per gallon — e.g. 28 for an average US sedan). Lower-is-better when `unit_system` is 'metric' (L/100km — e.g. 8.4 for an average European car)."},"fuel_price":{"type":"number","exclusiveMinimum":0,"description":"Fuel price in local currency units. Dollars per gallon for 'imperial' (US average ~$3.50/gal mid-2025), or per liter for 'metric' (EU average ~€1.65/L)."},"duration_days":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991,"description":"Trip duration in whole days, including the departure day and return day. A weekend trip (leave Sat, return Sun) is 2 days; a week-long trip is 7."},"lodging_per_night":{"description":"Average lodging cost per night, in the same currency as `fuel_price`. Defaults to 0 when omitted (sleeping at home or with hosts). The engine bills lodging for (duration_days − 1) nights by default; override with `lodging_nights` if you booked differently.","type":"number","minimum":0},"lodging_nights":{"description":"Override for the number of paid lodging nights. Useful when you booked a night before departure or the return is an overnight drive. When omitted, the engine uses max(duration_days − 1, 0).","type":"integer","minimum":0,"maximum":9007199254740991},"food_per_day":{"description":"Average food cost per traveler per day, in the same currency as `fuel_price`. Defaults to 0 when omitted. Multiplied by `duration_days` AND `travelers` for the subtotal.","type":"number","minimum":0},"attractions":{"description":"Total budget for attractions, activities, and entry tickets across the whole trip (in the same currency). Defaults to 0. Already a per-group total — not multiplied by travelers.","type":"number","minimum":0},"tolls":{"description":"Optional total toll cost for the trip (in the same currency). Defaults to 0. Pulled out as its own line so the fuel subtotal stays a pure miles-per-gallon math.","type":"number","minimum":0},"travelers":{"description":"Number of travelers. Defaults to 1 when omitted. Used to compute per-person cost and to scale the food subtotal (food_per_day × travelers × duration_days). Lodging, fuel, attractions, and tolls are billed once per trip.","type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["distance","fuel_economy","fuel_price","duration_days"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/sleep-debt-calculator":{"post":{"summary":"Compute cumulative sleep debt across the last 7 nights given a personal target. Returns total debt in hours, per-night deficits, the worst night, and an estimate of how many nights at +1h over target would clear the debt. Severity is banded for UI color-coding. Educational only — does not replace clinical sleep assessment.","operationId":"sleep_debt_calculator","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"target_hours":{"type":"number","exclusiveMinimum":0,"maximum":14,"description":"Personal target sleep hours per night. Most adults need 7-9 (default 8). Should reflect the amount of sleep you feel rested after, not an aspirational number."},"actual_hours":{"minItems":7,"maxItems":7,"type":"array","items":{"type":"number","minimum":0,"maximum":24},"description":"Actual sleep hours for the last 7 nights, most recent night LAST. Each entry 0-24. Use 0 for an all-nighter; partial hours allowed (e.g. 6.5)."}},"required":["target_hours","actual_hours"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/smoking-cost-calculator":{"post":{"summary":"Compute the lifetime cost of a smoking habit — cigarettes per day × pack price × years — and compare it against what the same money would have grown to if invested at a given annual return. Returns total spent, annual spend (the 'quit today' figure), invested future value, and the opportunity-cost gap. Defaults to US averages: $7/pack, 20 cigarettes per pack. The CDC estimates total US smoking-related cost (medical + lost productivity) at $1.4 trillion/year — this calculator answers the personal version of that number.","operationId":"smoking_cost_calculator","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"cigarettes_per_day":{"type":"number","exclusiveMinimum":0,"description":"Cigarettes smoked per day. A pack-a-day habit is 20. Fractional values allowed (e.g. 10 for half a pack, 7 for a workweek-only habit)."},"pack_price":{"type":"number","exclusiveMinimum":0,"description":"Price per pack in dollars. The US average is ~$7 (mid-2024); NYC and a few high-tax states exceed $12; the cheapest states sit near $6."},"cigarettes_per_pack":{"default":20,"description":"Cigarettes per pack. Defaults to 20 (the US/EU standard). Override for 25-cigarette packs (Canada, Australia) or 10-cigarette packs.","type":"number","exclusiveMinimum":0},"years_smoked":{"type":"number","exclusiveMinimum":0,"description":"Years over which the habit continues. Use total years if you're modeling a lifetime habit (e.g. 30 for a smoker who started at 18 and is now 48)."},"annual_return_percent":{"default":0,"description":"Optional expected nominal annual return on the alternative investment, as a percentage (e.g. 7 for 7%). Set to 0 to skip the invested-future-value comparison. 7% real or 10% nominal are common long-term US stock-market assumptions.","type":"number"}},"required":["cigarettes_per_day","pack_price","cigarettes_per_pack","years_smoked","annual_return_percent"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/time-and-a-half-calculator":{"post":{"summary":"Compute the time-and-a-half overtime rate (hourly × 1.5) and gross pay for a week with regular and overtime hours. Follows the US FLSA convention: hours past 40 are paid at 1.5× the base rate.","operationId":"time_and_a_half_calculator","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"hourly_rate":{"type":"number","description":"Base hourly wage in dollars. The straight-time rate before any overtime premium."},"regular_hours":{"description":"Straight-time hours worked in the week. Defaults to 40 — the FLSA threshold above which time-and-a-half kicks in.","type":"number","minimum":0},"overtime_hours":{"description":"Hours worked past the regular threshold. Defaults to 0. These are paid at 1.5× the hourly rate.","type":"number","minimum":0}},"required":["hourly_rate"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/travel-budget-calculator":{"post":{"summary":"Estimate the total cost of a trip from flights, lodging, food, activities, ground transport, and an optional emergency buffer. Picks sane per-destination defaults (US domestic, Europe, Southeast Asia, Latin America, Africa) from a mid-2025 Numbeo-style reference table when a cost isn't provided. Returns total, per-person, daily average, and a category breakdown.","operationId":"travel_budget_calculator","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"destination":{"type":"string","enum":["us-domestic","europe","southeast-asia","latin-america","africa","custom"],"description":"Trip region — drives the reference daily-cost defaults. 'us-domestic', 'europe', 'southeast-asia', 'latin-america', 'africa', or 'custom' if you'll provide every cost yourself."},"days":{"type":"integer","exclusiveMinimum":0,"maximum":365,"description":"Trip duration in nights/days. Must be a positive integer ≤ 365. Use the number of nights you'll be away."},"travelers":{"type":"integer","exclusiveMinimum":0,"maximum":50,"description":"Number of travelers (adults equivalent). 1 for a solo trip, 2 for a couple, etc. Must be ≥ 1."},"flight_cost":{"type":"number","minimum":0,"description":"Total cost of flights (or train/bus) for ALL travelers combined, in dollars. Enter 0 if you're driving or already have miles booked."},"lodging_per_night":{"description":"Cost per night for lodging — the whole group (one room or shared Airbnb), not per person. If omitted, the destination's reference default is used.","type":"number","minimum":0},"food_per_day":{"description":"Per-person food and drink cost per day, in dollars. If omitted, the destination's reference default is used.","type":"number","minimum":0},"activities_per_day":{"description":"Per-person activities cost per day (museums, tours, tickets), in dollars. If omitted, the destination's reference default is used.","type":"number","minimum":0},"transport_per_day":{"description":"Ground-transport cost per day for the whole group (cabs, rental car, transit passes), in dollars. If omitted, the destination's reference default is used.","type":"number","minimum":0},"emergency_buffer_percent":{"description":"Optional safety margin applied to the subtotal, 0–50%. 10–15% is a common cushion for unexpected costs. Defaults to 0.","type":"number","minimum":0,"maximum":50}},"required":["destination","days","travelers","flight_cost"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/temperature-converter":{"post":{"summary":"Convert between Celsius, Fahrenheit, and Kelvin. Pass value + from + to.","operationId":"temperature_converter","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"value":{"type":"number","description":"The temperature value to convert."},"from":{"type":"string","enum":["celsius","fahrenheit","kelvin"],"description":"Source unit."},"to":{"type":"string","enum":["celsius","fahrenheit","kelvin"],"description":"Target unit."}},"required":["value","from","to"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/length-converter":{"post":{"summary":"Convert between common length units: millimeter, centimeter, meter, kilometer, inch, foot, yard, mile.","operationId":"length_converter","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"value":{"type":"number","description":"Length value to convert."},"from":{"type":"string","enum":["millimeter","centimeter","meter","kilometer","inch","foot","yard","mile"],"description":"Source unit."},"to":{"type":"string","enum":["millimeter","centimeter","meter","kilometer","inch","foot","yard","mile"],"description":"Target unit."}},"required":["value","from","to"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/weight-converter":{"post":{"summary":"Convert between common weight units: milligram, gram, kilogram, ounce, pound, stone, ton.","operationId":"weight_converter","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"value":{"type":"number","description":"Weight value to convert."},"from":{"type":"string","enum":["milligram","gram","kilogram","ounce","pound","stone","ton"],"description":"Source unit."},"to":{"type":"string","enum":["milligram","gram","kilogram","ounce","pound","stone","ton"],"description":"Target unit."}},"required":["value","from","to"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/speed-converter":{"post":{"summary":"Convert between speed units: km/h, m/s, mph, knots, ft/s.","operationId":"speed_converter","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"value":{"type":"number","description":"Speed value to convert."},"from":{"type":"string","enum":["km/h","m/s","mph","knots","ft/s"],"description":"Source unit: km/h, m/s, mph, knots, ft/s."},"to":{"type":"string","enum":["km/h","m/s","mph","knots","ft/s"],"description":"Target unit."}},"required":["value","from","to"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/area-converter":{"post":{"summary":"Convert between area units: square-meter, square-kilometer, square-foot, square-yard, acre, hectare, square-mile.","operationId":"area_converter","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"value":{"type":"number","description":"Area value to convert."},"from":{"type":"string","enum":["square-meter","square-kilometer","square-foot","square-yard","acre","hectare","square-mile"],"description":"Source unit."},"to":{"type":"string","enum":["square-meter","square-kilometer","square-foot","square-yard","acre","hectare","square-mile"],"description":"Target unit."}},"required":["value","from","to"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/volume-converter":{"post":{"summary":"Convert between volume units: liter, milliliter, cubic-meter, gallon-us, quart-us, pint-us, fluid-ounce-us, cup-us.","operationId":"volume_converter","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"value":{"type":"number","description":"Volume value to convert."},"from":{"type":"string","enum":["liter","milliliter","cubic-meter","gallon-us","quart-us","pint-us","fluid-ounce-us","cup-us"],"description":"Source unit."},"to":{"type":"string","enum":["liter","milliliter","cubic-meter","gallon-us","quart-us","pint-us","fluid-ounce-us","cup-us"],"description":"Target unit."}},"required":["value","from","to"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/pressure-converter":{"post":{"summary":"Convert between pressure units: pascal, kilopascal, bar, psi, atmosphere, mmhg.","operationId":"pressure_converter","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"value":{"type":"number","description":"Pressure value to convert."},"from":{"type":"string","enum":["pascal","kilopascal","bar","psi","atmosphere","mmhg"],"description":"Source unit."},"to":{"type":"string","enum":["pascal","kilopascal","bar","psi","atmosphere","mmhg"],"description":"Target unit."}},"required":["value","from","to"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/data-storage-converter":{"post":{"summary":"Convert between digital storage units: bit, byte, kilobyte (1024 B), megabyte, gigabyte, terabyte. Uses binary (1024-based) sizing.","operationId":"data_storage_converter","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"value":{"type":"number","description":"Storage value to convert."},"from":{"type":"string","enum":["byte","kilobyte","megabyte","gigabyte","terabyte","bit"],"description":"Source unit. Uses binary (1024-based) sizing for byte→kilobyte etc."},"to":{"type":"string","enum":["byte","kilobyte","megabyte","gigabyte","terabyte","bit"],"description":"Target unit."}},"required":["value","from","to"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/energy-converter":{"post":{"summary":"Convert between energy units: joule, kilojoule, calorie (thermochemical), kilocalorie, watt-hour, btu.","operationId":"energy_converter","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"value":{"type":"number","description":"Energy value to convert."},"from":{"type":"string","enum":["joule","kilojoule","calorie","kilocalorie","watt-hour","btu"],"description":"Source unit."},"to":{"type":"string","enum":["joule","kilojoule","calorie","kilocalorie","watt-hour","btu"],"description":"Target unit."}},"required":["value","from","to"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/angle-converter":{"post":{"summary":"Convert between angle units: degree, radian, gradian, turn.","operationId":"angle_converter","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"value":{"type":"number","description":"Angle value to convert."},"from":{"type":"string","enum":["degree","radian","gradian","turn"],"description":"Source unit."},"to":{"type":"string","enum":["degree","radian","gradian","turn"],"description":"Target unit."}},"required":["value","from","to"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/hex-to-rgb":{"post":{"summary":"Convert a hex color (e.g. #ff8800) to RGB and RGBA channel values. Accepts 3-, 4-, 6-, and 8-digit hex with or without the leading #.","operationId":"hex_to_rgb","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"hex":{"type":"string","description":"Hex color string. Accepts #RGB, #RGBA, #RRGGBB, #RRGGBBAA, or the same forms without the leading #."}},"required":["hex"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/base64":{"post":{"summary":"Encode plain text to base64 or decode base64 back to text. Use mode='encode' for plain→base64, mode='decode' for base64→plain. UTF-8 safe.","operationId":"base64","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"mode":{"type":"string","enum":["encode","decode"],"description":"encode: text → base64. decode: base64 → text."},"input":{"type":"string","maxLength":60000,"description":"Input string. Plain text for encode, base64 for decode."}},"required":["mode","input"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/url-encoder":{"post":{"summary":"URL-encode or URL-decode a string. Uses RFC 3986 component encoding (encodeURIComponent semantics).","operationId":"url_encoder","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"mode":{"type":"string","enum":["encode","decode"],"description":"encode: text → URL-encoded. decode: URL-encoded → text."},"input":{"type":"string","maxLength":60000,"description":"Input string."}},"required":["mode","input"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/sha256-generator":{"post":{"summary":"Compute the SHA-256 hash of a text string. Returns the digest as a 64-character lowercase hex string. UTF-8 encoded.","operationId":"sha256_generator","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"text":{"type":"string","maxLength":60000,"description":"The text to hash. UTF-8 encoded before hashing."}},"required":["text"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/uuid-generator":{"post":{"summary":"Generate one or more RFC 4122 v4 UUIDs (random). Returns an array of strings, even for a single UUID, so callers don't have to special-case length.","operationId":"uuid_generator","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"count":{"description":"How many UUIDs to generate. Defaults to 1. Max 100 per call.","type":"integer","minimum":1,"maximum":100}},"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/password-generator":{"post":{"summary":"Generate cryptographically random passwords. Caller controls length and character classes (uppercase / lowercase / numbers / symbols). Uses crypto.getRandomValues — strong enough for real passwords.","operationId":"password_generator","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"length":{"description":"Password length in characters. Defaults to 16. Min 4, max 128.","type":"integer","minimum":4,"maximum":128},"uppercase":{"description":"Include A-Z. Defaults true.","type":"boolean"},"lowercase":{"description":"Include a-z. Defaults true.","type":"boolean"},"numbers":{"description":"Include 0-9. Defaults true.","type":"boolean"},"symbols":{"description":"Include !@#$%^&*-_=+. Defaults true.","type":"boolean"},"count":{"description":"How many passwords to generate. Defaults to 1. Max 50.","type":"integer","minimum":1,"maximum":50}},"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/random-number":{"post":{"summary":"Generate one or more random numbers in [min, max]. By default returns integers; pass integer=false for floats. Uses Math.random() (not crypto-strong).","operationId":"random_number","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"min":{"type":"number","description":"Inclusive lower bound."},"max":{"type":"number","description":"Inclusive upper bound."},"count":{"description":"How many numbers to generate. Defaults to 1. Max 1000 per call.","type":"integer","minimum":1,"maximum":1000},"integer":{"description":"If true, returns integers only. Defaults to true.","type":"boolean"}},"required":["min","max"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/json-formatter":{"post":{"summary":"Format JSON: pretty-print with indentation or minify to a single line. Validates the input — invalid JSON returns a clear error pointing at the problem.","operationId":"json_formatter","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"json":{"type":"string","maxLength":60000,"description":"Input JSON text. Must parse as valid JSON."},"mode":{"description":"pretty: indent with spaces (default). minify: strip all whitespace.","type":"string","enum":["pretty","minify"]},"indent":{"description":"Spaces of indent for pretty mode. Default 2.","type":"integer","minimum":0,"maximum":8}},"required":["json"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/jwt-decoder":{"post":{"summary":"Decode a JWT into its header and payload. Does NOT verify the signature — use this for inspection only, never to trust the token's claims.","operationId":"jwt_decoder","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"token":{"type":"string","description":"The JWT to decode. Standard 3-part base64url-encoded format: header.payload.signature."}},"required":["token"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/url-parser":{"post":{"summary":"Parse a URL into its components: protocol, host, port, path, query parameters, hash. Returns the query string parsed into a key-value map.","operationId":"url_parser","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"url":{"type":"string","description":"The URL to parse. Must include the protocol (http:// or https://)."}},"required":["url"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/regex-tester":{"post":{"summary":"Test a JavaScript regex against text. Returns all matches with their positions, captured groups, and named groups. Defaults to global flag so all occurrences are found.","operationId":"regex_tester","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"pattern":{"type":"string","minLength":1,"description":"The regex pattern, without delimiters. Standard JavaScript regex syntax."},"flags":{"description":"Regex flags. Allowed: g, i, m, s, u, y. Defaults to 'g'.","type":"string"},"text":{"type":"string","maxLength":60000,"description":"The text to test against."}},"required":["pattern","text"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/loan-calculator":{"post":{"summary":"Compute the monthly payment, total interest, and total cost of a fixed-rate amortizing loan. Uses the standard amortization formula. All amounts use the same (unspecified) currency.","operationId":"loan_calculator","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"principal":{"type":"number","exclusiveMinimum":0,"description":"Loan amount (principal)."},"annual_rate_percent":{"type":"number","minimum":0,"description":"Annual interest rate as a percentage (e.g. 6.5 for 6.5%)."},"term_years":{"type":"number","exclusiveMinimum":0,"description":"Loan term in years."}},"required":["principal","annual_rate_percent","term_years"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/color-converter":{"post":{"summary":"Convert a color between hex, RGB, HSL, and HSV representations. Auto-detects the input format from the string syntax.","operationId":"color_converter","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"input":{"type":"string","description":"The input color string. Accepts: #RGB, #RRGGBB, #RGBA, #RRGGBBAA, rgb(r,g,b), rgba(r,g,b,a), hsl(h,s%,l%), hsla(h,s%,l%,a). Spaces optional."}},"required":["input"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/http-status-code-lookup":{"post":{"summary":"Look up HTTP response status codes from RFC 9110 and the IANA registry. Search by code (404), category (4xx), or free-text (not found). Returns the canonical name, defining RFC, category, plain-English description, typical scenarios, and common mistakes.","operationId":"http_status_code_lookup","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"query":{"type":"string","description":"Search query. Pass an HTTP status code as digits (e.g. '404'), a category shorthand ('4xx'), the status name ('not found'), or any text in the description / scenarios. Empty string returns all codes."}},"required":["query"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/passphrase-generator":{"post":{"summary":"Assemble a Diceware-style passphrase from a list of words. Returns the joined string, the word count, and an entropy estimate in bits.","operationId":"passphrase_generator","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"words":{"minItems":2,"maxItems":20,"type":"array","items":{"type":"string","minLength":1},"description":"The words to assemble into the passphrase, in order. Pick at least 2, at most 20. Each word must be non-empty."},"separator":{"type":"string","enum":["-","_"," ","."],"description":"Character placed between words. One of '-' (hyphen), '_' (underscore), ' ' (space), or '.' (dot)."},"capitalize":{"type":"boolean","description":"When true, the first letter of each word is uppercased. When false, words are left as-is."},"digit":{"description":"Optional decimal digit (0–9) appended to the end of the passphrase. Omit to skip the digit.","type":"integer","minimum":0,"maximum":9},"dictionarySize":{"default":7776,"description":"Size of the wordlist the caller picked from. Used to compute entropy bits. Defaults to 7776 (the EFF Long Wordlist). Pass the actual source size if you used a different list.","type":"integer","minimum":2,"maximum":9007199254740991}},"required":["words","separator","capitalize","dictionarySize"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/box-shadow-generator":{"post":{"summary":"Build a CSS box-shadow declaration from one or more shadow layers. Each layer has X/Y offset, blur, spread, color (hex or rgba), and an inset flag. Output is a copy-ready CSS string.","operationId":"box_shadow_generator","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"layers":{"minItems":1,"type":"array","items":{"type":"object","properties":{"offsetX":{"type":"number","description":"Horizontal offset in pixels. Positive moves the shadow right, negative moves it left."},"offsetY":{"type":"number","description":"Vertical offset in pixels. Positive moves the shadow down, negative moves it up."},"blur":{"type":"number","minimum":0,"description":"Blur radius in pixels. 0 = sharp edge. Larger values = softer, more diffused shadow."},"spread":{"type":"number","description":"Spread radius in pixels. Positive expands the shadow, negative contracts it."},"color":{"type":"string","description":"Shadow color. Accepts CSS hex (#000), 6-digit hex (#000000), 8-digit hex with alpha (#000000aa), rgb(), or rgba()."},"inset":{"default":false,"description":"If true, the shadow is rendered inside the element instead of outside.","type":"boolean"}},"required":["offsetX","offsetY","blur","spread","color","inset"],"additionalProperties":false,"description":"One box-shadow layer. CSS allows stacking multiple shadows; each layer renders on top of the next."},"description":"One or more shadow layers. The first layer is rendered on top in CSS."}},"required":["layers"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/cookie-consent-generator":{"post":{"summary":"Generate a copy-pasteable HTML+CSS+JS cookie consent banner. Inputs: position (top/bottom), visual style (minimal/detailed/brutalist), which non-essential categories to expose (analytics, marketing, preferences), colors, button labels, message, policy URL, and the localStorage key. Output is a self-contained block that persists the visitor's choice and dispatches a `cookieconsentchange` CustomEvent for analytics wiring.","operationId":"cookie_consent_generator","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"position":{"default":"bottom","description":"Banner placement. \"top\" pins to the top of the viewport, \"bottom\" to the bottom.","type":"string","enum":["top","bottom"]},"style":{"default":"detailed","description":"Visual style. \"minimal\" = single sentence + accept/reject. \"detailed\" = full text plus per-category toggles. \"brutalist\" = hard borders, no shadow, monospace text.","type":"string","enum":["minimal","detailed","brutalist"]},"categories":{"type":"object","properties":{"analytics":{"default":true,"description":"Show an Analytics toggle (e.g. Google Analytics, Plausible).","type":"boolean"},"marketing":{"default":true,"description":"Show a Marketing toggle (e.g. Meta Pixel, Google Ads remarketing).","type":"boolean"},"preferences":{"default":false,"description":"Show a Preferences toggle (e.g. saved theme, language, locale).","type":"boolean"}},"required":["analytics","marketing","preferences"],"additionalProperties":false,"description":"Which non-essential category toggles to render. Necessary cookies are always on and shown as a locked row."},"colors":{"type":"object","properties":{"background":{"default":"#171717","description":"Banner background. CSS color (hex, rgb, hsl, or named).","type":"string"},"text":{"default":"#ffffff","description":"Body text color on the banner.","type":"string"},"accept":{"default":"#22c55e","description":"Background color for the primary Accept button.","type":"string"},"reject":{"default":"#374151","description":"Background color for the Reject button.","type":"string"}},"required":["background","text","accept","reject"],"additionalProperties":false,"description":"Color scheme for the banner. Pick contrasting accept/reject so users can tell them apart."},"buttons":{"type":"object","properties":{"accept":{"default":"Accept all","description":"Label on the primary button — the \"say yes to everything\" action.","type":"string"},"reject":{"default":"Reject all","description":"Label on the secondary button — the \"say no to everything optional\" action.","type":"string"},"customize":{"default":"Customize","description":"Label on the customize toggle. Only rendered when style is \"detailed\".","type":"string"},"save":{"default":"Save preferences","description":"Label on the save button shown when the customize panel is open.","type":"string"}},"required":["accept","reject","customize","save"],"additionalProperties":false,"description":"Button copy. Keep labels short — long copy wraps awkwardly on mobile."},"message":{"default":"We use cookies to make this site work and to understand how it's used. Pick what you're comfortable with.","description":"The headline message shown on the banner. One or two sentences max.","type":"string"},"policyUrl":{"default":"/privacy","description":"URL for your full privacy / cookie policy. Rendered as a \"Learn more\" link.","type":"string"},"storageKey":{"default":"cookie-consent","description":"localStorage key the banner writes the user's choice to.","type":"string"}},"required":["position","style","categories","colors","buttons","message","policyUrl","storageKey"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/cron-expression-generator":{"post":{"summary":"Parse a 5-field cron expression, describe it in plain English, and compute the next N fire times. Input the standard 'minute hour day-of-month month day-of-week' form (e.g. '0 9 * * 1-5' for weekdays at 9am).","operationId":"cron_expression_generator","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"expression":{"type":"string","minLength":1,"description":"A 5-field cron expression — minute hour day-of-month month day-of-week. Examples: '0 9 * * 1-5' for weekdays at 9am, '*/15 * * * *' every 15 minutes."},"nextCount":{"description":"How many upcoming fire times to compute. Default 5. Use 0 to skip.","type":"integer","minimum":0,"maximum":20},"fromIso":{"description":"Reference time in ISO 8601 (e.g. '2026-05-14T10:00:00Z'). Defaults to current time. Used for deterministic 'next run' computation.","type":"string"}},"required":["expression"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/dummy-data-generator":{"post":{"summary":"Generate tabular test fixtures (JSON or CSV) from a chosen mix of fake fields. Each row is a consistent identity — first/last name match the email; state matches the ZIP prefix. Public-domain data tables; pure JS; deterministic when a seed is passed.","operationId":"dummy_data_generator","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"fields":{"minItems":1,"type":"array","items":{"type":"string","enum":["firstName","lastName","email","phone","address","city","state","zip","country","company","date","uuid","loremText","numberRange"]},"description":"Which columns to include. Pick at least one. Order in the array is the output column order. Allowed: firstName, lastName, email, phone, address, city, state, zip, country, company, date, uuid, loremText, numberRange."},"rows":{"type":"integer","minimum":1,"maximum":1000,"description":"How many rows to generate. Min 1, max 1000."},"format":{"type":"string","enum":["json","csv"],"description":"Output format. 'json' returns an array of objects; 'csv' returns RFC-4180 CSV with a header row."},"seed":{"description":"Optional integer seed for deterministic output. Same seed + same inputs = same rows. Omit for fresh randomness on each call.","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"numberMin":{"description":"Lower bound (inclusive) for the numberRange field. Default 0.","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"numberMax":{"description":"Upper bound (inclusive) for the numberRange field. Default 1000.","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"loremWords":{"description":"How many words in each loremText field. Default 8.","type":"integer","minimum":1,"maximum":50}},"required":["fields","rows","format"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/gitignore-generator":{"post":{"summary":"Build a .gitignore file by picking technologies (languages, frameworks, editors, operating systems). Rules from each pick are merged, with duplicate rule lines dropped silently. Returns the file content ready to save.","operationId":"gitignore_generator","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"templateIds":{"minItems":1,"type":"array","items":{"type":"string"},"description":"Template identifiers to include. At least one is required. Known IDs: node, python, java, ruby, go, rust, php, cpp, csharp, react, vue, nextjs, astro, rails, django, spring, vscode, intellij, vim, emacs, sublime, macos, windows, linux."}},"required":["templateIds"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/terms-of-service-generator":{"post":{"summary":"Assemble a Terms of Service document from a small set of inputs: company name, website, contact email, jurisdiction (state + country), service type (SaaS / e-commerce / content), and toggles for user-generated content, paid plans, refund window, and binding arbitration. Output is a complete plain-text document plus the list of section headings. NOT legal advice — the output is a starting template that a qualified attorney should review before publication.","operationId":"terms_of_service_generator","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"companyName":{"type":"string","minLength":1,"description":"Legal or operating name of the company that runs the service (e.g. 'Acme, Inc.')."},"websiteUrl":{"type":"string","minLength":1,"description":"Website URL where the service is offered (e.g. 'https://example.com'). Used in section 2."},"contactEmail":{"type":"string","minLength":1,"description":"Email address users can write to with questions about the Terms (e.g. 'legal@example.com')."},"jurisdictionState":{"type":"string","description":"State, province, or region that governs the Terms (e.g. 'California', 'Ontario'). May be empty if not applicable."},"jurisdictionCountry":{"type":"string","minLength":1,"description":"Country whose law governs the Terms (e.g. 'United States', 'Brazil')."},"serviceType":{"type":"string","enum":["saas","ecommerce","content"],"description":"Shape of the service: 'saas' (software/app), 'ecommerce' (online store), or 'content' (publication/media)."},"userGeneratedContent":{"type":"boolean","description":"True if users can post, upload, or otherwise contribute content. Triggers section 5."},"paidPlan":{"type":"boolean","description":"True if any part of the service is paid. Triggers sections 8 (Billing) and 9 (Refunds)."},"refundPolicy":{"type":"string","enum":["none","30-day","60-day","90-day"],"description":"Refund window. 'none' means no refunds; the others grant a money-back period from purchase. Ignored if paidPlan is false."},"arbitration":{"type":"boolean","description":"True if disputes must be resolved by binding arbitration (rather than in court). Shapes section 15."},"effectiveDate":{"type":"string","description":"Effective date in any human-readable form (e.g. '2026-05-14' or 'May 14, 2026'). Empty defaults to today's ISO date."}},"required":["companyName","websiteUrl","contactEmail","jurisdictionState","jurisdictionCountry","serviceType","userGeneratedContent","paidPlan","refundPolicy","arbitration","effectiveDate"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/truth-table-generator":{"post":{"summary":"Generate the full truth table for a Boolean expression. Parses operators AND/OR/NOT/XOR/NAND/NOR/IMPLIES/IFF and their symbols, enumerates all 2^N variable assignments, and returns the result for each row plus the value of every sub-expression. Supports up to 6 variables (64 rows).","operationId":"truth_table_generator","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"expression":{"type":"string","description":"A Boolean expression. Operators: AND/OR/NOT/XOR/NAND/NOR/IMPLIES/IFF (case-insensitive) and symbols && || ! ^ -> <->. Variables are letters or short names (≤ 8 chars). Constants TRUE/FALSE/1/0 supported. Max 6 distinct variables."}},"required":["expression"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/word-counter":{"post":{"summary":"Count words, characters, sentences, paragraphs, and reading time in a block of text. Words are Unicode-aware (handles non-Latin scripts). Reading time assumes 240 wpm.","operationId":"word_counter","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"text":{"type":"string","maxLength":60000,"description":"The text to analyze. Capped at 60,000 characters. Larger inputs should be split client-side."}},"required":["text"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/character-counter":{"post":{"summary":"Count characters in text, with and without spaces. Returns separate counts so you can answer questions like 'fits in a tweet (280 chars)?' or 'fits in an SMS (160 chars)?' without guessing.","operationId":"character_counter","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"text":{"type":"string","maxLength":60000,"description":"The text to analyze. Capped at 60,000 characters."}},"required":["text"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/reverse-text":{"post":{"summary":"Reverse a string character-by-character. Unicode-aware — handles emoji and combining characters correctly using Array.from on the iterator.","operationId":"reverse_text","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"text":{"type":"string","maxLength":60000,"description":"Text to reverse."}},"required":["text"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/case-converter":{"post":{"summary":"Change the case of text: UPPERCASE, lowercase, Title Case, or Sentence case.","operationId":"case_converter","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"text":{"type":"string","maxLength":60000,"description":"Text to transform."},"case":{"type":"string","enum":["upper","lower","title","sentence"],"description":"Target case. upper=ALL CAPS, lower=all lower, title=Title Case Each Word, sentence=First letter only."}},"required":["text","case"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/whitespace-remover":{"post":{"summary":"Remove or collapse whitespace in text. Modes: trim (edges only), collapse (also fold internal runs to one space), all (strip every whitespace character).","operationId":"whitespace_remover","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"text":{"type":"string","maxLength":60000,"description":"Text to clean."},"mode":{"description":"trim: leading/trailing only. collapse: also collapse internal runs to one space. all: remove every whitespace character. Default: collapse.","type":"string","enum":["trim","collapse","all"]}},"required":["text"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/sort-lines":{"post":{"summary":"Sort the lines of a text block. Options: ascending or descending, optional dedupe, optional case-insensitive compare.","operationId":"sort_lines","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"text":{"type":"string","maxLength":60000,"description":"Multi-line text. Each line is a separate sort key."},"direction":{"description":"Sort direction. Default asc.","type":"string","enum":["asc","desc"]},"unique":{"description":"If true, dedupe lines as part of the sort. Default false.","type":"boolean"},"case_insensitive":{"description":"If true, compare case-insensitively. Default false.","type":"boolean"}},"required":["text"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/dedup-lines":{"post":{"summary":"Remove duplicate lines from a text block. Optionally case-insensitive. Order is preserved (not sorted).","operationId":"dedup_lines","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"text":{"type":"string","maxLength":60000,"description":"Multi-line text."},"keep":{"description":"Which occurrence to keep. Default first.","type":"string","enum":["first","last"]},"case_insensitive":{"description":"If true, lines that differ only in case are considered duplicates. Default false.","type":"boolean"}},"required":["text"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/vowel-counter":{"post":{"summary":"Count vowels and consonants in text. ASCII-only — handles English-style letters. Returns vowel/consonant counts and the vowel ratio.","operationId":"vowel_counter","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"text":{"type":"string","maxLength":60000,"description":"Text to analyze."}},"required":["text"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}},"/api/tools/palindrome-checker":{"post":{"summary":"Test whether a word or phrase is a palindrome. Compares the input lowercased and stripped of non-alphanumeric characters against its reverse.","operationId":"palindrome_checker","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"text":{"type":"string","maxLength":60000,"description":"Word or phrase to test."}},"required":["text"],"additionalProperties":false}}}},"responses":{"200":{"description":"Successful tool execution","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input — see error.message for details"},"404":{"description":"Tool not found"},"413":{"description":"Body too large (max 64 KB)"},"422":{"description":"Engine-level error (e.g. domain-specific validation)"},"429":{"description":"Rate limited"}}}}}}