{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sourceacts-com/json-schema/sourceacts-com-tool-response-schema.json",
  "title": "ToolResponse",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sourceacts-com-openapi.json#/components/schemas/ToolResponse",
  "properties": {
    "source": {
      "type": "string",
      "title": "Source"
    },
    "attribution": {
      "type": "string",
      "title": "Attribution"
    },
    "count": {
      "type": "integer",
      "title": "Count"
    },
    "items": {
      "items": {
        "$ref": "#/$defs/Instrument"
      },
      "type": "array",
      "title": "Items"
    },
    "notes": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Notes"
    }
  },
  "type": "object",
  "required": [
    "source",
    "attribution",
    "count",
    "items"
  ],
  "$defs": {
    "Instrument": {
      "properties": {
        "source": {
          "type": "string",
          "title": "Source"
        },
        "identifier": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Identifier"
        },
        "title": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Title"
        },
        "date": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Date"
        },
        "eli": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Eli"
        },
        "url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Url"
        },
        "document_type": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Document Type"
        },
        "extra": {
          "additionalProperties": true,
          "type": "object",
          "title": "Extra"
        },
        "published_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Published At",
          "description": "ISO date YYYY-MM-DD when known."
        },
        "official_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Official Url",
          "description": "Official publisher locator."
        },
        "retrieved_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Retrieved At"
        },
        "licence": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Licence"
        },
        "tier": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Tier",
          "description": "official_feed, portal_listing, or experimental."
        },
        "content_hash": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Content Hash",
          "description": "SHA-256 of source, identifier, title, published_at, official_url, and document_type."
        }
      },
      "type": "object",
      "required": [
        "source"
      ],
      "title": "Instrument"
    }
  }
}