{
  "openapi": "3.1.0",
  "info": {
    "title": "Momentix calculator API",
    "version": "1.0.0",
    "description": "Read-only JSON endpoints that use the same formulas as the Momentix calculators. No authentication. Estimates for planning and education, not financial, tax, legal or medical advice.",
    "contact": {
      "url": "https://www.momentix.online/contact"
    }
  },
  "servers": [
    {
      "url": "https://www.momentix.online"
    }
  ],
  "paths": {
    "/api/calc/age-calculator": {
      "get": {
        "operationId": "ageCalculator",
        "summary": "Exact age in years, months and days on a chosen date, with total days lived and the next birthday.",
        "tags": [
          "calculators"
        ],
        "externalDocs": {
          "url": "https://www.momentix.online/age-calculator",
          "description": "The calculator page with the formula and a worked example"
        },
        "parameters": [
          {
            "name": "dob",
            "in": "query",
            "required": true,
            "description": "Date of birth (YYYY-MM-DD).",
            "example": "1990-05-15",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "on",
            "in": "query",
            "required": false,
            "description": "Date to measure the age on (YYYY-MM-DD). Defaults to today (UTC).",
            "example": "2026-10-03",
            "schema": {
              "type": "string",
              "format": "date"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Calculation result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "tool": {
                      "type": "string"
                    },
                    "page": {
                      "type": "string",
                      "format": "uri"
                    },
                    "inputs": {
                      "type": "object"
                    },
                    "result": {
                      "type": "object"
                    },
                    "disclaimer": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameter",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "parameter": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/calc/date-difference-calculator": {
      "get": {
        "operationId": "dateDifferenceCalculator",
        "summary": "Days, weeks, months and years between two dates.",
        "tags": [
          "calculators"
        ],
        "externalDocs": {
          "url": "https://www.momentix.online/date-difference-calculator",
          "description": "The calculator page with the formula and a worked example"
        },
        "parameters": [
          {
            "name": "start",
            "in": "query",
            "required": true,
            "description": "First date (YYYY-MM-DD).",
            "example": "2026-01-15",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "end",
            "in": "query",
            "required": true,
            "description": "Second date (YYYY-MM-DD). May be earlier than start.",
            "example": "2026-10-03",
            "schema": {
              "type": "string",
              "format": "date"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Calculation result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "tool": {
                      "type": "string"
                    },
                    "page": {
                      "type": "string",
                      "format": "uri"
                    },
                    "inputs": {
                      "type": "object"
                    },
                    "result": {
                      "type": "object"
                    },
                    "disclaimer": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameter",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "parameter": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/calc/business-days-calculator": {
      "get": {
        "operationId": "businessDaysCalculator",
        "summary": "Count business days between two dates, or add business days to a start date (Monday-to-Friday week, no holidays).",
        "tags": [
          "calculators"
        ],
        "externalDocs": {
          "url": "https://www.momentix.online/business-days-calculator",
          "description": "The calculator page with the formula and a worked example"
        },
        "parameters": [
          {
            "name": "start",
            "in": "query",
            "required": true,
            "description": "Start date (YYYY-MM-DD).",
            "example": "2026-10-05",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "end",
            "in": "query",
            "required": false,
            "description": "End date. Give either end (count) or count (add), not both.",
            "example": "2026-10-20",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "count",
            "in": "query",
            "required": false,
            "description": "Number of business days to add to start (negative to go back).",
            "example": 11,
            "schema": {
              "type": "integer",
              "minimum": -10000,
              "maximum": 10000
            }
          },
          {
            "name": "includeEnd",
            "in": "query",
            "required": false,
            "description": "Count the end date as a day (only when using end).",
            "example": false,
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Calculation result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "tool": {
                      "type": "string"
                    },
                    "page": {
                      "type": "string",
                      "format": "uri"
                    },
                    "inputs": {
                      "type": "object"
                    },
                    "result": {
                      "type": "object"
                    },
                    "disclaimer": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameter",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "parameter": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/calc/loan-repayment-calculator": {
      "get": {
        "operationId": "loanRepaymentCalculator",
        "summary": "Monthly payment and total interest on a fixed-rate loan, with the effect of extra monthly payments or a lump sum.",
        "tags": [
          "calculators"
        ],
        "externalDocs": {
          "url": "https://www.momentix.online/loan-repayment-calculator",
          "description": "The calculator page with the formula and a worked example"
        },
        "parameters": [
          {
            "name": "amount",
            "in": "query",
            "required": true,
            "description": "Amount borrowed.",
            "example": 10000,
            "schema": {
              "type": "number",
              "minimum": 0.01
            }
          },
          {
            "name": "rate",
            "in": "query",
            "required": true,
            "description": "Annual interest rate in percent.",
            "example": 7,
            "schema": {
              "type": "number",
              "minimum": 0,
              "maximum": 100
            }
          },
          {
            "name": "term",
            "in": "query",
            "required": true,
            "description": "Loan term (see unit).",
            "example": 5,
            "schema": {
              "type": "number",
              "minimum": 0.01
            }
          },
          {
            "name": "unit",
            "in": "query",
            "required": false,
            "description": "Unit of term.",
            "example": "years",
            "schema": {
              "type": "string",
              "enum": [
                "years",
                "months"
              ],
              "default": "years"
            }
          },
          {
            "name": "extra",
            "in": "query",
            "required": false,
            "description": "Extra amount paid every month.",
            "example": 100,
            "schema": {
              "type": "number",
              "minimum": 0,
              "default": 0
            }
          },
          {
            "name": "lump",
            "in": "query",
            "required": false,
            "description": "One-off lump sum paid in month 1.",
            "example": 0,
            "schema": {
              "type": "number",
              "minimum": 0,
              "default": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Calculation result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "tool": {
                      "type": "string"
                    },
                    "page": {
                      "type": "string",
                      "format": "uri"
                    },
                    "inputs": {
                      "type": "object"
                    },
                    "result": {
                      "type": "object"
                    },
                    "disclaimer": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameter",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "parameter": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/calc/compound-interest-calculator": {
      "get": {
        "operationId": "compoundInterestCalculator",
        "summary": "Future value of savings with monthly deposits and compound interest.",
        "tags": [
          "calculators"
        ],
        "externalDocs": {
          "url": "https://www.momentix.online/compound-interest-calculator",
          "description": "The calculator page with the formula and a worked example"
        },
        "parameters": [
          {
            "name": "principal",
            "in": "query",
            "required": false,
            "description": "Starting balance.",
            "example": 10000,
            "schema": {
              "type": "number",
              "minimum": 0,
              "default": 0
            }
          },
          {
            "name": "monthly",
            "in": "query",
            "required": false,
            "description": "Deposit added each month.",
            "example": 200,
            "schema": {
              "type": "number",
              "minimum": 0,
              "default": 0
            }
          },
          {
            "name": "rate",
            "in": "query",
            "required": true,
            "description": "Expected annual return in percent.",
            "example": 7,
            "schema": {
              "type": "number",
              "minimum": 0,
              "maximum": 100
            }
          },
          {
            "name": "years",
            "in": "query",
            "required": true,
            "description": "Number of years.",
            "example": 20,
            "schema": {
              "type": "number",
              "minimum": 0.1,
              "maximum": 100
            }
          },
          {
            "name": "freq",
            "in": "query",
            "required": false,
            "description": "Compounding periods per year.",
            "example": 12,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 365,
              "default": 12
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Calculation result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "tool": {
                      "type": "string"
                    },
                    "page": {
                      "type": "string",
                      "format": "uri"
                    },
                    "inputs": {
                      "type": "object"
                    },
                    "result": {
                      "type": "object"
                    },
                    "disclaimer": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameter",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "parameter": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/calc/vat-calculator": {
      "get": {
        "operationId": "vatCalculator",
        "summary": "Add VAT to a net price or remove VAT from a gross price.",
        "tags": [
          "calculators"
        ],
        "externalDocs": {
          "url": "https://www.momentix.online/vat-calculator",
          "description": "The calculator page with the formula and a worked example"
        },
        "parameters": [
          {
            "name": "amount",
            "in": "query",
            "required": true,
            "description": "The price.",
            "example": 120,
            "schema": {
              "type": "number",
              "minimum": 0
            }
          },
          {
            "name": "rate",
            "in": "query",
            "required": false,
            "description": "VAT rate in percent (UK: 20, 5 or 0).",
            "example": 20,
            "schema": {
              "type": "number",
              "minimum": 0,
              "maximum": 100,
              "default": 20
            }
          },
          {
            "name": "mode",
            "in": "query",
            "required": false,
            "description": "add: amount is net; remove: amount already includes VAT.",
            "example": "remove",
            "schema": {
              "type": "string",
              "enum": [
                "add",
                "remove"
              ],
              "default": "add"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Calculation result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "tool": {
                      "type": "string"
                    },
                    "page": {
                      "type": "string",
                      "format": "uri"
                    },
                    "inputs": {
                      "type": "object"
                    },
                    "result": {
                      "type": "object"
                    },
                    "disclaimer": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameter",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "parameter": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/calc/uk-take-home-pay-calculator": {
      "get": {
        "operationId": "ukTakeHomePayCalculator",
        "summary": "UK take-home pay after income tax, National Insurance, pension and student loan (England, Wales and Northern Ireland rates for the tax year shown by the page).",
        "tags": [
          "calculators"
        ],
        "externalDocs": {
          "url": "https://www.momentix.online/uk-take-home-pay-calculator",
          "description": "The calculator page with the formula and a worked example"
        },
        "parameters": [
          {
            "name": "gross",
            "in": "query",
            "required": true,
            "description": "Gross yearly salary in GBP.",
            "example": 30000,
            "schema": {
              "type": "number",
              "minimum": 0
            }
          },
          {
            "name": "pension",
            "in": "query",
            "required": false,
            "description": "Pension contribution as a percentage of gross salary.",
            "example": 0,
            "schema": {
              "type": "number",
              "minimum": 0,
              "maximum": 100,
              "default": 0
            }
          },
          {
            "name": "plan",
            "in": "query",
            "required": false,
            "description": "Student loan plan.",
            "example": "none",
            "schema": {
              "type": "string",
              "enum": [
                "none",
                "plan1",
                "plan2",
                "plan4",
                "plan5"
              ],
              "default": "none"
            }
          },
          {
            "name": "postgraduate",
            "in": "query",
            "required": false,
            "description": "Has a postgraduate loan.",
            "example": false,
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Calculation result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "tool": {
                      "type": "string"
                    },
                    "page": {
                      "type": "string",
                      "format": "uri"
                    },
                    "inputs": {
                      "type": "object"
                    },
                    "result": {
                      "type": "object"
                    },
                    "disclaimer": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameter",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "parameter": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/calc/mortgage-calculator": {
      "get": {
        "operationId": "mortgageCalculator",
        "summary": "Monthly repayment, total interest and loan-to-value for a repayment mortgage.",
        "tags": [
          "calculators"
        ],
        "externalDocs": {
          "url": "https://www.momentix.online/mortgage-calculator",
          "description": "The calculator page with the formula and a worked example"
        },
        "parameters": [
          {
            "name": "price",
            "in": "query",
            "required": true,
            "description": "Property price.",
            "example": 300000,
            "schema": {
              "type": "number",
              "minimum": 1
            }
          },
          {
            "name": "deposit",
            "in": "query",
            "required": false,
            "description": "Deposit paid up front.",
            "example": 50000,
            "schema": {
              "type": "number",
              "minimum": 0,
              "default": 0
            }
          },
          {
            "name": "rate",
            "in": "query",
            "required": true,
            "description": "Annual interest rate in percent.",
            "example": 4.5,
            "schema": {
              "type": "number",
              "minimum": 0,
              "maximum": 100
            }
          },
          {
            "name": "years",
            "in": "query",
            "required": false,
            "description": "Mortgage term in years.",
            "example": 25,
            "schema": {
              "type": "number",
              "minimum": 1,
              "maximum": 100,
              "default": 25
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Calculation result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "tool": {
                      "type": "string"
                    },
                    "page": {
                      "type": "string",
                      "format": "uri"
                    },
                    "inputs": {
                      "type": "object"
                    },
                    "result": {
                      "type": "object"
                    },
                    "disclaimer": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameter",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "parameter": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/calc/hourly-to-salary-calculator": {
      "get": {
        "operationId": "hourlyToSalaryCalculator",
        "summary": "Convert an hourly rate to a salary, or a salary to an hourly rate.",
        "tags": [
          "calculators"
        ],
        "externalDocs": {
          "url": "https://www.momentix.online/hourly-to-salary-calculator",
          "description": "The calculator page with the formula and a worked example"
        },
        "parameters": [
          {
            "name": "amount",
            "in": "query",
            "required": true,
            "description": "The hourly rate, or the yearly salary when mode=salary.",
            "example": 20,
            "schema": {
              "type": "number",
              "minimum": 0
            }
          },
          {
            "name": "mode",
            "in": "query",
            "required": false,
            "description": "What amount is.",
            "example": "hourly",
            "schema": {
              "type": "string",
              "enum": [
                "hourly",
                "salary"
              ],
              "default": "hourly"
            }
          },
          {
            "name": "hours",
            "in": "query",
            "required": false,
            "description": "Hours worked per week.",
            "example": 37.5,
            "schema": {
              "type": "number",
              "minimum": 0.5,
              "maximum": 100,
              "default": 40
            }
          },
          {
            "name": "weeks",
            "in": "query",
            "required": false,
            "description": "Paid weeks per year.",
            "example": 52,
            "schema": {
              "type": "number",
              "minimum": 1,
              "maximum": 52,
              "default": 52
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Calculation result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "tool": {
                      "type": "string"
                    },
                    "page": {
                      "type": "string",
                      "format": "uri"
                    },
                    "inputs": {
                      "type": "object"
                    },
                    "result": {
                      "type": "object"
                    },
                    "disclaimer": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameter",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "parameter": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/calc/percentage-change-calculator": {
      "get": {
        "operationId": "percentageChangeCalculator",
        "summary": "Percentage increase or decrease from an old value to a new value.",
        "tags": [
          "calculators"
        ],
        "externalDocs": {
          "url": "https://www.momentix.online/percentage-change-calculator",
          "description": "The calculator page with the formula and a worked example"
        },
        "parameters": [
          {
            "name": "a",
            "in": "query",
            "required": true,
            "description": "Old (starting) value. Must not be zero.",
            "example": 40,
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "b",
            "in": "query",
            "required": true,
            "description": "New (final) value.",
            "example": 50,
            "schema": {
              "type": "number"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Calculation result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "tool": {
                      "type": "string"
                    },
                    "page": {
                      "type": "string",
                      "format": "uri"
                    },
                    "inputs": {
                      "type": "object"
                    },
                    "result": {
                      "type": "object"
                    },
                    "disclaimer": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameter",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "parameter": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/calc/tip-and-bill-split-calculator": {
      "get": {
        "operationId": "tipAndBillSplitCalculator",
        "summary": "Tip, total and each person's share of a bill.",
        "tags": [
          "calculators"
        ],
        "externalDocs": {
          "url": "https://www.momentix.online/tip-and-bill-split-calculator",
          "description": "The calculator page with the formula and a worked example"
        },
        "parameters": [
          {
            "name": "bill",
            "in": "query",
            "required": true,
            "description": "Bill before tip.",
            "example": 80,
            "schema": {
              "type": "number",
              "minimum": 0
            }
          },
          {
            "name": "tip",
            "in": "query",
            "required": false,
            "description": "Tip percentage.",
            "example": 18,
            "schema": {
              "type": "number",
              "minimum": 0,
              "maximum": 100,
              "default": 18
            }
          },
          {
            "name": "people",
            "in": "query",
            "required": false,
            "description": "Number of people sharing.",
            "example": 4,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 1000,
              "default": 2
            }
          },
          {
            "name": "roundUp",
            "in": "query",
            "required": false,
            "description": "Round each share up to a whole unit.",
            "example": false,
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Calculation result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "tool": {
                      "type": "string"
                    },
                    "page": {
                      "type": "string",
                      "format": "uri"
                    },
                    "inputs": {
                      "type": "object"
                    },
                    "result": {
                      "type": "object"
                    },
                    "disclaimer": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameter",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "parameter": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/calc/bmi-calculator": {
      "get": {
        "operationId": "bmiCalculator",
        "summary": "Adult body mass index from metric height and weight, with the healthy weight range.",
        "tags": [
          "calculators"
        ],
        "externalDocs": {
          "url": "https://www.momentix.online/bmi-calculator",
          "description": "The calculator page with the formula and a worked example"
        },
        "parameters": [
          {
            "name": "kg",
            "in": "query",
            "required": true,
            "description": "Weight in kilograms.",
            "example": 70,
            "schema": {
              "type": "number",
              "minimum": 1,
              "maximum": 700
            }
          },
          {
            "name": "cm",
            "in": "query",
            "required": true,
            "description": "Height in centimetres.",
            "example": 170,
            "schema": {
              "type": "number",
              "minimum": 50,
              "maximum": 275
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Calculation result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "tool": {
                      "type": "string"
                    },
                    "page": {
                      "type": "string",
                      "format": "uri"
                    },
                    "inputs": {
                      "type": "object"
                    },
                    "result": {
                      "type": "object"
                    },
                    "disclaimer": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid parameter",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "parameter": {
                          "type": "string"
                        },
                        "message": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
