accueil / serveurs / Données & BDD / tools.clean/mcp
tools.clean/mcp
serveur MCP (Model Context Protocol) · clean-tools 0.1.0
Référencé dans l'annuaire. Seul le pentest comportemental fait foi, et il n'a pas encore été exécuté sur ce serveur.
Est-ce que tools.clean/mcp est sûr ?
Au dernier audit MCP Hub, le serveur MCP « tools.clean/mcp » est classé « Non encore testé ». Référencé dans l'annuaire. Seul le pentest comportemental fait foi, et il n'a pas encore été exécuté sur ce serveur. Le verdict est réévalué en continu ; consultez la fiche pour l'état à jour.
Méthode : MCP Hub analyse la description de chaque outil (couche 1) et, pour le verdict fort, exécute le serveur dans une micro-VM isolée avec leurres et réseau bloqué (couche 2). On publie des noms et des compteurs, jamais le contenu brut renvoyé par un outil.
Les 42 outils
- amortization_schedule≈ 626 tokens
Use this when you need a fixed-rate loan or mortgage's level monthly payment plus a year-by-year amortization schedule (principal paid, interest paid, remaining balance) rather than doing the amortization arithmetic yourself. Uses the standard payment formula and handles the 0% case (payment = principal / months, all principal). annualRate is a percent (6.5 = 6.5%); years is 1-50. Deterministic: same input, same output. Example: principal 300000, annualRate 6.5, years 30 -> monthlyPayment 1896.20, totalInterest 382633.47, numberOfPayments 360, and a 30-row schedule (one per year).
Paramètres, retour & exemple (3)
Paramètresyears· integer · requis
Loan term in years.principal· number · requis
Loan amount (positive).annualRate· number · requis
Annual interest rate as a percent, e.g. 6.5.
Exemple d'appel{"name": "amortization_schedule", "arguments": {"years": 1, "principal": 1, "annualRate": 1}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"schedule": [], "totalPaid": 1, "totalInterest": 1, "monthlyPayment": 1, "numberOfPayments": 1}} - apr_calc≈ 662 tokens
Use this when you need an exact loan APR or APY rather than an approximation. Two modes. mode="loan" (default): solve the true APR of an installment loan from amount financed, monthly payment, term, and upfront fees — Reg-Z style, fees discounted against the amount received, solved by Newton-Raphson. mode="rate": convert a nominal annual rate to APY for a given compounding frequency. Deterministic: same input, same output. Example: mode="loan", loanAmount=20000, monthlyPayment=450, termMonths=60, fees=500 -> apr=13.6301, totalInterest=7000. Prefer this over estimating APR/APY by hand.
Paramètres, retour & exemple (7)
Paramètresfees· number · optionnel
[loan mode] Upfront finance charge/fees (default 0).mode· string · optionnel · rate | loan
"rate" for nominal->APY, "loan" for loan APR (default loan).loanAmount· number · optionnel
[loan mode] Amount financed.termMonths· integer · optionnel
[loan mode] Number of monthly payments.nominalRate· number · optionnel
[rate mode] Nominal annual rate as a percent.monthlyPayment· number · optionnel
[loan mode] Payment per month.compoundingPerYear· integer · optionnel
[rate mode] Compounding periods per year.
Exemple d'appel{"name": "apr_calc", "arguments": {"fees": 1, "mode": "rate", "loanAmount": 1, "termMonths": 1, "nominalRate": 1, "monthlyPayment": 1}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"apr": 1, "apy": 1, "mode": "rate", "totalPaid": 1, "monthlyRate": 1, "nominalRate": 1, "totalInterest": 1, "compoundingPerYear": 1}} - color_contrast≈ 614 tokens
Use this when checking whether a text/background color pair meets WCAG 2.x accessibility contrast. Computes the relative-luminance contrast ratio (1-21, rounded to 2 decimals) and returns pass/fail booleans for normal and large text at AA and AAA levels (thresholds 4.5 / 7 / 3 / 4.5), plus a suggested passing foreground hex when normal-text AA fails (null when it already passes or none is found). Accepts 3- or 6-digit hex, with or without a leading '#'; echoed colors are normalized to 6-digit hex. Deterministic: same input, same output. Example: {foreground:'777', background:'fff'} -> ratio 4.48, normalAA false, largeAA true, suggestedForeground '#767676'.
Paramètres, retour & exemple (2)
Paramètresbackground· string · requis
Background color as a 3 or 6 digit HEX string, with or without a leading #, e.g. "#ffffff" or "fff".foreground· string · requis
Foreground (text) color as a 3 or 6 digit HEX string, with or without a leading #, e.g. "#1a1a1a" or "777".
Exemple d'appel{"name": "color_contrast", "arguments": {"background": "texte", "foreground": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"ratio": 1, "largeAA": true, "largeAAA": true, "normalAA": true, "normalAAA": true, "background": "texte", "foreground": "texte", "suggestedForeground": "texte"}} - color_palette≈ 564 tokens
Use this when you need color-harmony palettes derived from one base hex color. Rotates hue/lightness in HSL to build complementary (+180 degrees), analogous (-30/+30), triadic (+120/+240), split-complementary (+150/+210), and monochromatic (lightness steps) swatch sets, each as an array of hex strings. Accepts a 6-digit hex with or without a leading '#' (case-insensitive). Deterministic: same input, same output. Example: {color:'#e11d48'} -> base '#e11d48', complementary ['#e11d48','#1de1b6'], monochromatic ['#590c1d','#9d1432','#e11d48','#eb607e','#f3a4b5']. Note: grayscale inputs (e.g. '#000000') have no defined hue, so the hue-rotated sets are all identical and only the monochromatic lightness steps differ.
Paramètres, retour & exemple (1)
Paramètrescolor· string · requis
A 6-digit hex color, with or without a leading '#', e.g. "#e11d48" or "e11d48". Case-insensitive.
Exemple d'appel{"name": "color_palette", "arguments": {"color": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"base": "texte", "triadic": [], "analogous": [], "complementary": [], "monochromatic": [], "splitComplementary": []}} - compound_interest≈ 650 tokens
Use this when you need to project a principal's growth under compound interest, optionally with recurring monthly contributions, returning the final balance and a year-by-year breakdown rather than estimating compound growth yourself. Iterates month-by-month for accuracy; contributions are added at the start of each month; compoundingPerYear defaults to 12. annualRate is a percent; years is 1-200. Deterministic: same input, same output. Example: principal 10000, annualRate 7, years 10, monthlyContribution 500 -> finalBalance 107143.85, totalContributions 70000, totalInterest 37143.85, with a 10-row schedule (one per year).
Paramètres, retour & exemple (5)
Paramètresyears· integer · requis
Number of years.principal· number · requis
Starting principal (>= 0).annualRate· number · requis
Annual interest rate as a percent.compoundingPerYear· integer · optionnel
Compounding periods per year (default 12).monthlyContribution· number · optionnel
Amount added at the start of each month (default 0).
Exemple d'appel{"name": "compound_interest", "arguments": {"years": 1, "principal": 1, "annualRate": 1}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"schedule": [], "finalBalance": 1, "totalInterest": 1, "totalContributions": 1}} - convert_case≈ 410 tokens
Use this when you need to re-case text into a specific naming or letter case. Given `text` and a target `case` (upper, lower, title, sentence, camel, snake, kebab, or constant), returns the converted string. Smart word tokenization splits camelCase, snake_case, kebab-case, and whitespace, so a phrase in any style re-cases consistently; title case honors an editorial stop-word list and preserves ALL-CAPS acronyms. Empty text returns an empty result. Deterministic: same input, same output. Example: {text: "myVariableName", case: "constant"} -> result "MY_VARIABLE_NAME".
Paramètres, retour & exemple (2)
Paramètrescase· string · requis · upper | lower | title | sentence | camel | snake | kebab | constant
Target case: upper (UPPER CASE), lower (lower case), title (Title Case with stop-words), sentence (Sentence case), camel (camelCase), snake (snake_case), kebab (kebab-case), constant (CONSTANT_CASE).text· string · requis
The input text to convert.
Exemple d'appel{"name": "convert_case", "arguments": {"case": "upper", "text": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"case": "texte", "result": "texte"}} - convert_color≈ 721 tokens
Use this when you need one color's exact values across every common format. Accepts a hex (#abc or #aabbcc), rgb(r, g, b) with r/g/b 0-255, or hsl(h, s%, l%) color and returns hex, rgb {r,g,b}, hsl {h,s,l}, hsv {h,s,v}, cmyk {c,m,y,k}, and oklch {l,c,h} (CSS Color 4: sRGB -> linear -> OKLab -> OKLCH, rounded to 4 decimals). Note oklch.l is 0-1 (not 0-100) and hue is 0 for grays. Deterministic: same input, same output. Example: "#ff0000" -> oklch {l: 0.628, c: 0.2577, h: 29.2339}. Alpha channels are not supported.
Paramètres, retour & exemple (1)
Paramètrescolor· string · requis
A color as hex (#abc or #aabbcc), rgb(r, g, b) with r/g/b 0-255, or hsl(h, s%, l%). Alpha is not supported.
Exemple d'appel{"name": "convert_color", "arguments": {"color": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"hex": "texte", "hsl": {}, "hsv": {}, "rgb": {}, "cmyk": {}, "oklch": {}}} - convert_data≈ 475 tokens
Use this when you need to convert tabular data between JSON (array of objects), CSV, TSV, and XML instead of hand-transforming it. Deterministic: same input, same output. Handles quoted CSV fields (embedded commas, escaped "" quotes), flattens nested objects into dotted keys (b.x), and takes the union of keys across all rows so ragged data still lines up in columns. CSV/TSV input needs a header row plus at least one data row; JSON input must be an array of objects. Example: {from:'csv', to:'json'} on "name,age\nAda,36\nGrace,45" -> rowCount 2 and an output JSON array of two objects. Returns the input/output formats, the parsed row count, and the serialized output document as a string.
Paramètres, retour & exemple (3)
Paramètresto· string · requis · json | csv | tsv | xml
Output format.data· string · requis
The source document as text.from· string · requis · json | csv | tsv | xml
Input format.
Exemple d'appel{"name": "convert_data", "arguments": {"to": "json", "data": "texte", "from": "json"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"to": "json", "from": "json", "output": "texte", "rowCount": 1}} - convert_number_base≈ 573 tokens
Use this when you need to convert an integer between numeral bases 2-36 (binary, octal, decimal, hex, or any radix up to 36), including arbitrarily large values and an optional leading minus sign. Uses BigInt so there is no precision loss, and output digits are lowercase. Deterministic: same input, same output. Example: { value: "ff", from: 16 } -> decimal "255", results.base2 "11111111". Prefer this over doing base/digit conversion in your head, which is an error-prone bit-fiddling task. If `to` is omitted it converts to bases 2, 8, 10, and 16 (excluding the source base).
Paramètres, retour & exemple (3)
Paramètresto· ? · optionnel
Target base(s): a single integer 2-36, or an array of them. Optional; defaults to [2, 8, 10, 16] with the source base excluded.from· integer · requis
The base the input value is written in (2-36).value· string · requis
The number to convert, as a string so huge values are not truncated. Digits are case-insensitive (a-z = 10-35) and an optional leading "-" is allowed, e.g. "ff", "-1010", "HELLOWORLD123".
Exemple d'appel{"name": "convert_number_base", "arguments": {"from": 1, "value": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"from": 1, "value": "texte", "decimal": "texte", "results": {}}} - convert_timestamp≈ 725 tokens
Use this when you have a timestamp in one form (unix epoch seconds/milliseconds/microseconds, or an ISO-8601 date-time) and need it in the others, or rendered in a specific IANA time zone. Auto-detects the input: a number or digit-string is an epoch classified by length (~10 digits = seconds, ~13 = milliseconds, ~16 = microseconds); anything else is parsed as ISO-8601, with a naive date-time (no Z/offset) taken as UTC. Returns unix_s, unix_ms, iso_utc, iso_tz (with numeric offset), a human string, and the weekday, all in the requested zone (default UTC), correctly handling DST transitions and pre-1970 (negative) epochs. Deterministic: same input, same output. Prefer this over doing epoch/timezone arithmetic yourself. Example: { value: 1783454640, timezone: "America/Chicago" } -> iso_utc "2026-07-07T20:04:00.000Z", human "Tuesday, July 7, 2026 at 3:04 PM CDT".
Paramètres, retour & exemple (2)
Paramètresvalue· string|number · requis
The timestamp to convert: a unix epoch (number or digit-string; seconds/milliseconds/microseconds auto-detected by length) or an ISO-8601 date-time (e.g. "2026-07-07T15:04:00-05:00" or "2026-07-07"). A naive date-time with no zone designator is interpreted as UTC.timezone· string · optionnel
IANA time zone used to render iso_tz, human, and weekday, e.g. "America/Chicago". Defaults to "UTC".
Exemple d'appel{"name": "convert_timestamp", "arguments": {"value": 1}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"human": "texte", "iso_tz": "texte", "unix_s": 1, "iso_utc": "texte", "unix_ms": 1, "weekday": "texte", "detected": "seconds", "timezone": "texte"}} - convert_timezone≈ 528 tokens
Use this when you need to convert a wall-clock date-time between IANA time zones with correct DST handling. Prefer this over doing timezone math yourself (a documented LLM failure mode): it uses the runtime's IANA database so offsets and daylight-saving transitions are exact. Deterministic: same input, same output. Returns the corresponding UTC instant, both zones' UTC offsets in minutes at that instant, and the converted local time. Example: {datetime:'2026-07-08T14:30', fromTz:'America/New_York', toTz:'Asia/Tokyo'} -> converted '9 Jul 2026, 03:30:00' (UTC 2026-07-08T18:30:00.000Z).
Paramètres, retour & exemple (3)
ParamètrestoTz· string · requis
Target IANA zone, e.g. Asia/Tokyo.fromTz· string · requis
Source IANA zone, e.g. America/New_York.datetime· string · requis
Local date-time in the source zone, ISO form YYYY-MM-DDTHH:MM.
Exemple d'appel{"name": "convert_timezone", "arguments": {"toTz": "texte", "fromTz": "texte", "datetime": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"utc": "texte", "toTz": "texte", "input": "texte", "fromTz": "texte", "converted": "texte", "toUtcOffsetMinutes": 1, "fromUtcOffsetMinutes": 1}} - convert_units≈ 536 tokens
Use this when you need to convert a value between units within one category (length, weight, temperature, volume, data, speed, area, time) instead of doing conversion arithmetic yourself. Deterministic: same input, same output. Temperature uses the correct offset formulas (Celsius/Fahrenheit/Kelvin), not a naive ratio, and unit keys are case-sensitive (e.g. km, lb, celsius, MB) while the category name is case-insensitive. Example: {category:'length', value:5, from:'km', to:'mile'} -> result 3.10685596119. Returns the echoed category/value/from/to plus the converted result, rounded to 12 significant figures (switching to exponential for very large or very small magnitudes).
Paramètres, retour & exemple (4)
Paramètresto· string · requis
Target unit key.from· string · requis
Source unit key (e.g. km, lb, celsius, MB).value· number · requis
The numeric value to convert.category· string · requis · length | weight | temperature | volume | data | speed | area | time
Unit category.
Exemple d'appel{"name": "convert_units", "arguments": {"to": "texte", "from": "texte", "value": 1, "category": "length"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"to": "texte", "from": "texte", "value": 1, "result": 1, "category": "length"}} - convert_yaml≈ 362 tokens
Use this when converting between YAML and JSON in either direction, or normalizing one format in place (set from equal to to). Deterministic: same input, same output. Parses a single YAML document and caps alias expansion at 100 to defuse billion-laughs bombs; multi-document input, tabs-as-indentation, and other parse errors return a typed error with the line number. Example: { data: "name: web\nport: 8080", from: "yaml", to: "json" } -> { result: "{\n \"name\": \"web\",\n \"port\": 8080\n}" }.
Paramètres, retour & exemple (3)
Paramètresto· string · requis · yaml | json
Output format; if equal to "from", the document is normalized (parsed and re-emitted).data· string · requis
The document to convert, as a string.from· string · requis · yaml | json
Input format of data.
Exemple d'appel{"name": "convert_yaml", "arguments": {"to": "yaml", "data": "texte", "from": "yaml"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"result": "texte"}} - count_text≈ 422 tokens
Use this when you need exact word, character, sentence, and paragraph counts instead of estimating. Deterministic: same input, same output. Uses Unicode-aware segmentation (Intl.Segmenter): characters are grapheme clusters, so an emoji or an accented letter counts as one; words are word-like segments; sentence splitting is abbreviation-aware (Dr., etc., won't end a sentence). charactersNoSpaces counts graphemes after stripping whitespace, and paragraphs are blocks separated by blank lines. Example: "Café 👩💻!" -> words 1, characters 7, charactersNoSpaces 6, sentences 1, paragraphs 1. Empty input returns all zeros.
Paramètres, retour & exemple (1)
Paramètrestext· string · requis
Text to analyze.
Exemple d'appel{"name": "count_text", "arguments": {"text": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"words": 1, "sentences": 1, "characters": 1, "paragraphs": 1, "charactersNoSpaces": 1}} - css_gradient≈ 593 tokens
Use this when you need a ready-to-paste CSS gradient value from 2-5 hex color stops. Builds a linear-gradient(...) (default; direction defaults to 'to bottom') or a radial-gradient(circle, ...). Direction accepts keywords ('to right', 'to left', 'to top', 'to bottom'), angles ('45deg', '90deg', '135deg'), or 'to <side> <side>'; it is ignored for radial, and passing type 'radial' (or direction 'radial') forces a radial gradient. Colors accept 6-digit hex with or without a leading '#' and are echoed normalized in order. Deterministic: same input, same output. Example: {colors:['#3b82f6','8b5cf6']} -> css 'linear-gradient(to bottom, #3b82f6, #8b5cf6)', type 'linear'. Radial results omit the 'direction' field.
Paramètres, retour & exemple (3)
Paramètrestype· string · optionnel · linear | radial
Gradient type. Defaults to "linear". "radial" produces radial-gradient(circle, ...).colors· array · requis
2 to 5 color stops as 6-digit hex strings, with or without a leading '#', e.g. ["#3b82f6", "8b5cf6"].direction· string · optionnel
Linear direction: a keyword ("to right", "to left", "to bottom", "to top"), an angle ("45deg", "135deg", "90deg"), or "to <side> <side>". Defaults to "to bottom". Ignored for radial; passing "radial" here forces a radial gradient.
Exemple d'appel{"name": "css_gradient", "arguments": {"colors": []}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"css": "texte", "type": "linear", "colors": [], "direction": "texte"}} - decode_jwt≈ 704 tokens
Use this when you need to decode (NOT verify) a JSON Web Token: base64url-decode the header and payload, surface standard claims, and report expiry — prefer it over reading a JWT by eye. The decode is deterministic, but `expired`/`notYetValid` are compared against the current clock unless you pass `now` (ISO) to pin the reference time. The signature is never checked (`signatureVerified` is always false), so never authorize anything based on the output. `expired`/`notYetValid` are booleans when `exp`/`nbf` are present in the payload, otherwise null. Example: a token with sub "1234567890" and a far-future exp -> signatureVerified false, expired false, claims.subject "1234567890".
Paramètres, retour & exemple (2)
Paramètresnow· string · optionnel
Optional ISO time for the expiry check (default: current time).token· string · requis
The compact JWT string (header.payload.signature).
Exemple d'appel{"name": "decode_jwt", "arguments": {"token": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"claims": {}, "header": {}, "expired": true, "payload": {}, "segments": 2, "notYetValid": true, "signatureVerified": true}} - diff_text≈ 485 tokens
Use this when you need an exact line-level diff between two blocks of text instead of eyeballing the differences. Deterministic: same input, same output. Computes a longest-common-subsequence diff and returns every line tagged added, removed, or unchanged, plus per-category counts. Example: original "a\nb", modified "a\nB" -> added 1, removed 1, unchanged 1, with lines [{type:"unchanged",text:"a"},{type:"removed",text:"b"},{type:"added",text:"B"}]. Trailing edits produce separate removed+added lines rather than an in-place change. Inputs whose line-count product exceeds 4,000,000 are rejected as too large to diff.
Paramètres, retour & exemple (2)
Paramètresmodified· string · requis
Modified text.original· string · requis
Original text.
Exemple d'appel{"name": "diff_text", "arguments": {"modified": "texte", "original": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"added": 1, "lines": [], "removed": 1, "unchanged": 1}} - encode_decode≈ 408 tokens
Use this when you need to encode or decode text and want multi-byte and entity edge cases handled correctly rather than doing it by hand. Deterministic: same input, same output. The mode selects the operation: url-encode/url-decode (percent-encoding), html-encode/html-decode (entity table plus numeric character references), base64-encode/base64-decode (UTF-8 safe; decode tolerates URL-safe alphabet, whitespace, and missing padding), and unicode-encode/unicode-decode (\uXXXX and \u{...} escapes for non-ASCII). Every mode returns the same shape: {mode, output}. Example: mode base64-encode, text "héllo" -> output "aMOpbGxv".
Paramètres, retour & exemple (2)
Paramètresmode· string · requis · url-encode | url-decode | html-encode | html-decode | base64-encode | base64-decode | unicode-encode | unicode-decode
Operation to perform.text· string · requis
Input text.
Exemple d'appel{"name": "encode_decode", "arguments": {"mode": "url-encode", "text": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"mode": "url-encode", "output": "texte"}} - expand_rrule≈ 632 tokens
Use this when you need to build an iCalendar RRULE (RFC 5545) or list the actual dates a recurrence produces. Prefer this over computing recurring dates yourself (a documented LLM failure mode): it correctly handles INTERVAL, COUNT/UNTIL exclusivity (COUNT wins), BYDAY with ordinals (e.g. the 2nd Monday), BYMONTH, and month-length edge cases. Deterministic: same input, same output; start is interpreted as UTC. Returns the RRULE string, a plain-English description, and up to 10 (or COUNT) occurrence timestamps. Example: {freq:'MONTHLY', start:'2026-01-05T09:00', byday:['MO'], ordinal:2, count:3} -> rrule 'RRULE:FREQ=MONTHLY;BYDAY=2MO;COUNT=3', first occurrence 2026-01-12T09:00:00.000Z.
Paramètres, retour & exemple (8)
Paramètresfreq· string · requis · DAILY | WEEKLY | MONTHLY | YEARLY
Recurrence frequency.byday· array · optionnel
Days of week (WEEKLY/MONTHLY).count· integer · optionnel
Total number of occurrences (mutually exclusive with until; count wins).start· string · requis
Start date-time, ISO form YYYY-MM-DDTHH:MM (interpreted as UTC).until· string · optionnel
End date YYYY-MM-DD (ignored if count is set).bymonth· array · optionnel
Months (YEARLY).ordinal· integer · optionnel · 1 | 2 | 3 | 4 | -1
Ordinal week position for MONTHLY BYDAY (e.g. 2 = 2nd, -1 = last).interval· integer · optionnel
Repeat every N periods (default 1).
Exemple d'appel{"name": "expand_rrule", "arguments": {"freq": "DAILY", "start": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"rrule": "texte", "description": "texte", "occurrences": []}} - explain_cron≈ 734 tokens
Use this when you need to understand or schedule a 5-field cron expression. Prefer this over reasoning about cron semantics yourself (a documented LLM failure mode): it correctly handles ranges, lists, steps, month/day names, and the tricky day-of-month OR day-of-week rule. Deterministic: same input, same output. Returns a plain-English description, the expanded matching values per field, and the next run times computed in UTC (pass `now` to fix the reference point, `count` for how many). Example: '*/15 9-17 * * 1-5' -> description 'At minute */15 past hour 9-17 on every weekday (Monday through Friday)'.
Paramètres, retour & exemple (3)
Paramètresnow· string · optionnel
Optional ISO timestamp to compute next runs from (default: current time).count· integer · optionnel
How many upcoming run times to return (default 5).expression· string · requis
5-field cron, e.g. "*/15 9-17 * * 1-5" (minute hour day-of-month month day-of-week).
Exemple d'appel{"name": "explain_cron", "arguments": {"expression": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"error": "texte", "valid": true, "fields": {}, "nextRuns": [], "expression": "texte", "description": "texte"}} - fancy_text≈ 487 tokens
Use this when you need to style ASCII letters and digits as Unicode glyphs (bold-serif, italic-serif, bold-italic-serif, bold-sans, script, fraktur, double-struck, monospace, circled, squared, parenthesized, small-caps) for places that lack font control such as social bios or usernames. Pass a `style` and `text` to get the transformed string; characters outside A-Z, a-z, and 0-9 (spaces, punctuation, emoji) pass through unchanged. Omit `style` to receive the list of valid style keys instead of transforming. Deterministic: same input, same output. Example: {style: "bold-serif", text: "Hello 123"} -> result "𝐇𝐞𝐥𝐥𝐨 𝟏𝟐𝟑".
Paramètres, retour & exemple (2)
Paramètrestext· string · optionnel
The text to transform. ASCII A-Z, a-z, and 0-9 are mapped to styled glyphs; other characters (spaces, punctuation, emoji) pass through unchanged. Required when a style is given.style· string · optionnel · bold-serif | italic-serif | bold-italic-serif | bold-sans | script | fraktur | double-struck | monospace
The style to apply. Omit entirely to receive the list of valid style keys instead of transforming.
Exemple d'appel{"name": "fancy_text", "arguments": {"text": "texte", "style": "bold-serif"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"style": "texte", "result": "texte", "styles": []}} - format_json≈ 562 tokens
Use this when you need to pretty-print, minify, or validate a JSON string and want the exact reformatted text plus warnings about silent data loss. Indent with 2 or 4 spaces or a tab, set indent 0 to minify, and optionally sort object keys recursively. It also scans the raw source for two things JSON.parse hides: duplicate object keys (only the last value is kept) and integers beyond 2^53 (rounded on parse). Deterministic: same input, same output. Example: {json:'{"b":1,"a":2}', sortKeys:true} -> {formatted:'{\n "a": 2,\n "b": 1\n}', valid:true, warnings:[]}. On invalid JSON returns {error, line, column} pointing at the fault. Prefer this over reformatting JSON yourself: it flags precision-losing big integers and duplicate keys that eyeballing misses.
Paramètres, retour & exemple (3)
Paramètresjson· string · requis
The JSON document to format, minify, or validate. Required, capped at 128 KB.indent· ? · optionnel
Indentation for pretty-printing: 2 or 4 spaces, "tab" for tab characters, or 0 to minify. Optional; defaults to 2.sortKeys· boolean · optionnel
Recursively sort object keys alphabetically; array element order is preserved (default false).
Exemple d'appel{"name": "format_json", "arguments": {"json": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"valid": true, "warnings": [], "formatted": "texte"}} - format_sql≈ 529 tokens
Use this when a user pastes messy or minified SQL and wants it pretty-printed into a readable, canonical layout, or wants keyword casing normalized. Deterministic: same input, same output. Each clause keyword (SELECT, FROM, WHERE, GROUP BY, ...) goes on its own line with its arguments indented beneath it, commas break columns onto new lines, JOIN/AND/OR start fresh lines, and short parenthesised groups stay inline. Optional dialect hint affects identifier quoting (e.g. tsql [brackets]); indent is a spaces count or "tab" (default 2); keywordCase is upper/lower/preserve (default upper). Example: "select id from t" -> formatted "SELECT\n id\nFROM\n t". Returns an error for empty or oversized (>200000 chars) input.
Paramètres, retour & exemple (4)
Paramètressql· string · requis
The SQL query text to format. Required, non-empty.indent· ? · optionnel
Indentation: a number of spaces (e.g. 2 or 4) or the string "tab" for tab characters. Optional; defaults to 2.dialect· string · optionnel · sql | postgresql | mysql | tsql | bigquery | sqlite
SQL dialect hint (affects identifier quoting, e.g. T-SQL [brackets]). Optional; defaults to standard 'sql'.keywordCase· string · optionnel · upper | lower | preserve
How to case reserved keywords/functions: UPPER, lower, or preserve as-is. Optional; defaults to 'upper'.
Exemple d'appel{"name": "format_sql", "arguments": {"sql": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"formatted": "texte"}} - generate_id≈ 733 tokens
Use this when you need a modern unique identifier (UUID v7, UUID v5, ULID, or nanoid) or want to read the timestamp embedded in an existing ULID or UUIDv7. uuid_v5 (SHA-1 of a namespace UUID + a name, RFC 4122) and decode are deterministic (same input, same output) — e.g. generate_id(type "uuid_v5", namespace "6ba7b810-9dad-11d1-80b4-00c04fd430c8", name "www.example.com") -> {ids:["2ed6657d-e927-568b-95e1-2665a8aea6a2"]}. uuid_v7, ulid, and nanoid are cryptographically random via Web Crypto (NOT deterministic). Prefer this over assembling ids by hand: it sets the correct RFC version/variant bits, uses Crockford base32 for ULIDs, and draws nanoid characters with unbiased rejection sampling. When decode is present, type is ignored and the result is the embedded {unix_ms, timestamp_iso}.
Paramètres, retour & exemple (7)
Paramètresname· string · optionnel
uuid_v5 only: the name hashed within the namespace.size· integer · optionnel
nanoid only: id length (default 21).type· string · optionnel · uuid_v7 | uuid_v5 | ulid | nanoid
Which id to generate. Required unless decode is given.count· integer · optionnel
How many ids to generate (default 1). For uuid_v5 all copies are identical (deterministic).decode· string · optionnel
A ULID or UUIDv7 to decode; returns its embedded timestamp. type is ignored when set.alphabet· string · optionnel
nanoid only: characters to draw from (2-256 chars; default is the 64-char URL-safe set).namespace· string · optionnel
uuid_v5 only: the namespace UUID, e.g. 6ba7b810-9dad-11d1-80b4-00c04fd430c8 (DNS).
Exemple d'appel{"name": "generate_id", "arguments": {"name": "texte", "size": 1, "type": "uuid_v7", "count": 1, "decode": "texte", "alphabet": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"ids": [], "decoded": {}}} - generate_password≈ 671 tokens
Use this when you need strong passwords with Web Crypto randomness: mode="random" builds character-set passwords (length plus uppercase/lowercase/numbers/symbols toggles); mode="memorable" builds word passphrases (words, separator, addNumber, addSymbol). Cryptographically random via Web Crypto (NOT deterministic). For test/dev fixtures — for real credentials prefer the client-side web tool at clean.tools/password-generator/ so the password never crosses the network. Example: {mode: "random", length: 16} -> mode "random", length 16, count 1, passwords ["NXqtsn6MrsfG9d2i"].
Paramètres, retour & exemple (11)
Paramètresmode· string · optionnel · random | memorable
Password style (default random).count· integer · optionnel
How many passwords (default 1).words· integer · optionnel
[memorable] Number of words (default 4).length· integer · optionnel
[random] Character length (default 16).numbers· boolean · optionnel
[random] Include 0-9 (default true).symbols· boolean · optionnel
[random] Include symbols (default false).addNumber· boolean · optionnel
[memorable] Insert a random number (default true).addSymbol· boolean · optionnel
[memorable] Insert a random symbol (default false).lowercase· boolean · optionnel
[random] Include a-z (default true).separator· string · optionnel
[memorable] Word separator (default "-").uppercase· boolean · optionnel
[random] Include A-Z (default true).
Exemple d'appel{"name": "generate_password", "arguments": {"mode": "random", "count": 1, "words": 1, "length": 1, "numbers": true, "symbols": true}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"mode": "random", "count": 1, "words": 1, "length": 1, "passwords": []}} - generate_qr≈ 715 tokens
Use this when you need to turn text or a URL into a real, scannable QR code rather than describing one. Deterministic: same input, same output. Byte mode, error-correction level M, versions 1-10 auto-selected by length (up to 213 bytes); the encoder scores all 8 mask patterns and keeps the lowest-penalty one. Returns both the module matrix as rows of 0/1 (1 = dark module) and a ready-to-render self-contained SVG string. moduleSize sets SVG pixels per module (default 10) and quietZone the border width in modules (default 4). Example: {text:'HELLO'} -> version 1, size 21x21, byteLength 5. Longer text auto-bumps the version and matrix size; over 213 bytes returns an error.
Paramètres, retour & exemple (3)
Paramètrestext· string · requis
Text/URL to encode (up to 213 bytes).quietZone· integer · optionnel
Quiet-zone module border (default 4).moduleSize· integer · optionnel
SVG pixels per module (default 10).
Exemple d'appel{"name": "generate_qr", "arguments": {"text": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"svg": "texte", "mask": 1, "size": 1, "text": "texte", "matrix": [], "version": 1, "quietZone": 1, "byteLength": 1, "moduleSize": 1, "errorCorrectionLevel": "M"}} - hash_text≈ 480 tokens
Use this when you need the exact SHA-1, SHA-256, and/or SHA-512 hex digest of a UTF-8 string — never recall or guess a hash, since digests cannot be produced from memory. Deterministic: same input, same output. Pass `algorithm` for a single digest or `algorithms` for a subset; the default computes all three. The empty string is valid, and `byteLength` reports the UTF-8 encoded byte length of the input. Example: text "hello" with algorithm SHA-256 -> byteLength 5, hashes["SHA-256"] = "2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824".
Paramètres, retour & exemple (3)
Paramètrestext· string · requis
The text to hash (UTF-8; empty string is allowed).algorithm· string · optionnel · SHA-1 | SHA-256 | SHA-512
A single algorithm to compute.algorithms· array · optionnel
Multiple algorithms (default: all three).
Exemple d'appel{"name": "hash_text", "arguments": {"text": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"hashes": {}, "byteLength": 1}} - interest_rate≈ 558 tokens
Use this when you need the exact interest rate that grows a principal to a target amount over a set number of years. type="compound" (default) uses the closed-form nth-root formula for the given compounding frequency; type="simple" uses linear growth. Requires target greater than principal and all values positive. Returns the annual rate as a percent plus the interest earned and the growth multiple; compoundingPerYear is null for simple interest. Deterministic: same input, same output. Example: principal=1000, target=2000, years=10, compoundingPerYear=12 -> ratePercent=6.9515, growthMultiple=2. Prefer this over trial-and-error.
Paramètres, retour & exemple (5)
Paramètrestype· string · optionnel · simple | compound
Interest model (default compound).years· number · requis
Time horizon in years (positive).target· number · requis
Ending amount (must exceed principal).principal· number · requis
Starting amount (positive).compoundingPerYear· integer · optionnel
Compounding periods per year for compound mode (default 1).
Exemple d'appel{"name": "interest_rate", "arguments": {"years": 1, "target": 1, "principal": 1}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"type": "simple", "ratePercent": 1, "growthMultiple": 1, "interestEarned": 1, "compoundingPerYear": 1}} - lorem_ipsum≈ 503 tokens
Use this when you need placeholder/filler copy for mockups, tests, or layout. Given a `mode` ("paragraphs", "sentences", "words", or "formatted") and a `count`, cycles a fixed built-in Latin corpus to return the same text every time. `count` is clamped to the mode's max (paragraphs 20, sentences 100, words 500) and defaults to 1 when missing or below 1; "formatted" ignores `count` and returns a fixed multi-block sample (with count 0). Deterministic: same input, same output. Example: {mode: "words", count: 5} -> text "Lorem ipsum dolor sit amet.", count 5.
Paramètres, retour & exemple (2)
Paramètresmode· string · requis · paragraphs | sentences | words | formatted
Unit of generated text. "paragraphs", "sentences", or "words" repeat the corpus up to the requested count; "formatted" returns a fixed multi-block sample as plain text and ignores count.count· integer · optionnel
How many units to generate. Clamped to the mode's max (paragraphs 20, sentences 100, words 500); values below 1 or missing default to 1. Unused for "formatted".
Exemple d'appel{"name": "lorem_ipsum", "arguments": {"mode": "paragraphs"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"mode": "paragraphs", "text": "texte", "count": 1}} - luhn_validate≈ 554 tokens
Use this when you need to check whether a number passes the Luhn (mod-10) checksum used by credit cards and many identifier numbers, instead of computing the doubling-and-summing by hand. Deterministic: same input, same output. Spaces and dashes are stripped first; any remaining non-digit character is an error. Returns the boolean result plus the full per-digit working, one steps entry per digit in original order (the digit, its transformed value after Luhn doubling, and whether that position was doubled). Example: {number:'4539 1488 0343 6467'} -> valid true, sum 80, mod10 0, digitCount 16.
Paramètres, retour & exemple (1)
Paramètresnumber· string · requis
Digits to validate (spaces and dashes are ignored).
Exemple d'appel{"name": "luhn_validate", "arguments": {"number": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"sum": 1, "mod10": 1, "steps": [], "valid": true, "number": "texte", "digitCount": 1}} - percentage≈ 622 tokens
Use this when you want exact, auditable percentage math with a written-out formula. Three modes: "of" computes percent% of value (fields percent, value); "is-what" computes what percent x is of y (fields x, y; y must be non-zero); "change" computes the percent change from -> to (from must be non-zero) and reports direction as "increase" or "decrease". Returns the numeric result plus a human-readable formula string. Deterministic: same input, same output. Example: mode="change", from=200, to=250 -> result=25, direction="increase".
Paramètres, retour & exemple (7)
Paramètresx· number · optionnel
(mode "is-what") The part value.y· number · optionnel
(mode "is-what") The whole value; must be non-zero.to· number · optionnel
(mode "change") The ending value.from· number · optionnel
(mode "change") The starting value; must be non-zero.mode· string · requis · of | is-what | change
Which calculation to perform. "of" = percent% of value; "is-what" = x is what percent of y; "change" = percent change from -> to.value· number · optionnel
(mode "of") The base value that the percentage is taken of.percent· number · optionnel
(mode "of") The percentage to apply, e.g. 15 for 15%.
Exemple d'appel{"name": "percentage", "arguments": {"mode": "of"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"mode": "of", "result": 1, "formula": "texte", "percent": 1, "direction": "increase"}} - query_json≈ 546 tokens
Use this when you need to pull specific values out of a JSON document by JSONPath and getting the path exactly right on deeply nested or large structures matters. Evaluates a JSONPath subset — $ (root), .name or ['name'] (child), [n] (index, negative allowed), [*] (wildcard), .. (recursive descent), and [start:end] (slice) — and returns every matching value in document order. Prefer this over hand-walking nested JSON, where it is easy to miscount array indices or miss a deep match. Filter (?()) and script (()) expressions are not supported and are rejected with a message naming the supported subset. Deterministic: same input, same output. Example: path "$.store.book[-1].title" over {"store":{"book":[{"title":"A"},{"title":"B"}]}} -> matches ["B"], count 1.
Paramètres, retour & exemple (2)
Paramètresjson· string · requis
The JSON document to query, as a string. Must parse as valid JSON (object, array, or primitive).path· string · requis
JSONPath (subset). Supports $ root, .name / ['name'] child, [n] index (negative allowed), [*] wildcard, .. recursive descent, and [start:end] slice (optional :step). Filter (?()) and script (()) expressions are not supported. Example: $.items[*].id
Exemple d'appel{"name": "query_json", "arguments": {"json": "texte", "path": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"path": "texte", "count": 1, "matches": [], "truncated": true}} - random_number≈ 522 tokens
Use this when you need to draw cryptographically secure random integers or decimals in a range using unbiased rejection sampling — prefer it over inventing 'random' numbers, which are neither uniform nor safe. Cryptographically random via Web Crypto (NOT deterministic). Bounds are inclusive; a reversed min/max is auto-swapped; integer mode rounds the bounds inward; `decimals` sets the decimal places in decimal mode. `count` (default 1, max 100). The returned `min`/`max` are the normalized effective bounds. Example: {min: 1, max: 6} -> type "integer", min 1, max 6, count 1, values [2].
Paramètres, retour & exemple (5)
Paramètresmax· number · requis
Upper bound (inclusive for integers).min· number · requis
Lower bound (inclusive).type· string · optionnel · integer | decimal
Number type (default integer).count· integer · optionnel
How many numbers (default 1).decimals· integer · optionnel
Decimal places for decimal type (default 0).
Exemple d'appel{"name": "random_number", "arguments": {"max": 1, "min": 1}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"max": 1, "min": 1, "type": "integer", "count": 1, "values": []}} - redact_text≈ 590 tokens
Use this when scrubbing test/dev text: replaces each occurrence of the given terms with block characters (████). Provide `text` plus `terms` (a comma-separated string or an array of strings). By default it matches whole words only using Unicode boundaries (so "ann" will not match inside "annual") and is case-insensitive; set `caseSensitive` to match exactly, `wholeWords: false` to match substrings, or `fixedWidth: true` to hide each term's length behind a constant-width bar. Returns the redacted text and a replacement count, and never echoes the original terms. Deterministic: same input, same output. Truly sensitive text is better redacted client-side at clean.tools/text-redact/. Example: {text: "Contact Jane Doe", terms: "Jane Doe"} -> redacted "Contact ████████", redactedCount 1.
Paramètres, retour & exemple (5)
Paramètrestext· string · requis
The text to redact terms from.terms· ? · requis
The sensitive terms to redact, given either as a comma-separated string (e.g. "Jane Doe, jane@x.com") or an array of strings.fixedWidth· boolean · optionnel
When true, replace every matched term with a constant-width block bar so the redacted length does not leak the original term length. Defaults to false (block length equals term length).wholeWords· boolean · optionnel
When true (default), only match terms as whole words using Unicode word boundaries (so "ann" will not match inside "annual").caseSensitive· boolean · optionnel
When true, match terms case-sensitively. Defaults to false (case-insensitive).
Exemple d'appel{"name": "redact_text", "arguments": {"text": "texte", "terms": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"redacted": "texte", "redactedCount": 1}} - render_markdown≈ 338 tokens
Use this when you need to convert lightweight Markdown into a sanitized, XSS-safe HTML fragment to preview or embed, matching the Clean.tools markdown preview. Deterministic: same input, same output. Supports headings, bold/italic/strikethrough, inline and fenced code, links and images (http/https/mailto URL schemes only; other schemes become "#"), blockquotes, ordered/unordered/task lists, GFM tables, and horizontal rules. All raw angle brackets are HTML-escaped so the output is safe to inject. Example: "# Hi\n\n**bold**" -> html "<h1>Hi</h1><p><strong>bold</strong></p>".
Paramètres, retour & exemple (1)
Paramètresmarkdown· string · requis
The Markdown source text to render to HTML.
Exemple d'appel{"name": "render_markdown", "arguments": {"markdown": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"html": "texte"}} - slugify≈ 451 tokens
Use this when you need a URL- or filename-safe slug from arbitrary text. Deterministic: same input, same output. Applies Unicode NFKD normalization, strips combining accents, and transliterates non-decomposing letters (ß->ss, æ->ae, œ->oe, ø->o, đ->d, ł->l, þ->th, ð->d, plus uppercase variants), then collapses every run of non-alphanumeric characters to a single separator and trims separators; e.g. "Héllo Wörld!" -> "hello-world". Emoji, CJK, and any other characters with no ASCII form are dropped. Prefer this over transliterating Unicode yourself, which models routinely get wrong. Returns { error } when no URL-safe characters remain.
Paramètres, retour & exemple (4)
Paramètrestext· string · requis
Text to slugify (max 10000 characters).lowercase· boolean · optionnel
Lowercase the result (default true).maxLength· integer · optionnel
Maximum slug length; 0 means no limit (default). When set and exceeded, the slug is cut at a separator boundary when possible, otherwise hard-cut.separator· string · optionnel
Word separator: empty string (join words) or a single character from "-", "_", ".". Default "-".
Exemple d'appel{"name": "slugify", "arguments": {"text": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"slug": "texte", "changed": true}} - strftime_preview≈ 394 tokens
Use this when you need to know exactly what a C/POSIX strftime pattern (%Y %m %d %H %M %S %A %B %j %z etc.) produces. Prefer this over guessing the output yourself. Deterministic: same input, same output; the reference time is formatted in UTC (%Z is 'UTC', %z is '+0000', defaults to current time when datetime is omitted). Unknown directives pass through literally. Example: {format:'%A, %B %e, %Y at %I:%M %p', datetime:'2026-07-08T14:30:45'} -> 'Wednesday, July 8, 2026 at 02:30 PM'.
Paramètres, retour & exemple (3)
Paramètresnow· string · optionnel
Alias for the reference time when datetime is omitted.format· string · requis
strftime format string, e.g. "%A, %B %e, %Y at %I:%M %p".datetime· string · optionnel
Optional ISO date-time to format (default: current time).
Exemple d'appel{"name": "strftime_preview", "arguments": {"format": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"format": "texte", "output": "texte", "datetimeUtc": "texte"}} - test_regex≈ 687 tokens
Use this when you need the true matches of a JavaScript regular expression rather than predicting regex behavior yourself, which is easy to get wrong. Deterministic: same input, same output. Returns every match with its index, length, matched text, positional capture groups (null for a group that didn't participate), and named groups (an object, or null when the pattern has none). Without the g flag only the first match is returned; with g all matches are collected, capped at 10,000 with truncated=true. Inputs are length-bounded (pattern 2,000 chars, text 50,000 chars) as a ReDoS guard. Example: pattern (?<y>\d{4})-(?<m>\d{2}) over "2024-01" with flag g -> matchCount 1, match "2024-01", groups ["2024","01"], named {y:"2024",m:"01"}.
Paramètres, retour & exemple (3)
Paramètrestext· string · requis
String to search.flags· string · optionnel
Any of g i m s u v y.pattern· string · requis
Regular expression source (no delimiters).
Exemple d'appel{"name": "test_regex", "arguments": {"text": "texte", "pattern": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"flags": "texte", "matches": [], "pattern": "texte", "truncated": true, "matchCount": 1}} - tip≈ 507 tokens
Use this when you want penny-accurate tip and bill-split figures. Given a bill amount, a tip percentage, and an optional number of people (default 1; values below 1 are treated as 1), returns the tip amount, grand total, and the per-person tip and per-person total, all rounded to cents. Deterministic: same input, same output. Example: bill=120, tipPercent=18, people=4 -> tipAmount=21.6, total=141.6, perPersonTotal=35.4.
Paramètres, retour & exemple (3)
Paramètresbill· number · requis
The pre-tip bill amount in dollars. Required. Must be zero or positive.people· integer · optionnel
Number of people splitting the bill. Optional, defaults to 1; values below 1 are treated as 1.tipPercent· number · requis
The tip as a percentage of the bill (e.g. 20 for 20%). Required. Must be zero or positive.
Exemple d'appel{"name": "tip", "arguments": {"bill": 1, "tipPercent": 1}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"bill": 1, "total": 1, "people": 1, "tipAmount": 1, "tipPercent": 1, "perPersonTip": 1, "perPersonTotal": 1}} - tvm_solve≈ 580 tokens
Use this when you have four of the five time-value-of-money variables (N periods, I/Y annual rate percent, PV, PMT, FV) and need the fifth - annuity, loan, or investment problems - instead of solving the equation by hand. Solving for I/Y uses Newton-Raphson (no closed form). Supports compoundingPerYear and annuityDue (payments at the beginning of each period). Follows the cash-flow sign convention (outflows negative). Deterministic: same input, same output. Example: solveFor 'fv', n 120, iy 6, pv -10000, pmt -200, compoundingPerYear 12 -> result 50969.84. result holds the solved value; iy is rounded to 4 decimals, all others to 2.
Paramètres, retour & exemple (8)
Paramètresn· number · optionnel
Number of periods.fv· number · optionnel
Future value.iy· number · optionnel
Interest rate per year as a percent.pv· number · optionnel
Present value (cash-flow sign convention).pmt· number · optionnel
Payment per period.solveFor· string · requis · n | iy | pv | pmt | fv
Which variable to solve for.annuityDue· boolean · optionnel
True if payments occur at the beginning of each period (default false = ordinary annuity).compoundingPerYear· integer · optionnel
Compounding periods per year (default 1).
Exemple d'appel{"name": "tvm_solve", "arguments": {"solveFor": "n"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"result": 1, "solveFor": "n", "annuityDue": true, "compoundingPerYear": 1}} - uuid_v4≈ 342 tokens
Use this when you need RFC 4122 version-4 UUIDs — always generate them here rather than fabricating one, so the version and variant bits and the randomness are correct. Cryptographically random via Web Crypto (NOT deterministic): every call returns fresh values. `count` (default 1, max 100) sets how many; `uppercase` returns upper-case hex (lowercase by default). Example: {count: 1} -> count 1, uuids[0] = "2c549b2f-497c-47fc-a1b6-c24bc69667e5".
Paramètres, retour & exemple (2)
Paramètrescount· integer · optionnel
How many UUIDs to generate (default 1).uppercase· boolean · optionnel
Return uppercase hex (default false).
Exemple d'appel{"name": "uuid_v4", "arguments": {"count": 1, "uppercase": true}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"count": 1, "uuids": []}} - validate_cron≈ 533 tokens
Use this when you need to check whether a 5-field cron expression is well-formed, instead of guessing. Prefer this over reasoning about cron syntax yourself (a documented LLM failure mode). Deterministic: same input, same output. On success returns valid=true, the normalized expression, and the expanded matching values per field; on failure returns valid=false with a specific error (out-of-range value, reversed range, invalid step, wrong field count, or a field that matches nothing). Example: '99 * * * *' -> {valid:false, error:'Minute field: value out of range "99"'}.
Paramètres, retour & exemple (1)
Paramètresexpression· string · requis
5-field cron expression to validate.
Exemple d'appel{"name": "validate_cron", "arguments": {"expression": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"error": "texte", "valid": true, "fields": {}, "normalized": "texte"}}
C'est votre serveur ?
Revendiquez-le sur l'espace créateur (preuve GitHub, domaine ou npm) pour afficher le badge « propriétaire vérifié » et lancer un pentest comportemental à la demande afin d'obtenir le badge « Vérifié ».