{
  "openapi": "3.1.1",
  "info": {
    "title": "Skillgrove API",
    "version": "1.0.0",
    "summary": "Deterministic tools for people and AI agents.",
    "description": "Every endpoint performs the same calculation as the human page and returns inputs, result, units, assumptions, sources, warnings and computedAt. MCP endpoint: /mcp."
  },
  "servers": [
    {
      "url": "https://skillgrove.usefulweb.site"
    }
  ],
  "paths": {
    "/api/v1/tools": {
      "get": {
        "operationId": "listTools",
        "summary": "Catalog of all tools",
        "responses": {
          "200": {
            "description": "Tool list.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/{id}": {
      "get": {
        "operationId": "getTool",
        "summary": "Definition of one tool",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "skillgrove-quiz-check",
                "skillgrove-lesson-search",
                "ohmforge-led-resistor",
                "ohmforge-resistor-color-code",
                "ledgerly-compound-growth",
                "loan-amortization-calculator",
                "hearth-sowing-calendar",
                "proofline-molar-mass",
                "deckwright-cards-from-markdown",
                "unitproof"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Tool definition.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "Invalid input (see errors[]).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/skillgrove-quiz-check/calculate": {
      "post": {
        "operationId": "calculateSkillgroveQuizCheck",
        "summary": "Check a quiz in JSON for mistakes and grade answers: choice, number, order, match, fill-in.",
        "description": "Validates a quiz bank in the Skillgrove format (single and multiple choice, numbers with tolerance and unit, ordering, matching and fill-in questions, each with an explanation and a source) and, if you add answers, grades them exactly like the Skillgrove app: score, pass/fail at 70 % and feedback per question.\n\nMethodology:\n- Validation follows the Skillgrove quiz format: unique question ids, a prompt, an explanation and a source on every question, and type-specific rules (2–6 choices with one right index, 3–6 choices with sorted unique right indices, a number with tolerance ≥ 0 and a unit, 3–7 items in the correct order, 3–6 unique pairs, one ___ gap with 1–5 accepted answers).\n- Grading: single choice, numbers and fill-ins score 1 or 0; multiple choice scores 1 only when every option is judged right (the share of right options is shown); ordering and matching score the share of positions or pairs that are right. Pass mark 70 %.\n- Numbers are read with a comma or a point as decimal separator and accepted within the tolerance; fill-ins are compared after Unicode normalisation, trimming, case folding and ignoring a final full stop.\n- With a seed, questions, choices, items and right-hand sides are shuffled by the same seeded generator as the app (sfc32), so a teacher can reproduce what a learner saw.",
        "tags": [
          "apps"
        ],
        "x-mcp-tool": "skillgrove_quiz_check",
        "x-owner-app": "skillgrove",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SkillgroveQuizCheckInput"
              },
              "examples": {
                "example1": {
                  "summary": "Check the Ohm's law quiz",
                  "value": {
                    "quiz": "{\n  \"format\": \"skillgrove-quiz\",\n  \"version\": 1,\n  \"lesson\": \"electronics/ohms-law-and-circuits/ohms-law\",\n  \"questions\": [\n    {\n      \"id\": \"q1\",\n      \"type\": \"single\",\n      \"prompt\": \"A 12 V supply drives 0.5 A through a resistor. What is its resistance?\",\n      \"choices\": [\n        \"6 Ω\",\n        \"24 Ω\",\n        \"12.5 Ω\"\n      ],\n      \"answer\": 1,\n      \"explanation\": \"R = V / I = 12 / 0.5 = 24 Ω.\",\n      \"source\": \"OpenStax University Physics Vol. 2, 9.5\"\n    },\n    {\n      \"id\": \"q2\",\n      \"type\": \"number\",\n      \"prompt\": \"5 V across 220 Ω — how much current flows?\",\n      \"answer\": 22.7,\n      \"tolerance\": 0.3,\n      \"unit\": \"mA\",\n      \"explanation\": \"I = 5 / 220 = 22.7 mA.\",\n      \"source\": \"OpenStax University Physics Vol. 2, 9.5\"\n    },\n    {\n      \"id\": \"q3\",\n      \"type\": \"fill\",\n      \"prompt\": \"Ohm's law says V = I × ___.\",\n      \"answer\": [\n        \"R\",\n        \"resistance\"\n      ],\n      \"explanation\": \"Voltage equals current times resistance.\",\n      \"source\": \"OpenStax University Physics Vol. 2, 9.5\"\n    }\n  ]\n}"
                  }
                },
                "example2": {
                  "summary": "Grade an attempt (2 of 3 right)",
                  "value": {
                    "quiz": "{\n  \"format\": \"skillgrove-quiz\",\n  \"version\": 1,\n  \"lesson\": \"electronics/ohms-law-and-circuits/ohms-law\",\n  \"questions\": [\n    {\n      \"id\": \"q1\",\n      \"type\": \"single\",\n      \"prompt\": \"A 12 V supply drives 0.5 A through a resistor. What is its resistance?\",\n      \"choices\": [\n        \"6 Ω\",\n        \"24 Ω\",\n        \"12.5 Ω\"\n      ],\n      \"answer\": 1,\n      \"explanation\": \"R = V / I = 12 / 0.5 = 24 Ω.\",\n      \"source\": \"OpenStax University Physics Vol. 2, 9.5\"\n    },\n    {\n      \"id\": \"q2\",\n      \"type\": \"number\",\n      \"prompt\": \"5 V across 220 Ω — how much current flows?\",\n      \"answer\": 22.7,\n      \"tolerance\": 0.3,\n      \"unit\": \"mA\",\n      \"explanation\": \"I = 5 / 220 = 22.7 mA.\",\n      \"source\": \"OpenStax University Physics Vol. 2, 9.5\"\n    },\n    {\n      \"id\": \"q3\",\n      \"type\": \"fill\",\n      \"prompt\": \"Ohm's law says V = I × ___.\",\n      \"answer\": [\n        \"R\",\n        \"resistance\"\n      ],\n      \"explanation\": \"Voltage equals current times resistance.\",\n      \"source\": \"OpenStax University Physics Vol. 2, 9.5\"\n    }\n  ]\n}",
                    "answers": "{\"q1\": 1, \"q2\": \"0,0227\", \"q3\": \"resistance\"}"
                  }
                },
                "example3": {
                  "summary": "Show the order for a seed",
                  "value": {
                    "quiz": "{\n  \"format\": \"skillgrove-quiz\",\n  \"version\": 1,\n  \"lesson\": \"electronics/ohms-law-and-circuits/ohms-law\",\n  \"questions\": [\n    {\n      \"id\": \"q1\",\n      \"type\": \"single\",\n      \"prompt\": \"A 12 V supply drives 0.5 A through a resistor. What is its resistance?\",\n      \"choices\": [\n        \"6 Ω\",\n        \"24 Ω\",\n        \"12.5 Ω\"\n      ],\n      \"answer\": 1,\n      \"explanation\": \"R = V / I = 12 / 0.5 = 24 Ω.\",\n      \"source\": \"OpenStax University Physics Vol. 2, 9.5\"\n    },\n    {\n      \"id\": \"q2\",\n      \"type\": \"number\",\n      \"prompt\": \"5 V across 220 Ω — how much current flows?\",\n      \"answer\": 22.7,\n      \"tolerance\": 0.3,\n      \"unit\": \"mA\",\n      \"explanation\": \"I = 5 / 220 = 22.7 mA.\",\n      \"source\": \"OpenStax University Physics Vol. 2, 9.5\"\n    },\n    {\n      \"id\": \"q3\",\n      \"type\": \"fill\",\n      \"prompt\": \"Ohm's law says V = I × ___.\",\n      \"answer\": [\n        \"R\",\n        \"resistance\"\n      ],\n      \"explanation\": \"Voltage equals current times resistance.\",\n      \"source\": \"OpenStax University Physics Vol. 2, 9.5\"\n    }\n  ]\n}",
                    "seed": "electronics/ohms-law-and-circuits/ohms-law|1"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Calculation result envelope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillgroveQuizCheckResult"
                }
              }
            }
          },
          "400": {
            "description": "Malformed JSON body.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "Invalid input (see errors[]).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded (see Retry-After).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/skillgrove-lesson-search/calculate": {
      "post": {
        "operationId": "calculateSkillgroveLessonSearch",
        "summary": "Find free lessons on plants, crafts, code, electronics, chemistry, physics and money.",
        "description": "Searches the Skillgrove lessons — titles, learning objectives, key points and flashcards — by words, subject and tier (basic, intermediate, expert) and returns the matching lessons with their links, minutes and objectives.\n\nMethodology:\n- Every query word must appear in a lesson (words of 3+ letters also match as the start of a longer word); accents and case are ignored.\n- Ranking: a match in the title weighs 5, in objectives or key points 3, in the description or flashcards 2, in the subject or module name 1; ties keep the course order.\n- Only English lesson texts are searched; translated lessons share the same links.",
        "tags": [
          "apps"
        ],
        "x-mcp-tool": "skillgrove_lesson_search",
        "x-owner-app": "skillgrove",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SkillgroveLessonSearchInput"
              },
              "examples": {
                "example1": {
                  "summary": "Ohm's law",
                  "value": {
                    "query": "Ohm's law"
                  }
                },
                "example2": {
                  "summary": "Basic electronics lessons",
                  "value": {
                    "query": "",
                    "subject": "electronics",
                    "tier": "basic"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Calculation result envelope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillgroveLessonSearchResult"
                }
              }
            }
          },
          "400": {
            "description": "Malformed JSON body.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "Invalid input (see errors[]).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded (see Retry-After).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/ohmforge-led-resistor/calculate": {
      "post": {
        "operationId": "calculateOhmforgeLedResistor",
        "summary": "Series resistor for LEDs, rounded to a standard value and checked with a real diode model.",
        "description": "Calculates the series resistor for one or more LEDs in series: R = (Vs − n·Vf) / I, rounds up to the next E6/E12/E24 value, and then verifies the actual current, LED voltage and resistor dissipation by simulating the circuit with Ohmforge's diode model. Suggests a power rating with 2× margin.\n\nMethodology:\n- Exact value R = (Vs − n·Vf) / I with the typical forward voltage of the chosen colour at 20 mA.\n- Rounded UP to the next preferred value of the chosen E-series so the current never exceeds the target.\n- The circuit (supply, resistor, n LEDs) is then simulated with Ohmforge's LED diode model (n = 2, Rs = 4 Ω, fitted to Vf at 20 mA) to report the real current, which is slightly different because Vf depends on current.\n- Resistor rating: next of 0.125/0.25/0.5/1/2/5 W at or above twice the dissipation.\n\nForward voltages vary by LED type and batch (±0.2 V is common); check the datasheet of your LED. Mains-powered LED circuits need proper isolation – do not build them from this calculation.",
        "tags": [
          "apps"
        ],
        "x-mcp-tool": "ohmforge_led_resistor",
        "x-owner-app": "ohmforge",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OhmforgeLedResistorInput"
              },
              "examples": {
                "example1": {
                  "summary": "Red LED on 9 V at 20 mA",
                  "value": {
                    "supply": 9,
                    "colour": "red",
                    "current": 20,
                    "count": 1,
                    "series": "E12"
                  }
                },
                "example2": {
                  "summary": "Three white LEDs on 12 V at 15 mA",
                  "value": {
                    "supply": 12,
                    "colour": "white",
                    "current": 15,
                    "count": 3,
                    "series": "E24"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Calculation result envelope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OhmforgeLedResistorResult"
                }
              }
            }
          },
          "400": {
            "description": "Malformed JSON body.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "Invalid input (see errors[]).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded (see Retry-After).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/ohmforge-resistor-color-code/calculate": {
      "post": {
        "operationId": "calculateOhmforgeResistorColorCode",
        "summary": "Decode and encode resistor bands",
        "description": "Decode four, five or six color bands or encode an exactly representable resistance, with tolerance and temperature coefficient.\n\nMethodology:\n- Reads two significant digits for four bands and three for five or six bands, then applies the multiplier and tolerance.\n- The optional sixth band is the temperature coefficient in ppm/K. Uses the conventional mappings documented in the linked Vishay chart.\n- Encoding requires an exactly representable value and never silently rounds to a preferred series.\n- The minimum and maximum are nominal resistance multiplied by one minus or plus tolerance; they do not include temperature effects.\n- The nominal value is also checked against the IEC 60063 preferred-number series E6, E12, E24, E48, E96 and E192 (exact match of the significant digits).\n\nThis covers conventional four-, five- and six-band resistor markings. Manufacturers may use different markings, and color appearance or orientation can be ambiguous. Confirm against the component datasheet and measure when uncertain.",
        "tags": [
          "apps"
        ],
        "x-mcp-tool": "ohmforge_resistor_color_code",
        "x-owner-app": "ohmforge",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OhmforgeResistorColorCodeInput"
              },
              "examples": {
                "example1": {
                  "summary": "Decode brown, black, red, gold",
                  "value": {
                    "mode": "decode",
                    "bandCount": "4",
                    "digit1": "brown",
                    "digit2": "black",
                    "multiplier": "red",
                    "tolerance": "gold"
                  }
                },
                "example2": {
                  "summary": "Encode a 4.7 kΩ precision resistor",
                  "value": {
                    "mode": "encode",
                    "bandCount": "5",
                    "ohms": 4700,
                    "tolerance": "brown"
                  }
                },
                "example3": {
                  "summary": "Six bands with temperature coefficient",
                  "value": {
                    "mode": "decode",
                    "bandCount": "6",
                    "digit1": "brown",
                    "digit2": "black",
                    "digit3": "black",
                    "multiplier": "red",
                    "tolerance": "brown",
                    "temperature": "red"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Calculation result envelope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OhmforgeResistorColorCodeResult"
                }
              }
            }
          },
          "400": {
            "description": "Malformed JSON body.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "Invalid input (see errors[]).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded (see Retry-After).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/ledgerly-compound-growth/calculate": {
      "post": {
        "operationId": "calculateLedgerlyCompoundGrowth",
        "summary": "What your savings grow to with monthly contributions, fees and inflation — year by year.",
        "description": "Compound interest with a starting amount, monthly contributions (at the start or end of the month, with a yearly raise), monthly, yearly or daily compounding, yearly fees and inflation. Shows the final balance, the same in today’s money, how much you paid in, how much fees cost including the growth they take away, the doubling time and a year-by-year table. Part of Ledgerly’s Debt \u0026 Growth.\n\nMethodology:\n- Month by month: a contribution at the start of the month (if chosen), growth at the monthly rate, the fee (yearly percentage ÷ 12 of the balance), then a contribution at the end of the month (if chosen).\n- Monthly rate: rate ÷ 12 for monthly compounding, (1 + rate)^(1/12) − 1 for yearly compounding (the same yearly result), (1 + rate/365)^(365/12) − 1 for daily compounding.\n- The monthly contribution rises by the yearly raise at the start of every new year. Today’s money divides the balance by (1 + inflation)^years.\n- Lost to fees = the balance without fees minus the balance with fees: the fees themselves plus the growth they would have earned. Doubling time = ln 2 ÷ ln(1 + return after fees); the rule of 72 is shown for comparison.\n\nReturns are not guaranteed and change from year to year; this model uses one constant rate. It is not investment advice.",
        "tags": [
          "apps"
        ],
        "x-mcp-tool": "ledgerly_compound_growth",
        "x-owner-app": "ledgerly",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LedgerlyCompoundGrowthInput"
              },
              "examples": {
                "example1": {
                  "summary": "10,000 plus 200 a month for 20 years at 6 %, 0.8 % fees",
                  "value": {
                    "currency": "EUR",
                    "startAmount": 10000,
                    "monthlyContribution": 200,
                    "years": 20,
                    "annualReturnPercent": 6,
                    "feePercent": 0.8,
                    "inflationPercent": 2
                  }
                },
                "example2": {
                  "summary": "Textbook check: 10,000 at 5 % compounded yearly for 10 years",
                  "value": {
                    "currency": "USD",
                    "startAmount": 10000,
                    "monthlyContribution": 0,
                    "years": 10,
                    "annualReturnPercent": 5,
                    "compounding": "yearly",
                    "inflationPercent": 0
                  }
                },
                "example3": {
                  "summary": "Start at 25: 150 a month, raised 3 % a year, 40 years",
                  "value": {
                    "currency": "EUR",
                    "startAmount": 0,
                    "monthlyContribution": 150,
                    "contributionTiming": "start",
                    "contributionIncreasePercent": 3,
                    "years": 40,
                    "annualReturnPercent": 5,
                    "feePercent": 0.2,
                    "inflationPercent": 2
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Calculation result envelope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LedgerlyCompoundGrowthResult"
                }
              }
            }
          },
          "400": {
            "description": "Malformed JSON body.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "Invalid input (see errors[]).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded (see Retry-After).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/loan-amortization-calculator/calculate": {
      "post": {
        "operationId": "calculateLoanAmortizationCalculator",
        "summary": "Annuity, linear or interest-only loans: schedule, extra payments, fixed-rate balance, APR.",
        "description": "Calculates the payment and the complete amortization schedule of an annuity, linear (constant principal) or interest-only loan, including one-off and recurring extra payments, the remaining balance at the end of a fixed-rate period, the effective annual rate and the APR with up-front fees. Download the schedule as CSV.\n\nMethodology:\n- Rate per period i = nominal annual rate ÷ payments per year (the usual convention for German and most European loans).\n- Annuity payment A = L·i ÷ (1 − (1 + i)^−n), rounded to the cent; with an initial repayment rate t instead: A = L × (rate + t) ÷ payments per year, and the term follows from A.\n- Each period: interest = balance × i (rounded to the cent); principal = A − interest (annuity), L ÷ n (linear) or 0 until the last payment (interest-only). The last scheduled payment clears any remaining cents.\n- Extra payments reduce the balance on top of the regular payment. Annuity loans keep the payment and finish earlier; linear and interest-only loans keep their principal plan and pay less interest.\n- Remaining balance at the end of the fixed-rate period = balance after the last payment inside that period.\n- Effective annual rate (no fees) = (1 + i)^m − 1. APR: the rate X solving Σ payment_l × (1 + X)^(−t_l) = loan − up-front fees, with t_l measured in years of 12 standard months, as in the equation of the PAngV annex (EU Consumer Credit Directive). This is an approximation: real offers count exact days, may add account fees or insurance, and lenders round to two decimals.",
        "tags": [
          "calculators"
        ],
        "x-mcp-tool": "loan_amortization_calculator",
        "x-owner-app": "ledgerly",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LoanAmortizationCalculatorInput"
              },
              "examples": {
                "example1": {
                  "summary": "Mortgage 300,000 at 3.8%, 2% initial repayment, 10-year fixed rate",
                  "value": {
                    "principal": 300000,
                    "currency": "EUR",
                    "ratePercent": 3.8,
                    "loanType": "annuity",
                    "initialRepaymentPercent": 2,
                    "frequency": "monthly",
                    "startDate": "2026-11-01",
                    "fixedRateYears": 10,
                    "upfrontFees": 0,
                    "recurringExtra": 5000,
                    "recurringEvery": 12,
                    "recurringFrom": 12
                  }
                },
                "example2": {
                  "summary": "Car loan 20,000, 5 years at 6.9% with 400 fees",
                  "value": {
                    "principal": 20000,
                    "currency": "USD",
                    "ratePercent": 6.9,
                    "loanType": "annuity",
                    "termYears": 5,
                    "frequency": "monthly",
                    "upfrontFees": 400
                  }
                },
                "example3": {
                  "summary": "Linear loan 120,000 over 10 years, quarterly",
                  "value": {
                    "principal": 120000,
                    "ratePercent": 4,
                    "loanType": "linear",
                    "termYears": 10,
                    "frequency": "quarterly",
                    "startDate": "2027-01-01",
                    "extraPayments": [
                      {
                        "period": 8,
                        "amount": 10000
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Calculation result envelope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LoanAmortizationCalculatorResult"
                }
              }
            }
          },
          "400": {
            "description": "Malformed JSON body.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "Invalid input (see errors[]).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded (see Retry-After).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/hearth-sowing-calendar/calculate": {
      "post": {
        "operationId": "calculateHearthSowingCalendar",
        "summary": "When to sow indoors, plant out, sow outside and harvest, from your own frost dates.",
        "description": "Turns your last spring and first autumn frost dates into a sowing and planting calendar for up to 40 vegetables and herbs: indoor sowing, planting out, sowing outside with successive sowings, autumn planting and the harvest window, plus a calendar file with every date.\n\nMethodology:\n- Crop timings come from our crop table (40 vegetables and herbs, each cited to its RHS “Grow your own” page): weeks to sow indoors and to plant out or sow outside, counted from your last spring frost; garlic is planted around the first autumn frost.\n- Tender crops (tomato, beans, courgette …) go out only after the last frost; half-hardy crops take a light frost; hardy crops (peas, broad beans, onions, carrots, cabbage) are sown or planted weeks before it.\n- Successive sowings repeat every 2–3 weeks while the crop still ripens before frost: the last sowing is the first autumn frost minus the days to harvest, minus 14 more days for tender crops and plus 14 for hardy ones.\n- Harvest starts at the first planting plus the days to harvest. Long-cropping plants (tomatoes, courgettes, kale, herbs …) are picked until the first autumn frost (tender), two weeks later (half-hardy) or six weeks later (hardy); others for three to six weeks after ripening.\n- Calendar file: one all-day event per window start and per sowing, named after the task.\n\nTimings are rules of thumb for temperate gardens. Soil temperature, variety and the weather of the year matter more than any calendar.",
        "tags": [
          "apps"
        ],
        "x-mcp-tool": "hearth_sowing_calendar",
        "x-owner-app": "hearth",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HearthSowingCalendarInput"
              },
              "examples": {
                "example1": {
                  "summary": "Berlin, typical frost dates, five crops",
                  "value": {
                    "crops": [
                      "tomato",
                      "lettuce",
                      "carrot",
                      "bush-bean",
                      "garlic"
                    ],
                    "lastFrost": "04-08",
                    "firstFrost": "11-02",
                    "year": 2027
                  }
                },
                "example2": {
                  "summary": "Munich, cautious dates, salad and brassicas",
                  "value": {
                    "crops": [
                      "lettuce",
                      "radish",
                      "kohlrabi",
                      "broccoli",
                      "spinach",
                      "rocket"
                    ],
                    "lastFrost": "05-06",
                    "firstFrost": "10-06",
                    "year": 2027
                  }
                },
                "example3": {
                  "summary": "New York, summer crops",
                  "value": {
                    "crops": [
                      "tomato",
                      "pepper",
                      "zucchini",
                      "cucumber",
                      "basil",
                      "sweetcorn"
                    ],
                    "lastFrost": "04-09",
                    "firstFrost": "11-06",
                    "year": 2027
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Calculation result envelope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HearthSowingCalendarResult"
                }
              }
            }
          },
          "400": {
            "description": "Malformed JSON body.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "Invalid input (see errors[]).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded (see Retry-After).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/proofline-molar-mass/calculate": {
      "post": {
        "operationId": "calculateProoflineMolarMass",
        "summary": "Molar mass with uncertainty, mass % per element and the empirical formula from percentages.",
        "description": "Type a chemical formula — with nested brackets, hydrate water, charges or isotopes — and get its molar mass from the current IUPAC standard atomic weights with the combined uncertainty, the formula in Hill order and the mass and atom percentage of every element. Up to ten formulas at once. The second mode turns mass percentages from an elemental analysis into the empirical formula and, with a molar mass, the molecular formula. Part of the Proofline math notebook.\n\nMethodology:\n- The formula is read by Proofline’s own parser: element symbols, counts, nested ( ) and [ ] groups, hydrate parts after · * or a dot (5H2O counts five times), a trailing charge, isotopes written ^13C (D and T for ²H and ³H) and state symbols, which are dropped.\n- Molar mass M = Σ nᵢ·Aᵢ with the CIAAW abridged standard atomic weights Aᵢ (five significant figures where nature allows). Its uncertainty is √Σ(nᵢ·Uᵢ)²: atoms of one element share the same weight (fully correlated), different elements are independent. The value is rounded to the first significant digit of that uncertainty, as CIAAW does.\n- Ions subtract z electron masses (0.000549 g/mol each). Isotopes use AME2020 nuclide masses for common nuclides, otherwise the mass number with a warning. Elements without stable isotopes (Tc, Pm, Po … ) have no standard atomic weight and must be written as a specific isotope.\n- Empirical formula: moles per 100 g are mass % ÷ Aᵢ, divided by the smallest; the smallest multiplier from 1 to 12 that brings every ratio within 0.1 of a whole number gives the counts. With a molar mass, the molecular formula is the nearest whole multiple of the empirical formula.\n\nStandard atomic weights describe normal terrestrial materials; isotopically enriched or unusual geological samples can differ beyond the stated uncertainty. Nothing here is advice on handling chemicals safely.",
        "tags": [
          "apps"
        ],
        "x-mcp-tool": "proofline_molar_mass",
        "x-owner-app": "proofline",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProoflineMolarMassInput"
              },
              "examples": {
                "example1": {
                  "summary": "Water",
                  "value": {
                    "formulas": "H2O"
                  }
                },
                "example2": {
                  "summary": "Copper(II) sulfate pentahydrate",
                  "value": {
                    "formulas": "CuSO4·5H2O"
                  }
                },
                "example3": {
                  "summary": "Several formulas: complex salt, phosphate, labelled CO₂",
                  "value": {
                    "formulas": "K4[Fe(CN)6]\nCa3(PO4)2\n^13CO2"
                  }
                },
                "example4": {
                  "summary": "Ions: permanganate and sulfate",
                  "value": {
                    "formulas": "MnO4-\nSO4^2-"
                  }
                },
                "example5": {
                  "summary": "Glucose from its elemental analysis",
                  "value": {
                    "mode": "empirical",
                    "percentages": "C 40.0, H 6.71, O 53.29",
                    "molarMass": 180.16
                  }
                },
                "example6": {
                  "summary": "Iron oxide from 69.94 % iron",
                  "value": {
                    "mode": "empirical",
                    "percentages": "Fe 69.94, O 30.06"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Calculation result envelope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProoflineMolarMassResult"
                }
              }
            }
          },
          "400": {
            "description": "Malformed JSON body.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "Invalid input (see errors[]).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded (see Retry-After).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/deckwright-cards-from-markdown/calculate": {
      "post": {
        "operationId": "calculateDeckwrightCardsFromMarkdown",
        "summary": "Turn notes into flashcards: Q:/A: pairs, term :: definition lines, cloze gaps, CSV or Anki text.",
        "description": "Reads study notes and makes flashcards with stable ids: Markdown “Q:”/“A:” pairs, “term :: definition” lines (“:::” adds the reverse card), {{c1::cloze}} gaps with optional hints (one card per gap number, like Anki), # headings as tags, CSV or tab-separated rows, an Anki “Notes in Plain Text” export (HTML turned into text) or a Deckwright slide deck (slide titles become questions). Returns the cards, a CSV file, the cards as editable Markdown and a link that opens them in Deckwright’s Study view.\n\nMethodology:\n- Markdown: a line “Q:” starts a question, “A:” its answer (several lines; a blank line ends the card). “front :: back” lines make one card, “front ::: back” two (both directions). Paragraphs with {{cN::answer}} or {{cN::answer::hint}} make one cloze card per number N: that gap shows […] or [hint], the other gaps show their text. # headings tag the cards below them.\n- CSV and TSV follow RFC 4180 (quoted fields may hold commas, tabs and line breaks); a first row named front/back, question/answer or term/definition is a header, a third column or a column named tag becomes the tag. Anki text exports honour #separator, #html, #columns and the #notetype/#deck/#guid/#tags column headers; HTML line breaks are kept, bold and italic become Markdown, pictures become their file name.\n- A slide deck gives one card per content slide with a title: the title is the question, the slide text (lists, tables, quotes, chart and diagram descriptions) the answer; # section slides tag the cards after them; speaker notes stay out.\n- Card ids are “b-”, “r-” (reverse) or “cN-” (cloze) plus the FNV-1a hash of the question (of the full sentence for cloze cards), so editing an answer keeps the card’s review history; repeated questions get -2, -3 ….\n\nAnki .apkg packages (SQLite) are not read; export the notes from Anki as “Notes in Plain Text” instead. Pictures inside an Anki text export cannot be carried over.",
        "tags": [
          "apps"
        ],
        "x-mcp-tool": "deckwright_cards_from_markdown",
        "x-owner-app": "deckwright",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeckwrightCardsFromMarkdownInput"
              },
              "examples": {
                "example1": {
                  "summary": "Spanish phrases with reverse cards and two cloze gaps",
                  "value": {
                    "text": "# Greetings\nhola ::: hello\nbuenos días ::: good morning\ngracias ::: thank you\n\n# Getting around\nQ: How do you ask where the station is?\nA: ¿Dónde está la estación?\n\nla estación :: the station\nel billete :: the ticket\n\n# At the café\nun café con leche :: a coffee with milk\n\nQ: How do you ask for the bill?\nA: la cuenta, por favor\n\nMadrid's main station is {{c1::Atocha}}; the fast train to Barcelona takes about {{c2::two and a half::how long?}} hours.\n",
                    "lang": "es"
                  }
                },
                "example2": {
                  "summary": "Cards from a lesson deck (slide titles become questions)",
                  "value": {
                    "text": "---\ntitle: How plants make food\nlang: en\ntheme: harbor\nfooter: Biology · lesson 4\n---\n\n# How plants make food\n\nPhotosynthesis in five slides\n\n---\n\n## The idea in one sentence\n\n\u003e Plants use the energy of light to turn carbon dioxide and water into sugar and oxygen.\n\n---\n\n## What goes in, what comes out\n\n| In | Out |\n|---|---|\n| Carbon dioxide from the air | Sugar (glucose) |\n| Water from the roots | Oxygen |\n| Light energy | |\n\n6 CO₂ + 6 H₂O + light gives C₆H₁₂O₆ + 6 O₂\n\n---\n\n## Where it happens\n\n```mermaid\n%% alt: Photosynthesis happens in the leaf (chloroplasts, stomata) in two stages: light reactions split water and release oxygen; the Calvin cycle fixes carbon dioxide into sugar.\nmindmap\n  Photosynthesis\n    Leaf\n      Chloroplasts\n      Stomata\n    Light reactions\n      Split water\n      Release oxygen\n    Calvin cycle\n      Fix CO₂\n      Build sugar\n```\n\n---\n\n## Try it yourself\n\n- Put a water plant under a lamp\n- Count the oxygen bubbles per minute\n- Move the lamp closer and count again\n\nNotes:\nAsk the class to predict the result before moving the lamp.\n\n---\n\n## Bubbles and light\n\n```chart\ntype: line\ntitle: Bubbles per minute (example class data)\nx: Distance (cm)\ny: Bubbles\nalt: The closer the lamp, the more bubbles: from 4 per minute at 50 cm to 31 per minute at 10 cm.\n\nDistance (cm),Bubbles\n10,31\n20,19\n30,11\n40,7\n50,4\n```\n",
                    "format": "deck"
                  }
                },
                "example3": {
                  "summary": "CSV with a header row, both directions",
                  "value": {
                    "text": "front,back,tag\nH2O,water,chemistry\nNaCl,table salt,chemistry\nCO2,carbon dioxide,chemistry\n",
                    "format": "csv",
                    "reverse": true
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Calculation result envelope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeckwrightCardsFromMarkdownResult"
                }
              }
            }
          },
          "400": {
            "description": "Malformed JSON body.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "Invalid input (see errors[]).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded (see Retry-After).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tools/unitproof/calculate": {
      "post": {
        "operationId": "calculateUnitproof",
        "summary": "Unit maths you can audit: dimension check, exact factors and a full derivation tree.",
        "description": "Type an expression such as \"3.5 km/h * 2 h to m\", \"72 F to C\" or \"1500 W * 3 h to kWh\". UnitProof parses it, checks dimensions over the SI base units, applies exact NIST/SI conversion factors and shows every step as a derivation tree, including correct absolute-vs-difference temperature handling.\n\nMethodology:\n- A tokenizer and recursive-descent parser read numbers (incl. scientific notation), units with SI prefixes (q…Q, incl. µ/u) and binary prefixes (Ki…Ei for bit/B), ^ powers (also ² ³ and \"m2\"), × ÷ + − and parentheses. Juxtaposition (\"2 h\", \"kg m\") binds tighter than explicit * and /, so \"60 km / 2 h\" = 30 km/h.\n- Every quantity is a value in coherent SI units plus a dimension vector over m, kg, s, A, K, mol, cd and bit; ISO 4217 currency codes are carried as opaque dimensions (never converted). The table has 144 named units.\n- Multiplication adds dimension exponents, division subtracts them, powers scale them; addition, subtraction and conversion require identical dimensions, otherwise the calculation stops with an explanation of the mismatch.\n- Temperatures: \"72 F\" or \"-40 C\" (a number directly followed by °C/°F) is an absolute temperature converted with its offset; absolute − absolute gives a difference; absolute ± difference stays absolute; multiplying, dividing or powering °C/°F is refused as ambiguous (use K or deltaC/deltaF). Converting a difference to °C/°F applies only the scale factor.\n- Exact factors follow the SI Brochure (9th ed.) and NIST SP 811 Appendix B (international foot/pound, US liquid gallon = 231 in³, Btu_IT, thermochemical calorie, etc.); conventional or measured values (mmHg, inHg, dalton) are flagged as not exact.\n- The derivation graph lists literals, unit definitions (with factor), operations and the final conversion; values are IEEE-754 doubles, shown unrounded and rounded to the requested significant digits.",
        "tags": [
          "developer"
        ],
        "x-mcp-tool": "unitproof",
        "x-owner-app": "ravingdesk",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UnitproofInput"
              },
              "examples": {
                "example1": {
                  "summary": "Distance: 3.5 km/h for 2 h in metres",
                  "value": {
                    "expression": "3.5 km/h * 2 h to m"
                  }
                },
                "example2": {
                  "summary": "Temperature: 72 °F in °C",
                  "value": {
                    "expression": "72 F to C"
                  }
                },
                "example3": {
                  "summary": "Energy: 1500 W for 3 h in kWh",
                  "value": {
                    "expression": "1500 W * 3 h to kWh"
                  }
                },
                "example4": {
                  "summary": "Force: 75 kg at 9.81 m/s²",
                  "value": {
                    "expression": "9.81 m/s^2 * 75 kg to N"
                  }
                },
                "example5": {
                  "summary": "Mixed lengths: 1 mi + 200 m in km",
                  "value": {
                    "expression": "1 mi + 200 m to km",
                    "significantDigits": 4
                  }
                },
                "example6": {
                  "summary": "Opaque currency: 5 USD/kg × 2.5 kg",
                  "value": {
                    "expression": "5 USD/kg * 2.5 kg"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Calculation result envelope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnitproofResult"
                }
              }
            }
          },
          "400": {
            "description": "Malformed JSON body.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "Invalid input (see errors[]).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded (see Retry-After).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/workflows": {
      "get": {
        "operationId": "listWorkflows",
        "summary": "Multi-tool workflows",
        "responses": {
          "200": {
            "description": "Workflow list.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Problem": {
        "type": "object",
        "description": "RFC 9457 problem details. 422 responses include per-field `errors`.",
        "required": [
          "type",
          "title",
          "status",
          "detail"
        ],
        "properties": {
          "type": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "integer"
          },
          "detail": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "errors": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "field",
                "message"
              ],
              "properties": {
                "field": {
                  "type": "string"
                },
                "message": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "SkillgroveQuizCheckInput": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "quiz": {
            "title": "Quiz bank (JSON)",
            "description": "Format \"skillgrove-quiz\", version 1: a lesson key and a list of questions (see the example).",
            "type": "string",
            "maxLength": 200000,
            "default": "{\n  \"format\": \"skillgrove-quiz\",\n  \"version\": 1,\n  \"lesson\": \"electronics/ohms-law-and-circuits/ohms-law\",\n  \"questions\": [\n    {\n      \"id\": \"q1\",\n      \"type\": \"single\",\n      \"prompt\": \"A 12 V supply drives 0.5 A through a resistor. What is its resistance?\",\n      \"choices\": [\n        \"6 Ω\",\n        \"24 Ω\",\n        \"12.5 Ω\"\n      ],\n      \"answer\": 1,\n      \"explanation\": \"R = V / I = 12 / 0.5 = 24 Ω.\",\n      \"source\": \"OpenStax University Physics Vol. 2, 9.5\"\n    },\n    {\n      \"id\": \"q2\",\n      \"type\": \"number\",\n      \"prompt\": \"5 V across 220 Ω — how much current flows?\",\n      \"answer\": 22.7,\n      \"tolerance\": 0.3,\n      \"unit\": \"mA\",\n      \"explanation\": \"I = 5 / 220 = 22.7 mA.\",\n      \"source\": \"OpenStax University Physics Vol. 2, 9.5\"\n    },\n    {\n      \"id\": \"q3\",\n      \"type\": \"fill\",\n      \"prompt\": \"Ohm's law says V = I × ___.\",\n      \"answer\": [\n        \"R\",\n        \"resistance\"\n      ],\n      \"explanation\": \"Voltage equals current times resistance.\",\n      \"source\": \"OpenStax University Physics Vol. 2, 9.5\"\n    }\n  ]\n}"
          },
          "answers": {
            "title": "Answers to grade (JSON, optional)",
            "description": "Question id → answer: choice index, list of indices, number, list of texts in order, list of right-hand sides per pair, or text. Example: {\"q1\": 1, \"q2\": \"22.7\", \"q3\": \"R\"}",
            "type": "string",
            "maxLength": 20000,
            "default": ""
          },
          "seed": {
            "title": "Shuffle seed (optional)",
            "description": "With a seed the result also lists the question and choice order the app shows for that seed.",
            "type": "string",
            "maxLength": 120,
            "default": ""
          }
        },
        "required": []
      },
      "SkillgroveQuizCheckResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schemaVersion",
          "tool",
          "computedAt",
          "inputs",
          "summary",
          "result",
          "units",
          "assumptions",
          "sources",
          "warnings",
          "presentation",
          "links"
        ],
        "properties": {
          "schemaVersion": {
            "type": "string",
            "const": "1.0"
          },
          "tool": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id",
              "name",
              "version"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "version": {
                "type": "string"
              }
            }
          },
          "computedAt": {
            "type": "string",
            "format": "date-time"
          },
          "inputs": {
            "type": "object",
            "description": "Normalised inputs actually used, including applied defaults."
          },
          "summary": {
            "type": "string"
          },
          "result": {
            "type": "object",
            "required": [
              "valid",
              "problems",
              "questions",
              "types"
            ],
            "properties": {
              "valid": {
                "type": "boolean"
              },
              "problems": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              },
              "questions": {
                "type": "integer"
              },
              "types": {
                "type": "object"
              },
              "grade": {
                "type": [
                  "object",
                  "null"
                ]
              },
              "order": {
                "type": [
                  "array",
                  "null"
                ]
              }
            }
          },
          "units": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "assumptions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "title"
              ],
              "properties": {
                "title": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "publisher": {
                  "type": "string"
                },
                "retrievedAt": {
                  "type": "string"
                },
                "note": {
                  "type": "string"
                }
              }
            }
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "presentation": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Display blocks used by the human page (same data)."
          },
          "links": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "human",
              "api",
              "openapi",
              "methodology"
            ],
            "properties": {
              "human": {
                "type": "string",
                "format": "uri"
              },
              "api": {
                "type": "string",
                "format": "uri"
              },
              "openapi": {
                "type": "string",
                "format": "uri"
              },
              "methodology": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      },
      "SkillgroveLessonSearchInput": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "query": {
            "title": "Search words",
            "description": "For example: LED resistor, compound interest, soil pH, recursion.",
            "type": "string",
            "maxLength": 200,
            "default": "Ohm's law"
          },
          "subject": {
            "title": "Subject",
            "type": "string",
            "enum": [
              "",
              "plants",
              "craftsmanship",
              "programming",
              "electronics",
              "chemistry",
              "physics",
              "finance",
              "business"
            ],
            "default": ""
          },
          "tier": {
            "title": "Tier",
            "type": "string",
            "enum": [
              "",
              "basic",
              "intermediate",
              "expert"
            ],
            "default": ""
          },
          "limit": {
            "title": "Results",
            "type": "integer",
            "minimum": 1,
            "maximum": 50,
            "default": 10
          }
        },
        "required": []
      },
      "SkillgroveLessonSearchResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schemaVersion",
          "tool",
          "computedAt",
          "inputs",
          "summary",
          "result",
          "units",
          "assumptions",
          "sources",
          "warnings",
          "presentation",
          "links"
        ],
        "properties": {
          "schemaVersion": {
            "type": "string",
            "const": "1.0"
          },
          "tool": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id",
              "name",
              "version"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "version": {
                "type": "string"
              }
            }
          },
          "computedAt": {
            "type": "string",
            "format": "date-time"
          },
          "inputs": {
            "type": "object",
            "description": "Normalised inputs actually used, including applied defaults."
          },
          "summary": {
            "type": "string"
          },
          "result": {
            "type": "object",
            "required": [
              "count",
              "lessons"
            ],
            "properties": {
              "count": {
                "type": "integer"
              },
              "total": {
                "type": "integer"
              },
              "lessons": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "units": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "assumptions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "title"
              ],
              "properties": {
                "title": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "publisher": {
                  "type": "string"
                },
                "retrievedAt": {
                  "type": "string"
                },
                "note": {
                  "type": "string"
                }
              }
            }
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "presentation": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Display blocks used by the human page (same data)."
          },
          "links": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "human",
              "api",
              "openapi",
              "methodology"
            ],
            "properties": {
              "human": {
                "type": "string",
                "format": "uri"
              },
              "api": {
                "type": "string",
                "format": "uri"
              },
              "openapi": {
                "type": "string",
                "format": "uri"
              },
              "methodology": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      },
      "OhmforgeLedResistorInput": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "supply": {
            "title": "Supply voltage",
            "type": "number",
            "minimum": 0.5,
            "maximum": 400,
            "default": 9,
            "x-unit": "V"
          },
          "colour": {
            "title": "LED colour",
            "type": "string",
            "enum": [
              "red",
              "orange",
              "yellow",
              "green",
              "blue",
              "white",
              "ir",
              "custom"
            ],
            "default": "red"
          },
          "vf": {
            "title": "Forward voltage (custom)",
            "description": "Only used for \"Custom\".",
            "type": "number",
            "minimum": 0.5,
            "maximum": 50,
            "x-unit": "V"
          },
          "current": {
            "title": "LED current",
            "type": "number",
            "minimum": 0.1,
            "maximum": 1000,
            "default": 20,
            "x-unit": "mA"
          },
          "count": {
            "title": "LEDs in series",
            "type": "integer",
            "minimum": 1,
            "maximum": 50,
            "default": 1
          },
          "series": {
            "title": "Resistor series",
            "type": "string",
            "enum": [
              "E6",
              "E12",
              "E24"
            ],
            "default": "E12"
          }
        },
        "required": [
          "supply",
          "current"
        ]
      },
      "OhmforgeLedResistorResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schemaVersion",
          "tool",
          "computedAt",
          "inputs",
          "summary",
          "result",
          "units",
          "assumptions",
          "sources",
          "warnings",
          "presentation",
          "links"
        ],
        "properties": {
          "schemaVersion": {
            "type": "string",
            "const": "1.0"
          },
          "tool": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id",
              "name",
              "version"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "version": {
                "type": "string"
              }
            }
          },
          "computedAt": {
            "type": "string",
            "format": "date-time"
          },
          "inputs": {
            "type": "object",
            "description": "Normalised inputs actually used, including applied defaults."
          },
          "summary": {
            "type": "string"
          },
          "result": {
            "type": "object",
            "required": [
              "exactOhms",
              "standardOhms",
              "simulatedCurrent",
              "resistorPower",
              "recommendedRating"
            ],
            "properties": {
              "vf": {
                "type": "number"
              },
              "exactOhms": {
                "type": "number"
              },
              "standardOhms": {
                "type": "number"
              },
              "series": {
                "type": "string"
              },
              "simulatedCurrent": {
                "type": "number"
              },
              "simulatedLedVoltage": {
                "type": "number"
              },
              "resistorPower": {
                "type": "number"
              },
              "ledPower": {
                "type": "number"
              },
              "recommendedRating": {
                "type": "number"
              },
              "efficiency": {
                "type": "number"
              },
              "netlist": {
                "type": "string"
              }
            }
          },
          "units": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "assumptions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "title"
              ],
              "properties": {
                "title": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "publisher": {
                  "type": "string"
                },
                "retrievedAt": {
                  "type": "string"
                },
                "note": {
                  "type": "string"
                }
              }
            }
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "presentation": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Display blocks used by the human page (same data)."
          },
          "links": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "human",
              "api",
              "openapi",
              "methodology"
            ],
            "properties": {
              "human": {
                "type": "string",
                "format": "uri"
              },
              "api": {
                "type": "string",
                "format": "uri"
              },
              "openapi": {
                "type": "string",
                "format": "uri"
              },
              "methodology": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      },
      "OhmforgeResistorColorCodeInput": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "mode": {
            "title": "Calculate",
            "type": "string",
            "enum": [
              "decode",
              "encode"
            ],
            "default": "decode"
          },
          "bandCount": {
            "title": "Number of bands",
            "type": "string",
            "enum": [
              "4",
              "5",
              "6"
            ],
            "default": "4"
          },
          "digit1": {
            "title": "First significant band (decode)",
            "type": "string",
            "enum": [
              "brown",
              "red",
              "orange",
              "yellow",
              "green",
              "blue",
              "violet",
              "gray",
              "white"
            ],
            "default": "brown"
          },
          "digit2": {
            "title": "Second significant band (decode)",
            "type": "string",
            "enum": [
              "black",
              "brown",
              "red",
              "orange",
              "yellow",
              "green",
              "blue",
              "violet",
              "gray",
              "white"
            ],
            "default": "black"
          },
          "digit3": {
            "title": "Third significant band (5 or 6 bands, decode)",
            "type": "string",
            "enum": [
              "black",
              "brown",
              "red",
              "orange",
              "yellow",
              "green",
              "blue",
              "violet",
              "gray",
              "white"
            ],
            "default": "black"
          },
          "multiplier": {
            "title": "Multiplier band (decode)",
            "type": "string",
            "enum": [
              "silver",
              "gold",
              "black",
              "brown",
              "red",
              "orange",
              "yellow",
              "green",
              "blue",
              "violet",
              "gray",
              "white"
            ],
            "default": "red"
          },
          "tolerance": {
            "title": "Tolerance band",
            "type": "string",
            "enum": [
              "silver",
              "gold",
              "brown",
              "red",
              "green",
              "blue",
              "violet",
              "gray"
            ],
            "default": "gold"
          },
          "temperature": {
            "title": "Temperature coefficient band (6 bands)",
            "type": "string",
            "enum": [
              "brown",
              "red",
              "yellow",
              "orange",
              "blue",
              "violet"
            ],
            "default": "brown"
          },
          "ohms": {
            "title": "Resistance in ohms (encode)",
            "type": "number",
            "minimum": 0.1,
            "maximum": 999000000000,
            "default": 1000,
            "x-unit": "Ω"
          }
        },
        "required": []
      },
      "OhmforgeResistorColorCodeResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schemaVersion",
          "tool",
          "computedAt",
          "inputs",
          "summary",
          "result",
          "units",
          "assumptions",
          "sources",
          "warnings",
          "presentation",
          "links"
        ],
        "properties": {
          "schemaVersion": {
            "type": "string",
            "const": "1.0"
          },
          "tool": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id",
              "name",
              "version"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "version": {
                "type": "string"
              }
            }
          },
          "computedAt": {
            "type": "string",
            "format": "date-time"
          },
          "inputs": {
            "type": "object",
            "description": "Normalised inputs actually used, including applied defaults."
          },
          "summary": {
            "type": "string"
          },
          "result": {
            "type": "object",
            "required": [
              "bands",
              "ohms",
              "tolerancePercent",
              "minimumOhms",
              "maximumOhms",
              "temperatureCoefficientPpmPerK",
              "preferredSeries"
            ],
            "properties": {
              "bands": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "ohms": {
                "type": "number"
              },
              "tolerancePercent": {
                "type": "number"
              },
              "minimumOhms": {
                "type": "number"
              },
              "maximumOhms": {
                "type": "number"
              },
              "temperatureCoefficientPpmPerK": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "preferredSeries": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "E6",
                    "E12",
                    "E24",
                    "E48",
                    "E96",
                    "E192"
                  ]
                }
              }
            },
            "additionalProperties": false
          },
          "units": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "assumptions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "title"
              ],
              "properties": {
                "title": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "publisher": {
                  "type": "string"
                },
                "retrievedAt": {
                  "type": "string"
                },
                "note": {
                  "type": "string"
                }
              }
            }
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "presentation": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Display blocks used by the human page (same data)."
          },
          "links": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "human",
              "api",
              "openapi",
              "methodology"
            ],
            "properties": {
              "human": {
                "type": "string",
                "format": "uri"
              },
              "api": {
                "type": "string",
                "format": "uri"
              },
              "openapi": {
                "type": "string",
                "format": "uri"
              },
              "methodology": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      },
      "LedgerlyCompoundGrowthInput": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "currency": {
            "title": "Currency",
            "description": "ISO code used for the labels, e.g. EUR, USD, GBP.",
            "type": "string",
            "maxLength": 3,
            "default": "EUR"
          },
          "startAmount": {
            "title": "Starting amount",
            "type": "number",
            "minimum": 0,
            "maximum": 1000000000,
            "default": 10000
          },
          "monthlyContribution": {
            "title": "Added every month",
            "type": "number",
            "minimum": 0,
            "maximum": 10000000,
            "default": 200
          },
          "contributionTiming": {
            "title": "Added at the",
            "type": "string",
            "enum": [
              "end",
              "start"
            ],
            "default": "end"
          },
          "contributionIncreasePercent": {
            "title": "Raise of the monthly amount (% per year)",
            "type": "number",
            "minimum": 0,
            "maximum": 50,
            "default": 0
          },
          "years": {
            "title": "Years",
            "type": "integer",
            "minimum": 1,
            "maximum": 80,
            "default": 20
          },
          "annualReturnPercent": {
            "title": "Return (% per year, before fees)",
            "type": "number",
            "minimum": -20,
            "maximum": 30,
            "default": 6
          },
          "compounding": {
            "title": "Compounding",
            "type": "string",
            "enum": [
              "monthly",
              "yearly",
              "daily"
            ],
            "default": "monthly"
          },
          "feePercent": {
            "title": "Yearly fees (% of the balance)",
            "description": "Fund costs (TER), platform or advice fees, charged monthly on the balance.",
            "type": "number",
            "minimum": 0,
            "maximum": 10,
            "default": 0
          },
          "inflationPercent": {
            "title": "Inflation (% per year) for today’s money",
            "type": "number",
            "minimum": -5,
            "maximum": 30,
            "default": 2
          }
        },
        "required": []
      },
      "LedgerlyCompoundGrowthResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schemaVersion",
          "tool",
          "computedAt",
          "inputs",
          "summary",
          "result",
          "units",
          "assumptions",
          "sources",
          "warnings",
          "presentation",
          "links"
        ],
        "properties": {
          "schemaVersion": {
            "type": "string",
            "const": "1.0"
          },
          "tool": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id",
              "name",
              "version"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "version": {
                "type": "string"
              }
            }
          },
          "computedAt": {
            "type": "string",
            "format": "date-time"
          },
          "inputs": {
            "type": "object",
            "description": "Normalised inputs actually used, including applied defaults."
          },
          "summary": {
            "type": "string"
          },
          "result": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "currency",
              "years",
              "finalBalance",
              "finalBalanceToday",
              "totalContributed",
              "totalGrowth",
              "totalFees",
              "feeDrag",
              "netReturnPercent",
              "realReturnPercent",
              "doublingYears",
              "ruleOf72Years",
              "yearly"
            ],
            "properties": {
              "currency": {
                "type": "string"
              },
              "years": {
                "type": "integer"
              },
              "finalBalance": {
                "type": "number"
              },
              "finalBalanceToday": {
                "type": "number"
              },
              "totalContributed": {
                "type": "number"
              },
              "totalGrowth": {
                "type": "number"
              },
              "totalFees": {
                "type": "number"
              },
              "feeDrag": {
                "type": "number"
              },
              "netReturnPercent": {
                "type": "number"
              },
              "realReturnPercent": {
                "type": "number"
              },
              "doublingYears": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "ruleOf72Years": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "yearly": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "year",
                    "contributed",
                    "growth",
                    "fees",
                    "balance",
                    "balanceToday",
                    "totalContributed"
                  ],
                  "properties": {
                    "year": {
                      "type": "integer"
                    },
                    "contributed": {
                      "type": "number"
                    },
                    "growth": {
                      "type": "number"
                    },
                    "fees": {
                      "type": "number"
                    },
                    "balance": {
                      "type": "number"
                    },
                    "balanceToday": {
                      "type": "number"
                    },
                    "totalContributed": {
                      "type": "number"
                    }
                  }
                }
              }
            }
          },
          "units": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "assumptions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "title"
              ],
              "properties": {
                "title": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "publisher": {
                  "type": "string"
                },
                "retrievedAt": {
                  "type": "string"
                },
                "note": {
                  "type": "string"
                }
              }
            }
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "presentation": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Display blocks used by the human page (same data)."
          },
          "links": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "human",
              "api",
              "openapi",
              "methodology"
            ],
            "properties": {
              "human": {
                "type": "string",
                "format": "uri"
              },
              "api": {
                "type": "string",
                "format": "uri"
              },
              "openapi": {
                "type": "string",
                "format": "uri"
              },
              "methodology": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      },
      "LoanAmortizationCalculatorInput": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "principal": {
            "title": "Loan amount",
            "type": "number",
            "minimum": 1,
            "maximum": 10000000000,
            "default": 200000
          },
          "currency": {
            "title": "Currency",
            "description": "Shown in results only; no conversion.",
            "type": "string",
            "maxLength": 8,
            "default": "EUR"
          },
          "ratePercent": {
            "title": "Nominal interest rate",
            "description": "The yearly borrowing rate before fees. The rate per period is this ÷ payments per year.",
            "type": "number",
            "minimum": 0,
            "maximum": 100,
            "default": 3.5,
            "x-unit": "% per year"
          },
          "loanType": {
            "title": "Repayment type",
            "type": "string",
            "enum": [
              "annuity",
              "linear",
              "interest-only"
            ],
            "default": "annuity"
          },
          "termYears": {
            "title": "Term",
            "type": "number",
            "minimum": 0.25,
            "maximum": 100,
            "default": 25,
            "x-unit": "years"
          },
          "initialRepaymentPercent": {
            "title": "Initial repayment rate (annuity only)",
            "description": "Optional, common in Germany (anfängliche Tilgung): payment per year = loan × (interest rate + this rate). The term then follows from the payment and the Term field is ignored.",
            "type": "number",
            "minimum": 0.01,
            "maximum": 100,
            "x-unit": "% per year"
          },
          "frequency": {
            "title": "Payments",
            "type": "string",
            "enum": [
              "monthly",
              "quarterly",
              "annually"
            ],
            "default": "monthly"
          },
          "startDate": {
            "title": "Payout date",
            "description": "Optional. The first payment is due one period later; dates are added to the schedule.",
            "type": "string",
            "format": "date"
          },
          "fixedRateYears": {
            "title": "Fixed-rate period",
            "description": "Optional (Zinsbindung): shows the balance still owed when the fixed rate ends.",
            "type": "number",
            "minimum": 0.25,
            "maximum": 100,
            "x-unit": "years"
          },
          "upfrontFees": {
            "title": "Up-front fees",
            "description": "Processing or broker fees paid at payout. They raise the APR, not the nominal rate.",
            "type": "number",
            "minimum": 0,
            "default": 0
          },
          "extraPayments": {
            "title": "One-off extra payments",
            "description": "Paid together with the regular payment number you enter (e.g. 12 = end of the first year for monthly payments).",
            "type": "array",
            "maxItems": 30,
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "period": {
                  "title": "Payment number",
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 1200
                },
                "amount": {
                  "title": "Extra amount",
                  "type": "number",
                  "minimum": 0
                }
              },
              "required": [
                "period",
                "amount"
              ]
            }
          },
          "recurringExtra": {
            "title": "Recurring extra payment",
            "description": "Optional, e.g. an annual special repayment (Sondertilgung).",
            "type": "number",
            "minimum": 0,
            "default": 0
          },
          "recurringEvery": {
            "title": "Recurring extra: every",
            "type": "integer",
            "minimum": 1,
            "maximum": 120,
            "default": 12,
            "x-unit": "payments"
          },
          "recurringFrom": {
            "title": "Recurring extra: first at payment number",
            "type": "integer",
            "minimum": 1,
            "maximum": 1200,
            "default": 12
          },
          "recurringUntil": {
            "title": "Recurring extra: last at payment number",
            "description": "Optional; empty = until the loan is repaid.",
            "type": "integer",
            "minimum": 1,
            "maximum": 1200
          }
        },
        "required": [
          "principal"
        ]
      },
      "LoanAmortizationCalculatorResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schemaVersion",
          "tool",
          "computedAt",
          "inputs",
          "summary",
          "result",
          "units",
          "assumptions",
          "sources",
          "warnings",
          "presentation",
          "links"
        ],
        "properties": {
          "schemaVersion": {
            "type": "string",
            "const": "1.0"
          },
          "tool": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id",
              "name",
              "version"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "version": {
                "type": "string"
              }
            }
          },
          "computedAt": {
            "type": "string",
            "format": "date-time"
          },
          "inputs": {
            "type": "object",
            "description": "Normalised inputs actually used, including applied defaults."
          },
          "summary": {
            "type": "string"
          },
          "result": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "currency",
              "loanType",
              "periodsPerYear",
              "principal",
              "nominalRatePercent",
              "periodicRatePercent",
              "regularPayment",
              "numberOfPayments",
              "termYears",
              "totalInterest",
              "totalExtra",
              "totalPaid",
              "payoffDate",
              "effectiveRatePercent",
              "aprPercent",
              "fixedRate",
              "extrasSavings",
              "schedule"
            ],
            "properties": {
              "currency": {
                "type": "string"
              },
              "loanType": {
                "type": "string",
                "enum": [
                  "annuity",
                  "linear",
                  "interest-only"
                ]
              },
              "periodsPerYear": {
                "type": "integer"
              },
              "principal": {
                "type": "number"
              },
              "nominalRatePercent": {
                "type": "number"
              },
              "periodicRatePercent": {
                "type": "number"
              },
              "regularPayment": {
                "type": "number",
                "description": "Annuity: the constant payment; linear and interest-only: the first payment."
              },
              "numberOfPayments": {
                "type": "integer"
              },
              "termYears": {
                "type": "number"
              },
              "totalInterest": {
                "type": "number"
              },
              "totalExtra": {
                "type": "number"
              },
              "totalPaid": {
                "type": "number"
              },
              "payoffDate": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "effectiveRatePercent": {
                "type": "number",
                "description": "(1 + nominal/m)^m − 1, without fees."
              },
              "aprPercent": {
                "type": [
                  "number",
                  "null"
                ],
                "description": "Annual rate equating the net payout (loan − fees) with all payments (PAngV/CCD equation, standard months)."
              },
              "fixedRate": {
                "type": [
                  "object",
                  "null"
                ],
                "additionalProperties": false,
                "required": [
                  "years",
                  "payments",
                  "balanceAtEnd",
                  "interestPaid",
                  "principalRepaid",
                  "endDate"
                ],
                "properties": {
                  "years": {
                    "type": "number"
                  },
                  "payments": {
                    "type": "integer"
                  },
                  "balanceAtEnd": {
                    "type": "number"
                  },
                  "interestPaid": {
                    "type": "number"
                  },
                  "principalRepaid": {
                    "type": "number"
                  },
                  "endDate": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                }
              },
              "extrasSavings": {
                "type": [
                  "object",
                  "null"
                ],
                "additionalProperties": false,
                "required": [
                  "interestSaved",
                  "paymentsSaved"
                ],
                "properties": {
                  "interestSaved": {
                    "type": "number"
                  },
                  "paymentsSaved": {
                    "type": "integer"
                  }
                }
              },
              "schedule": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "period",
                    "date",
                    "payment",
                    "interest",
                    "principal",
                    "extra",
                    "balance"
                  ],
                  "properties": {
                    "period": {
                      "type": "integer"
                    },
                    "date": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "payment": {
                      "type": "number"
                    },
                    "interest": {
                      "type": "number"
                    },
                    "principal": {
                      "type": "number"
                    },
                    "extra": {
                      "type": "number"
                    },
                    "balance": {
                      "type": "number"
                    }
                  }
                }
              }
            }
          },
          "units": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "assumptions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "title"
              ],
              "properties": {
                "title": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "publisher": {
                  "type": "string"
                },
                "retrievedAt": {
                  "type": "string"
                },
                "note": {
                  "type": "string"
                }
              }
            }
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "presentation": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Display blocks used by the human page (same data)."
          },
          "links": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "human",
              "api",
              "openapi",
              "methodology"
            ],
            "properties": {
              "human": {
                "type": "string",
                "format": "uri"
              },
              "api": {
                "type": "string",
                "format": "uri"
              },
              "openapi": {
                "type": "string",
                "format": "uri"
              },
              "methodology": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      },
      "HearthSowingCalendarInput": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "crops": {
            "title": "Crops",
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "tomato",
                "pepper",
                "eggplant",
                "potato",
                "cucumber",
                "zucchini",
                "squash",
                "melon",
                "sweetcorn",
                "bush-bean",
                "pole-bean",
                "pea",
                "broad-bean",
                "lettuce",
                "spinach",
                "chard",
                "beet",
                "carrot",
                "parsnip",
                "radish",
                "turnip",
                "onion",
                "spring-onion",
                "garlic",
                "leek",
                "cabbage",
                "broccoli",
                "cauliflower",
                "kale",
                "brussels-sprouts",
                "kohlrabi",
                "pak-choi",
                "rocket",
                "celery",
                "fennel",
                "parsley",
                "basil",
                "dill",
                "coriander",
                "chives"
              ]
            },
            "default": [
              "tomato",
              "lettuce",
              "carrot",
              "bush-bean",
              "garlic"
            ]
          },
          "lastFrost": {
            "title": "Last spring frost (MM-DD)",
            "description": "Month and day, for example 04-20. The Frost Dates Finder gives it for Germany and the United States.",
            "type": "string",
            "maxLength": 5,
            "default": "04-20"
          },
          "firstFrost": {
            "title": "First autumn frost (MM-DD)",
            "type": "string",
            "maxLength": 5,
            "default": "10-15"
          },
          "year": {
            "title": "Season (year of the spring frost)",
            "type": "integer",
            "minimum": 2000,
            "maximum": 2100,
            "default": 2027
          }
        },
        "required": [
          "lastFrost",
          "firstFrost"
        ]
      },
      "HearthSowingCalendarResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schemaVersion",
          "tool",
          "computedAt",
          "inputs",
          "summary",
          "result",
          "units",
          "assumptions",
          "sources",
          "warnings",
          "presentation",
          "links"
        ],
        "properties": {
          "schemaVersion": {
            "type": "string",
            "const": "1.0"
          },
          "tool": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id",
              "name",
              "version"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "version": {
                "type": "string"
              }
            }
          },
          "computedAt": {
            "type": "string",
            "format": "date-time"
          },
          "inputs": {
            "type": "object",
            "description": "Normalised inputs actually used, including applied defaults."
          },
          "summary": {
            "type": "string"
          },
          "result": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "year",
              "lastFrost",
              "firstFrost",
              "frostFreeDays",
              "crops",
              "events",
              "tooLong",
              "ics"
            ],
            "properties": {
              "year": {
                "type": "integer"
              },
              "lastFrost": {
                "type": "string"
              },
              "firstFrost": {
                "type": "string"
              },
              "frostFreeDays": {
                "type": "integer"
              },
              "crops": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "crop",
                    "name",
                    "frost",
                    "daysToHarvest",
                    "tasks",
                    "sowings",
                    "lastSowing",
                    "fits",
                    "source"
                  ],
                  "properties": {
                    "crop": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "frost": {
                      "enum": [
                        "tender",
                        "half-hardy",
                        "hardy"
                      ]
                    },
                    "daysToHarvest": {
                      "type": "integer"
                    },
                    "tasks": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "task",
                          "from",
                          "to"
                        ],
                        "properties": {
                          "task": {
                            "enum": [
                              "indoor",
                              "out",
                              "direct",
                              "autumn",
                              "harvest"
                            ]
                          },
                          "from": {
                            "type": "string"
                          },
                          "to": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "sowings": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "lastSowing": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "fits": {
                      "type": "boolean"
                    },
                    "source": {
                      "type": "string"
                    }
                  }
                }
              },
              "events": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "date",
                    "crop",
                    "task",
                    "until"
                  ],
                  "properties": {
                    "date": {
                      "type": "string"
                    },
                    "crop": {
                      "type": "string"
                    },
                    "task": {
                      "type": "string"
                    },
                    "until": {
                      "type": "string"
                    }
                  }
                }
              },
              "tooLong": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "ics": {
                "type": "string"
              }
            }
          },
          "units": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "assumptions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "title"
              ],
              "properties": {
                "title": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "publisher": {
                  "type": "string"
                },
                "retrievedAt": {
                  "type": "string"
                },
                "note": {
                  "type": "string"
                }
              }
            }
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "presentation": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Display blocks used by the human page (same data)."
          },
          "links": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "human",
              "api",
              "openapi",
              "methodology"
            ],
            "properties": {
              "human": {
                "type": "string",
                "format": "uri"
              },
              "api": {
                "type": "string",
                "format": "uri"
              },
              "openapi": {
                "type": "string",
                "format": "uri"
              },
              "methodology": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      },
      "ProoflineMolarMassInput": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "mode": {
            "title": "Calculation",
            "type": "string",
            "enum": [
              "formula",
              "empirical"
            ],
            "default": "formula"
          },
          "formulas": {
            "title": "Formulas (one per line)",
            "description": "Element symbols with counts (H2O), brackets ( ) and [ ] that may nest (K4[Fe(CN)6]), hydrates with · or * or a dot (CuSO4·5H2O), charges at the end (SO4^2-, Fe+3, NH4+), isotopes (^13C, D, T) and state symbols such as (aq), which are ignored. At most 10 lines.",
            "type": "string",
            "maxLength": 2000,
            "default": ""
          },
          "percentages": {
            "title": "Mass percentages",
            "description": "Empirical formula: each element with its mass percentage, separated by commas or lines.",
            "type": "string",
            "maxLength": 1000,
            "default": ""
          },
          "molarMass": {
            "title": "Molar mass of the compound (optional)",
            "description": "Empirical formula: with a measured molar mass the molecular formula is the nearest whole multiple.",
            "type": "number",
            "minimum": 0,
            "x-unit": "g/mol"
          }
        },
        "required": []
      },
      "ProoflineMolarMassResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schemaVersion",
          "tool",
          "computedAt",
          "inputs",
          "summary",
          "result",
          "units",
          "assumptions",
          "sources",
          "warnings",
          "presentation",
          "links"
        ],
        "properties": {
          "schemaVersion": {
            "type": "string",
            "const": "1.0"
          },
          "tool": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id",
              "name",
              "version"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "version": {
                "type": "string"
              }
            }
          },
          "computedAt": {
            "type": "string",
            "format": "date-time"
          },
          "inputs": {
            "type": "object",
            "description": "Normalised inputs actually used, including applied defaults."
          },
          "summary": {
            "type": "string"
          },
          "result": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "mode",
              "formulas",
              "empirical"
            ],
            "properties": {
              "mode": {
                "type": "string",
                "enum": [
                  "formula",
                  "empirical"
                ]
              },
              "formulas": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "formula",
                    "hill",
                    "pretty",
                    "charge",
                    "molarMass",
                    "uncertainty",
                    "atoms",
                    "electronCorrection",
                    "composition",
                    "molarMassRounded",
                    "uncertaintyRounded"
                  ],
                  "properties": {
                    "formula": {
                      "type": "string"
                    },
                    "hill": {
                      "type": "string"
                    },
                    "pretty": {
                      "type": "string"
                    },
                    "charge": {
                      "type": "integer"
                    },
                    "molarMass": {
                      "type": "number",
                      "description": "g/mol"
                    },
                    "uncertainty": {
                      "type": "number",
                      "description": "Combined CIAAW uncertainty, g/mol."
                    },
                    "atoms": {
                      "type": "integer"
                    },
                    "electronCorrection": {
                      "type": "number"
                    },
                    "composition": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "key",
                          "label",
                          "name",
                          "count",
                          "atomicWeight",
                          "uncertainty",
                          "massContribution",
                          "massPercent",
                          "atomPercent"
                        ],
                        "properties": {
                          "key": {
                            "type": "string"
                          },
                          "label": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "count": {
                            "type": "integer"
                          },
                          "atomicWeight": {
                            "type": "number"
                          },
                          "uncertainty": {
                            "type": "number"
                          },
                          "massContribution": {
                            "type": "number"
                          },
                          "massPercent": {
                            "type": "number"
                          },
                          "atomPercent": {
                            "type": "number"
                          }
                        }
                      }
                    },
                    "molarMassRounded": {
                      "type": "string"
                    },
                    "uncertaintyRounded": {
                      "type": "string"
                    }
                  }
                }
              },
              "empirical": {
                "type": [
                  "object",
                  "null"
                ],
                "additionalProperties": false,
                "required": [
                  "empirical",
                  "empiricalMass",
                  "multiplier",
                  "maxDeviation",
                  "molecular",
                  "molecularMass",
                  "factor",
                  "total",
                  "ratios"
                ],
                "properties": {
                  "empirical": {
                    "type": "string"
                  },
                  "empiricalMass": {
                    "type": "number"
                  },
                  "multiplier": {
                    "type": "integer"
                  },
                  "maxDeviation": {
                    "type": "number"
                  },
                  "molecular": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "molecularMass": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "factor": {
                    "type": [
                      "integer",
                      "null"
                    ]
                  },
                  "total": {
                    "type": "number"
                  },
                  "ratios": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "symbol",
                        "percent",
                        "moles",
                        "ratio",
                        "scaled",
                        "count"
                      ],
                      "properties": {
                        "symbol": {
                          "type": "string"
                        },
                        "percent": {
                          "type": "number"
                        },
                        "moles": {
                          "type": "number"
                        },
                        "ratio": {
                          "type": "number"
                        },
                        "scaled": {
                          "type": "number"
                        },
                        "count": {
                          "type": "integer"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "units": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "assumptions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "title"
              ],
              "properties": {
                "title": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "publisher": {
                  "type": "string"
                },
                "retrievedAt": {
                  "type": "string"
                },
                "note": {
                  "type": "string"
                }
              }
            }
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "presentation": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Display blocks used by the human page (same data)."
          },
          "links": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "human",
              "api",
              "openapi",
              "methodology"
            ],
            "properties": {
              "human": {
                "type": "string",
                "format": "uri"
              },
              "api": {
                "type": "string",
                "format": "uri"
              },
              "openapi": {
                "type": "string",
                "format": "uri"
              },
              "methodology": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      },
      "DeckwrightCardsFromMarkdownInput": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "text": {
            "title": "Cards",
            "description": "Markdown: “Q:” and “A:” lines, “term :: definition” (“:::” also makes the reverse card), {{c1::cloze}} gaps, # headings as tags. Or CSV/TSV rows (front, back, tag), an Anki plain-text export, or a slide deck.",
            "type": "string",
            "maxLength": 200000,
            "default": "# Greetings\nhola ::: hello\nbuenos días ::: good morning\ngracias ::: thank you\n\n# Getting around\nQ: How do you ask where the station is?\nA: ¿Dónde está la estación?\n\nla estación :: the station\nel billete :: the ticket\n\n# At the café\nun café con leche :: a coffee with milk\n\nQ: How do you ask for the bill?\nA: la cuenta, por favor\n\nMadrid's main station is {{c1::Atocha}}; the fast train to Barcelona takes about {{c2::two and a half::how long?}} hours.\n"
          },
          "format": {
            "title": "Format",
            "type": "string",
            "enum": [
              "auto",
              "markdown",
              "csv",
              "tsv",
              "anki",
              "deck"
            ],
            "default": "auto"
          },
          "reverse": {
            "title": "Also make reverse cards (answer → question)",
            "type": "boolean",
            "default": false
          },
          "lang": {
            "title": "Card language (BCP 47, e.g. en, es, ja)",
            "description": "Used for answer checks and fonts; empty = English.",
            "type": "string",
            "maxLength": 20,
            "default": ""
          }
        },
        "required": []
      },
      "DeckwrightCardsFromMarkdownResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schemaVersion",
          "tool",
          "computedAt",
          "inputs",
          "summary",
          "result",
          "units",
          "assumptions",
          "sources",
          "warnings",
          "presentation",
          "links"
        ],
        "properties": {
          "schemaVersion": {
            "type": "string",
            "const": "1.0"
          },
          "tool": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id",
              "name",
              "version"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "version": {
                "type": "string"
              }
            }
          },
          "computedAt": {
            "type": "string",
            "format": "date-time"
          },
          "inputs": {
            "type": "object",
            "description": "Normalised inputs actually used, including applied defaults."
          },
          "summary": {
            "type": "string"
          },
          "result": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "format",
              "count",
              "kinds",
              "tags",
              "cards",
              "warnings",
              "skippedLines",
              "markdown",
              "files",
              "openInApp"
            ],
            "properties": {
              "format": {
                "enum": [
                  "markdown",
                  "csv",
                  "tsv",
                  "anki",
                  "deck"
                ]
              },
              "count": {
                "type": "integer"
              },
              "kinds": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "basic",
                  "reverse",
                  "cloze"
                ],
                "properties": {
                  "basic": {
                    "type": "integer"
                  },
                  "reverse": {
                    "type": "integer"
                  },
                  "cloze": {
                    "type": "integer"
                  }
                }
              },
              "tags": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "cards": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "n",
                    "id",
                    "kind",
                    "front",
                    "back",
                    "answer",
                    "tag",
                    "line"
                  ],
                  "properties": {
                    "n": {
                      "type": "integer"
                    },
                    "id": {
                      "type": "string"
                    },
                    "kind": {
                      "enum": [
                        "basic",
                        "reverse",
                        "cloze"
                      ]
                    },
                    "front": {
                      "type": "string"
                    },
                    "back": {
                      "type": "string"
                    },
                    "answer": {
                      "type": "string"
                    },
                    "tag": {
                      "type": "string"
                    },
                    "line": {
                      "type": "integer"
                    }
                  }
                }
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "skippedLines": {
                "type": "integer"
              },
              "markdown": {
                "type": "string"
              },
              "files": {
                "type": [
                  "object",
                  "null"
                ],
                "additionalProperties": false,
                "required": [
                  "csv",
                  "markdown"
                ],
                "properties": {
                  "csv": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "artifactId",
                      "filename",
                      "mime",
                      "bytes",
                      "sha256",
                      "path"
                    ],
                    "properties": {
                      "artifactId": {
                        "type": "string"
                      },
                      "filename": {
                        "type": "string"
                      },
                      "mime": {
                        "type": "string"
                      },
                      "bytes": {
                        "type": "integer"
                      },
                      "sha256": {
                        "type": "string"
                      },
                      "path": {
                        "type": "string",
                        "description": "Download path on the same site (valid for about 2 hours)."
                      }
                    }
                  },
                  "markdown": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "artifactId",
                      "filename",
                      "mime",
                      "bytes",
                      "sha256",
                      "path"
                    ],
                    "properties": {
                      "artifactId": {
                        "type": "string"
                      },
                      "filename": {
                        "type": "string"
                      },
                      "mime": {
                        "type": "string"
                      },
                      "bytes": {
                        "type": "integer"
                      },
                      "sha256": {
                        "type": "string"
                      },
                      "path": {
                        "type": "string",
                        "description": "Download path on the same site (valid for about 2 hours)."
                      }
                    }
                  }
                }
              },
              "openInApp": {
                "type": [
                  "string",
                  "null"
                ]
              }
            }
          },
          "units": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "assumptions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "title"
              ],
              "properties": {
                "title": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "publisher": {
                  "type": "string"
                },
                "retrievedAt": {
                  "type": "string"
                },
                "note": {
                  "type": "string"
                }
              }
            }
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "presentation": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Display blocks used by the human page (same data)."
          },
          "links": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "human",
              "api",
              "openapi",
              "methodology"
            ],
            "properties": {
              "human": {
                "type": "string",
                "format": "uri"
              },
              "api": {
                "type": "string",
                "format": "uri"
              },
              "openapi": {
                "type": "string",
                "format": "uri"
              },
              "methodology": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      },
      "UnitproofInput": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "expression": {
            "title": "Expression",
            "description": "Numbers, units with SI prefixes, ^ powers, * / + − and parentheses; optional \"to\"/\"in\" target. Juxtaposition (e.g. \"2 h\") binds tighter than * and /. Bare C/F mean °C/°F.",
            "type": "string",
            "maxLength": 300
          },
          "significantDigits": {
            "title": "Significant digits (rounded value)",
            "type": "integer",
            "minimum": 1,
            "maximum": 15,
            "default": 6
          }
        },
        "required": [
          "expression"
        ]
      },
      "UnitproofResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schemaVersion",
          "tool",
          "computedAt",
          "inputs",
          "summary",
          "result",
          "units",
          "assumptions",
          "sources",
          "warnings",
          "presentation",
          "links"
        ],
        "properties": {
          "schemaVersion": {
            "type": "string",
            "const": "1.0"
          },
          "tool": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id",
              "name",
              "version"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "version": {
                "type": "string"
              }
            }
          },
          "computedAt": {
            "type": "string",
            "format": "date-time"
          },
          "inputs": {
            "type": "object",
            "description": "Normalised inputs actually used, including applied defaults."
          },
          "summary": {
            "type": "string"
          },
          "result": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "expression",
              "value",
              "valueRounded",
              "significantDigits",
              "unit",
              "target",
              "valueSI",
              "unitSI",
              "dimension",
              "quantity",
              "dimensionCheck",
              "temperature",
              "alternatives",
              "derivation",
              "unitsUsed"
            ],
            "properties": {
              "expression": {
                "type": "string"
              },
              "value": {
                "type": "number",
                "description": "Unrounded IEEE-754 double result in the output unit."
              },
              "valueRounded": {
                "type": "number"
              },
              "significantDigits": {
                "type": "integer",
                "minimum": 1,
                "maximum": 15
              },
              "unit": {
                "type": "string"
              },
              "target": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "valueSI": {
                "type": "number",
                "description": "Value in coherent SI units (kelvin for temperatures)."
              },
              "unitSI": {
                "type": "string"
              },
              "dimension": {
                "type": "string"
              },
              "quantity": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "dimensionCheck": {
                "type": "string",
                "enum": [
                  "ok"
                ]
              },
              "temperature": {
                "type": "string",
                "enum": [
                  "absolute",
                  "interval",
                  "none"
                ]
              },
              "alternatives": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "unit",
                    "value"
                  ],
                  "properties": {
                    "unit": {
                      "type": "string"
                    },
                    "value": {
                      "type": "number"
                    }
                  }
                }
              },
              "derivation": {
                "type": "array",
                "minItems": 2,
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "kind",
                    "label",
                    "value",
                    "unit",
                    "dimension",
                    "children",
                    "note"
                  ],
                  "properties": {
                    "id": {
                      "type": "integer",
                      "minimum": 0
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "literal",
                        "unit",
                        "operation",
                        "conversion",
                        "result"
                      ]
                    },
                    "label": {
                      "type": "string"
                    },
                    "value": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "unit": {
                      "type": "string"
                    },
                    "dimension": {
                      "type": "string"
                    },
                    "children": {
                      "type": "array",
                      "items": {
                        "type": "integer",
                        "minimum": 0
                      }
                    },
                    "note": {
                      "type": "string"
                    }
                  }
                }
              },
              "unitsUsed": {
                "type": "array",
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "symbol",
                    "name",
                    "definition",
                    "exact",
                    "source"
                  ],
                  "properties": {
                    "symbol": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "definition": {
                      "type": "string"
                    },
                    "exact": {
                      "type": "boolean"
                    },
                    "source": {
                      "type": "string",
                      "enum": [
                        "SI",
                        "NIST811",
                        "definition"
                      ]
                    }
                  }
                }
              }
            }
          },
          "units": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "assumptions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "title"
              ],
              "properties": {
                "title": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "publisher": {
                  "type": "string"
                },
                "retrievedAt": {
                  "type": "string"
                },
                "note": {
                  "type": "string"
                }
              }
            }
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "presentation": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Display blocks used by the human page (same data)."
          },
          "links": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "human",
              "api",
              "openapi",
              "methodology"
            ],
            "properties": {
              "human": {
                "type": "string",
                "format": "uri"
              },
              "api": {
                "type": "string",
                "format": "uri"
              },
              "openapi": {
                "type": "string",
                "format": "uri"
              },
              "methodology": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      }
    }
  }
}