{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/0sand1s-co-uk/json-schema/0sand1s-co-uk-tool-response-schema.json",
  "title": "ToolResponse",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/0sand1s-co-uk-openapi.json#/components/schemas/ToolResponse",
  "type": "object",
  "properties": {
    "tool": {
      "type": "string"
    },
    "result": {
      "type": "object",
      "description": "The answer. Amounts are { pence, pounds } objects; dates are YYYY-MM-DD."
    },
    "summary": {
      "type": "string",
      "description": "The answer in one line"
    },
    "sources": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          }
        }
      }
    },
    "see_also": {
      "type": "string",
      "format": "uri",
      "description": "The page on 0sand1s.co.uk that does the same sum or explains the rule"
    }
  },
  "required": [
    "tool",
    "result",
    "summary",
    "sources",
    "see_also"
  ]
}