{
  "notice": "bxzxxr MCP archive: a record of what public MCP servers declared when we listed them (we never call their tools). It is data, not a rating: nothing here says a server is safe, secure, verified or trustworthy, and a server can change after we looked. Secrets we detected are redacted; redacted tool lists are withheld and only their hash is shown.",
  "infrastructure": {
    "host": "haulierscope.co.uk",
    "site": "haulierscope.co.uk",
    "addresses": [
      {
        "address": "77.42.88.130",
        "endpoints": 1,
        "shared_infrastructure": false,
        "network": {
          "asn": 24940,
          "name": "HETZNER-AS - Hetzner Online GmbH",
          "prefix": "77.42.0.0/17",
          "country": "DE"
        }
      }
    ],
    "addresses_recorded": true,
    "address_history": [
      {
        "addresses": [
          "77.42.88.130"
        ],
        "first_seen": "2026-11-21T20:10:02.535Z",
        "last_seen": "2026-11-23T23:12:02.100Z",
        "checks": 3
      }
    ],
    "hosting": [],
    "software": [],
    "server_info": {
      "name": "haulierscope",
      "version": "1.0.0",
      "protocol_version": "2025-06-18"
    },
    "headers": {
      "access-control-allow-origin": "*"
    },
    "auth": null
  },
  "related": {
    "same_address": {
      "total": 0,
      "sample": []
    },
    "same_site": {
      "total": 0,
      "sample": []
    },
    "same_tool_list": {
      "total": 0,
      "sample": []
    },
    "same_publisher": {
      "publisher": "uk.co.haulierscope",
      "total": 0,
      "sample": []
    },
    "same_repository": null,
    "note": "Shared addresses on big platforms (Cloudflare, Vercel and the like) put unrelated servers together; those are marked shared_infrastructure. A match is a pivot, not a link between operators."
  },
  "endpoint": {
    "id": "47294",
    "server_name": "uk.co.haulierscope/operator-licences",
    "url": "https://haulierscope.co.uk/mcp",
    "host": "haulierscope.co.uk",
    "transport": "streamable-http",
    "last_checked_at": "2026-11-23T23:12:02.100Z",
    "last_state": "listed",
    "last_detail": null,
    "consecutive_failures": 0,
    "current_sha": "b1359653567f734cb206d8433dce05c7b738c7e0920d80bd4175162b26d352b2",
    "first_listed_at": "2026-11-21T20:10:02.535Z",
    "created_at": "2026-11-21T13:30:12.991Z",
    "resolved_addresses": [
      "77.42.88.130"
    ]
  },
  "server": {
    "name": "uk.co.haulierscope/operator-licences",
    "title": "HaulierScope",
    "description": "Check UK goods and PSV operator licences: status, vehicles, changes, inquiries and insolvency.",
    "version": "1.0.0",
    "registry_status": "active",
    "repository_url": null,
    "website_url": "https://haulierscope.co.uk/developers",
    "published_at": "2026-10-12T21:21:58.875Z",
    "updated_at": "2026-10-12T21:21:58.875Z",
    "first_seen": "2026-11-21T13:30:12.288Z"
  },
  "other_endpoints": [],
  "intel": {
    "capabilities": [],
    "evm_addresses": [],
    "chains": [],
    "tokens": [],
    "computed_at": "2026-11-22T16:08:10.937Z"
  },
  "operator": {
    "key": "haulierscope.co.uk",
    "name": "haulierscope.co.uk",
    "platform": false,
    "marketplace": false
  },
  "needs_sign_in": false,
  "reachability": {
    "window_days": 30,
    "checks": 3,
    "answered": 3,
    "answered_percent": 100,
    "avg_listing_latency_ms": 1294,
    "first_check_in_window": "2026-11-21T20:10:02.535Z",
    "consecutive_failures_now": 0,
    "days": [
      {
        "day": "2026-11-21",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      },
      {
        "day": "2026-11-22",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      },
      {
        "day": "2026-11-23",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      }
    ]
  },
  "tool_list": {
    "sha256": "b1359653567f734cb206d8433dce05c7b738c7e0920d80bd4175162b26d352b2",
    "tools": 15,
    "resources": 0,
    "prompts": 0,
    "first_seen": "2026-11-21T20:10:03.678Z",
    "tool_names": [
      "search_operators",
      "get_licence",
      "get_company",
      "area_stats",
      "recent_changes",
      "upcoming_public_inquiries",
      "insolvency_watch",
      "filing_watch",
      "new_licences",
      "licences_ended",
      "tc_decisions",
      "biggest_operators",
      "data_status",
      "search",
      "fetch"
    ],
    "declared": {
      "tools": [
        {
          "name": "search_operators",
          "title": "Search operator licences",
          "description": "Find GB goods vehicle and PSV operators by company name, operator licence number (e.g. OB1234567) or Companies House number. Returns up to `limit` matches with status, licence type, traffic area, town and the canonical page URL. Exact licence and company numbers rank first; names match companies and organisations only (sole traders and partnerships are found only by exact licence number and are never named). Optional filters narrow by traffic area, vehicle category, status, licence type or presence in the latest DVSA file.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "query"
            ],
            "properties": {
              "limit": {
                "type": "integer",
                "default": 10,
                "maximum": 50,
                "minimum": 1,
                "description": "Maximum results (1–50)"
              },
              "query": {
                "type": "string",
                "maxLength": 100,
                "minLength": 1,
                "description": "Company name, licence number (two letters + seven digits) or company number"
              },
              "filters": {
                "type": "object",
                "properties": {
                  "area": {
                    "type": "string",
                    "maxLength": 60,
                    "minLength": 1,
                    "description": "Traffic area: slug (e.g. 'scotland', 'north-west-of-england'), letter (B, C, D, F, G, H, K, M) or name"
                  },
                  "status": {
                    "enum": [
                      "valid",
                      "curtailed",
                      "suspended",
                      "unmapped"
                    ],
                    "type": "string"
                  },
                  "category": {
                    "enum": [
                      "goods",
                      "psv"
                    ],
                    "type": "string",
                    "description": "goods = HGV operators; psv = bus and coach operators"
                  },
                  "licence_type": {
                    "enum": [
                      "standard_international",
                      "standard_national",
                      "restricted",
                      "special_restricted"
                    ],
                    "type": "string"
                  },
                  "in_current_file": {
                    "type": "boolean",
                    "description": "true = only licences in the latest DVSA file"
                  }
                }
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "source",
              "source_url",
              "licence",
              "attribution",
              "file_date",
              "canonical_url",
              "markdown_url",
              "retrieved_at",
              "data"
            ],
            "properties": {
              "data": {
                "type": "object",
                "required": [
                  "query",
                  "status",
                  "filters",
                  "results"
                ],
                "properties": {
                  "query": {
                    "type": "string"
                  },
                  "status": {
                    "enum": [
                      "results",
                      "no_match",
                      "too_short",
                      "unsupported_coverage",
                      "source_unavailable"
                    ],
                    "type": "string",
                    "description": "no_match never means 'no licence' or 'unlicensed': the name may be spelt differently. unsupported_coverage = not a GB licence (e.g. Northern Ireland)."
                  },
                  "filters": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {
                      "type": "string"
                    }
                  },
                  "results": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "match",
                        "licence_number",
                        "name",
                        "holder_type",
                        "company_number",
                        "canonical_url",
                        "status",
                        "status_label",
                        "category",
                        "licence_type",
                        "traffic_area_code",
                        "traffic_area",
                        "town",
                        "licence_count",
                        "licences_in_current_file",
                        "in_current_file",
                        "withheld"
                      ],
                      "properties": {
                        "name": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Operator name; null for sole traders and partnerships and withheld names"
                        },
                        "town": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "match": {
                          "enum": [
                            "licence",
                            "company_number",
                            "name"
                          ],
                          "type": "string",
                          "description": "How the hit matched: exact licence number, exact company number, or company name"
                        },
                        "status": {
                          "anyOf": [
                            {
                              "enum": [
                                "valid",
                                "curtailed",
                                "suspended",
                                "unmapped"
                              ],
                              "type": "string",
                              "description": "Licence status in the DVSA file. 'unmapped' = a status code we have not mapped yet; never treat it as valid."
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "category": {
                          "anyOf": [
                            {
                              "enum": [
                                "goods",
                                "psv"
                              ],
                              "type": "string",
                              "description": "goods = goods vehicles (HGV); psv = buses and coaches"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "withheld": {
                          "type": "boolean"
                        },
                        "holder_type": {
                          "enum": [
                            "company",
                            "other",
                            "sole_trader_or_partnership"
                          ],
                          "type": "string",
                          "description": "company = limited company or LLP; other = public body, charity or similar; sole_trader_or_partnership = an individual (name never published here)"
                        },
                        "licence_type": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "status_label": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "traffic_area": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "canonical_url": {
                          "type": "string"
                        },
                        "licence_count": {
                          "type": "number"
                        },
                        "company_number": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "licence_number": {
                          "type": "string",
                          "description": "Licence matched, or the operator's largest licence for name matches"
                        },
                        "in_current_file": {
                          "type": "boolean"
                        },
                        "traffic_area_code": {
                          "type": "string"
                        },
                        "licences_in_current_file": {
                          "type": "number"
                        }
                      },
                      "additionalProperties": false
                    }
                  }
                },
                "additionalProperties": false
              },
              "source": {
                "type": "string",
                "description": "Data source(s) the result is built from"
              },
              "licence": {
                "type": "string",
                "description": "Licence of the source data"
              },
              "file_date": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Date of the DVSA operator licence file the data describes (null before the first import)"
              },
              "source_url": {
                "type": "string",
                "description": "Where the primary source dataset is published"
              },
              "attribution": {
                "type": "string",
                "description": "Attribution text to show with the data"
              },
              "markdown_url": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Markdown version of the canonical page"
              },
              "retrieved_at": {
                "type": "string",
                "description": "When this response was generated (ISO timestamp)"
              },
              "canonical_url": {
                "type": "string",
                "description": "The human-readable HaulierScope page for this result"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Search operator licences",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_licence",
          "title": "Get an operator licence",
          "description": "Full record of one GB operator licence by its number: holder (company name and number; never a sole trader's or partner's name), licence type, status, vehicles and trailers authorised, continuation date, operating centres, Companies House status, DVSA earned recognition, upcoming public inquiries, Traffic Commissioner decisions, Gazette insolvency notices and the change history between DVSA files. Licences no longer in the latest file are returned with in_current_file: false.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "licence_number"
            ],
            "properties": {
              "licence_number": {
                "type": "string",
                "maxLength": 12,
                "minLength": 9,
                "description": "Operator licence number, e.g. OB1234567 (O = goods, P = PSV; second letter = traffic area)"
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "source",
              "source_url",
              "licence",
              "attribution",
              "file_date",
              "canonical_url",
              "markdown_url",
              "retrieved_at",
              "data"
            ],
            "properties": {
              "data": {
                "type": "object",
                "required": [
                  "licence_number",
                  "withheld",
                  "category",
                  "licence_type",
                  "status",
                  "status_label",
                  "in_current_file",
                  "not_in_file_since",
                  "first_seen_file_date",
                  "last_seen_file_date",
                  "traffic_area",
                  "vehicles_authorised",
                  "trailers_authorised",
                  "vehicles_specified",
                  "continuation_date",
                  "holder",
                  "operating_centre_count",
                  "operating_centres",
                  "operating_centres_truncated",
                  "earned_recognition",
                  "companies_house",
                  "upcoming_public_inquiries",
                  "traffic_commissioner_decisions",
                  "gazette_notices",
                  "history",
                  "note"
                ],
                "properties": {
                  "note": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "holder": {
                    "anyOf": [
                      {
                        "type": "object",
                        "required": [
                          "type",
                          "name",
                          "company_number",
                          "operator_type",
                          "company_url"
                        ],
                        "properties": {
                          "name": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Operator name; null for sole traders and partnerships and for withheld names"
                          },
                          "type": {
                            "enum": [
                              "company",
                              "other",
                              "sole_trader_or_partnership"
                            ],
                            "type": "string",
                            "description": "company = limited company or LLP; other = public body, charity or similar; sole_trader_or_partnership = an individual (name never published here)"
                          },
                          "company_url": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "HaulierScope page listing all licences of this company"
                          },
                          "operator_type": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "company_number": {
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "status": {
                    "anyOf": [
                      {
                        "enum": [
                          "valid",
                          "curtailed",
                          "suspended",
                          "unmapped"
                        ],
                        "type": "string",
                        "description": "Licence status in the DVSA file. 'unmapped' = a status code we have not mapped yet; never treat it as valid."
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "history": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "file_date",
                        "event_type",
                        "description",
                        "before",
                        "after"
                      ],
                      "properties": {
                        "after": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "before": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "file_date": {
                          "type": "string",
                          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                        },
                        "event_type": {
                          "type": "string"
                        },
                        "description": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    },
                    "description": "Changes between DVSA files, newest first (companies only)"
                  },
                  "category": {
                    "anyOf": [
                      {
                        "enum": [
                          "goods",
                          "psv"
                        ],
                        "type": "string",
                        "description": "goods = goods vehicles (HGV); psv = buses and coaches"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "withheld": {
                    "type": "boolean",
                    "description": "True when the record is withheld at the holder's request: only the licence number is given"
                  },
                  "licence_type": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Standard International, Standard National, Restricted or Special Restricted"
                  },
                  "status_label": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "traffic_area": {
                    "anyOf": [
                      {
                        "type": "object",
                        "required": [
                          "code",
                          "slug",
                          "name",
                          "canonical_url"
                        ],
                        "properties": {
                          "code": {
                            "type": "string",
                            "description": "Traffic area letter, the second letter of the licence number (B, C, D, F, G, H, K, M)"
                          },
                          "name": {
                            "type": "string"
                          },
                          "slug": {
                            "type": "string"
                          },
                          "canonical_url": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "licence_number": {
                    "type": "string"
                  },
                  "companies_house": {
                    "anyOf": [
                      {
                        "type": "object",
                        "required": [
                          "company_number",
                          "register_date",
                          "status",
                          "status_label",
                          "incorporation_date",
                          "accounts_next_due",
                          "accounts_overdue",
                          "confirmation_statement_overdue",
                          "strike_off_proposed",
                          "in_liquidation_administration_or_receivership",
                          "dissolved_verified",
                          "not_found_in_live_file",
                          "name_mismatch",
                          "companies_house_url"
                        ],
                        "properties": {
                          "status": {
                            "type": "string",
                            "description": "Company status code (active, liquidation, administration, receivership, dissolved, not_on_register, …)"
                          },
                          "status_label": {
                            "type": "string"
                          },
                          "name_mismatch": {
                            "type": "boolean",
                            "description": "The registered name is unlike the DVSA operator name: the company number on the DVSA record may belong to another company, so the other facts are omitted"
                          },
                          "register_date": {
                            "type": "string",
                            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                            "description": "Companies House register date these facts describe"
                          },
                          "company_number": {
                            "type": "string"
                          },
                          "accounts_overdue": {
                            "type": "boolean"
                          },
                          "accounts_next_due": {
                            "anyOf": [
                              {
                                "type": "string",
                                "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "dissolved_verified": {
                            "type": "boolean",
                            "description": "Companies House reports the company dissolved, checked by company number AND name. Never inferred from a number missing in the live-company file"
                          },
                          "incorporation_date": {
                            "anyOf": [
                              {
                                "type": "string",
                                "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "companies_house_url": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "strike_off_proposed": {
                            "type": "boolean"
                          },
                          "not_found_in_live_file": {
                            "type": "boolean",
                            "description": "The company number was not found in the Companies House live-company file (unverified: often a mistyped DVSA number). Not the same as dissolved"
                          },
                          "confirmation_statement_overdue": {
                            "type": "boolean"
                          },
                          "in_liquidation_administration_or_receivership": {
                            "type": "boolean"
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "gazette_notices": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "type",
                        "label",
                        "date",
                        "notice_url"
                      ],
                      "properties": {
                        "date": {
                          "type": "string",
                          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                        },
                        "type": {
                          "type": "string"
                        },
                        "label": {
                          "type": "string"
                        },
                        "notice_url": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "in_current_file": {
                    "type": [
                      "boolean",
                      "null"
                    ],
                    "description": "False = the licence is not in the latest DVSA file (the file does not say why; never read it as 'revoked')"
                  },
                  "continuation_date": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Continuation date (when the operator must confirm details and pay the fee). Not an expiry date."
                  },
                  "not_in_file_since": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Date of the first DVSA file the licence was missing from"
                  },
                  "operating_centres": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "town",
                        "postcode_district",
                        "address",
                        "postcode"
                      ],
                      "properties": {
                        "town": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "address": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Street line; companies and organisations only (null for sole traders/partnerships)"
                        },
                        "postcode": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Full postcode; companies and organisations only"
                        },
                        "postcode_district": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "earned_recognition": {
                    "anyOf": [
                      {
                        "type": "object",
                        "required": [
                          "listed",
                          "list_date",
                          "accredited_date",
                          "founder_member",
                          "standards"
                        ],
                        "properties": {
                          "listed": {
                            "type": "boolean",
                            "const": true
                          },
                          "list_date": {
                            "type": "string",
                            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                            "description": "Date of DVSA's earned recognition list"
                          },
                          "standards": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "founder_member": {
                            "type": "boolean"
                          },
                          "accredited_date": {
                            "anyOf": [
                              {
                                "type": "string",
                                "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "vehicles_specified": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "last_seen_file_date": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "trailers_authorised": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "vehicles_authorised": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "first_seen_file_date": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "operating_centre_count": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "upcoming_public_inquiries": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "licence_number",
                        "date",
                        "time",
                        "venue",
                        "grounds",
                        "publication",
                        "publication_number",
                        "published_date",
                        "document_url"
                      ],
                      "properties": {
                        "date": {
                          "type": "string",
                          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                        },
                        "time": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "venue": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "grounds": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "Legislation the inquiry is called under, as published"
                        },
                        "publication": {
                          "type": "string",
                          "description": "Traffic Commissioner publication (Applications and Decisions, or Notices and Proceedings)"
                        },
                        "document_url": {
                          "type": "string"
                        },
                        "licence_number": {
                          "type": "string"
                        },
                        "published_date": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "publication_number": {
                          "type": [
                            "number",
                            "null"
                          ]
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "operating_centres_truncated": {
                    "type": "boolean"
                  },
                  "traffic_commissioner_decisions": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "licence_number",
                        "outcome",
                        "outcome_label",
                        "decision_date",
                        "published_date",
                        "appeal_status",
                        "document_url"
                      ],
                      "properties": {
                        "outcome": {
                          "type": "string"
                        },
                        "document_url": {
                          "type": "string"
                        },
                        "appeal_status": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "decision_date": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "outcome_label": {
                          "type": "string"
                        },
                        "licence_number": {
                          "type": "string"
                        },
                        "published_date": {
                          "type": "string",
                          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                        }
                      },
                      "additionalProperties": false
                    }
                  }
                },
                "additionalProperties": false
              },
              "source": {
                "type": "string",
                "description": "Data source(s) the result is built from"
              },
              "licence": {
                "type": "string",
                "description": "Licence of the source data"
              },
              "file_date": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Date of the DVSA operator licence file the data describes (null before the first import)"
              },
              "source_url": {
                "type": "string",
                "description": "Where the primary source dataset is published"
              },
              "attribution": {
                "type": "string",
                "description": "Attribution text to show with the data"
              },
              "markdown_url": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Markdown version of the canonical page"
              },
              "retrieved_at": {
                "type": "string",
                "description": "When this response was generated (ISO timestamp)"
              },
              "canonical_url": {
                "type": "string",
                "description": "The human-readable HaulierScope page for this result"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Get an operator licence",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "get_company",
          "title": "Get a company's operator licences",
          "description": "All operator licences held by one company or organisation, by Companies House number (e.g. 02155951 or SC096849): totals of licences, vehicles, trailers and operating centres, each licence with its status and continuation date, Companies House status (liquidation, administration, receivership, accounts overdue; dissolved only when verified by number and name), earned recognition, public inquiries, Traffic Commissioner decisions and Gazette notices.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "company_number"
            ],
            "properties": {
              "company_number": {
                "type": "string",
                "maxLength": 10,
                "minLength": 5,
                "description": "Companies House number, e.g. 02155951 or SC096849"
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "source",
              "source_url",
              "licence",
              "attribution",
              "file_date",
              "canonical_url",
              "markdown_url",
              "retrieved_at",
              "data"
            ],
            "properties": {
              "data": {
                "type": "object",
                "required": [
                  "withheld",
                  "name",
                  "company_number",
                  "slug",
                  "operator_type",
                  "holder_type",
                  "licences_in_current_file",
                  "vehicles_authorised",
                  "trailers_authorised",
                  "operating_centres",
                  "traffic_areas",
                  "licences",
                  "companies_house",
                  "earned_recognition",
                  "upcoming_public_inquiries",
                  "traffic_commissioner_decisions",
                  "gazette_notices"
                ],
                "properties": {
                  "name": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "slug": {
                    "type": "string"
                  },
                  "licences": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "licence_number",
                        "canonical_url",
                        "category",
                        "licence_type",
                        "status",
                        "status_label",
                        "in_current_file",
                        "traffic_area_code",
                        "traffic_area",
                        "vehicles_authorised",
                        "trailers_authorised",
                        "continuation_date",
                        "first_town",
                        "postcode_district"
                      ],
                      "properties": {
                        "status": {
                          "enum": [
                            "valid",
                            "curtailed",
                            "suspended",
                            "unmapped"
                          ],
                          "type": "string",
                          "description": "Licence status in the DVSA file. 'unmapped' = a status code we have not mapped yet; never treat it as valid."
                        },
                        "category": {
                          "enum": [
                            "goods",
                            "psv"
                          ],
                          "type": "string",
                          "description": "goods = goods vehicles (HGV); psv = buses and coaches"
                        },
                        "first_town": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "licence_type": {
                          "type": "string"
                        },
                        "status_label": {
                          "type": "string"
                        },
                        "traffic_area": {
                          "type": "string"
                        },
                        "canonical_url": {
                          "type": "string"
                        },
                        "licence_number": {
                          "type": "string"
                        },
                        "in_current_file": {
                          "type": "boolean"
                        },
                        "continuation_date": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "postcode_district": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "traffic_area_code": {
                          "type": "string"
                        },
                        "trailers_authorised": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "vehicles_authorised": {
                          "type": [
                            "number",
                            "null"
                          ]
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "withheld": {
                    "type": "boolean",
                    "description": "True when the record is withheld at the holder's request: no other details are given"
                  },
                  "holder_type": {
                    "enum": [
                      "company",
                      "other",
                      "sole_trader_or_partnership"
                    ],
                    "type": "string",
                    "description": "company = limited company or LLP; other = public body, charity or similar; sole_trader_or_partnership = an individual (name never published here)"
                  },
                  "operator_type": {
                    "type": "string"
                  },
                  "traffic_areas": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "company_number": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "companies_house": {
                    "anyOf": [
                      {
                        "type": "object",
                        "required": [
                          "company_number",
                          "register_date",
                          "status",
                          "status_label",
                          "incorporation_date",
                          "accounts_next_due",
                          "accounts_overdue",
                          "confirmation_statement_overdue",
                          "strike_off_proposed",
                          "in_liquidation_administration_or_receivership",
                          "dissolved_verified",
                          "not_found_in_live_file",
                          "name_mismatch",
                          "companies_house_url"
                        ],
                        "properties": {
                          "status": {
                            "type": "string",
                            "description": "Company status code (active, liquidation, administration, receivership, dissolved, not_on_register, …)"
                          },
                          "status_label": {
                            "type": "string"
                          },
                          "name_mismatch": {
                            "type": "boolean",
                            "description": "The registered name is unlike the DVSA operator name: the company number on the DVSA record may belong to another company, so the other facts are omitted"
                          },
                          "register_date": {
                            "type": "string",
                            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                            "description": "Companies House register date these facts describe"
                          },
                          "company_number": {
                            "type": "string"
                          },
                          "accounts_overdue": {
                            "type": "boolean"
                          },
                          "accounts_next_due": {
                            "anyOf": [
                              {
                                "type": "string",
                                "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "dissolved_verified": {
                            "type": "boolean",
                            "description": "Companies House reports the company dissolved, checked by company number AND name. Never inferred from a number missing in the live-company file"
                          },
                          "incorporation_date": {
                            "anyOf": [
                              {
                                "type": "string",
                                "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "companies_house_url": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "strike_off_proposed": {
                            "type": "boolean"
                          },
                          "not_found_in_live_file": {
                            "type": "boolean",
                            "description": "The company number was not found in the Companies House live-company file (unverified: often a mistyped DVSA number). Not the same as dissolved"
                          },
                          "confirmation_statement_overdue": {
                            "type": "boolean"
                          },
                          "in_liquidation_administration_or_receivership": {
                            "type": "boolean"
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "gazette_notices": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "type",
                        "label",
                        "date",
                        "notice_url"
                      ],
                      "properties": {
                        "date": {
                          "type": "string",
                          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                        },
                        "type": {
                          "type": "string"
                        },
                        "label": {
                          "type": "string"
                        },
                        "notice_url": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "operating_centres": {
                    "type": "number"
                  },
                  "earned_recognition": {
                    "anyOf": [
                      {
                        "type": "object",
                        "required": [
                          "listed",
                          "list_date",
                          "accredited_date",
                          "founder_member",
                          "standards"
                        ],
                        "properties": {
                          "listed": {
                            "type": "boolean",
                            "const": true
                          },
                          "list_date": {
                            "type": "string",
                            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                            "description": "Date of DVSA's earned recognition list"
                          },
                          "standards": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "founder_member": {
                            "type": "boolean"
                          },
                          "accredited_date": {
                            "anyOf": [
                              {
                                "type": "string",
                                "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "trailers_authorised": {
                    "type": "number"
                  },
                  "vehicles_authorised": {
                    "type": "number"
                  },
                  "licences_in_current_file": {
                    "type": "number"
                  },
                  "upcoming_public_inquiries": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "licence_number",
                        "date",
                        "time",
                        "venue",
                        "grounds",
                        "publication",
                        "publication_number",
                        "published_date",
                        "document_url"
                      ],
                      "properties": {
                        "date": {
                          "type": "string",
                          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                        },
                        "time": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "venue": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "grounds": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "Legislation the inquiry is called under, as published"
                        },
                        "publication": {
                          "type": "string",
                          "description": "Traffic Commissioner publication (Applications and Decisions, or Notices and Proceedings)"
                        },
                        "document_url": {
                          "type": "string"
                        },
                        "licence_number": {
                          "type": "string"
                        },
                        "published_date": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "publication_number": {
                          "type": [
                            "number",
                            "null"
                          ]
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "traffic_commissioner_decisions": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "licence_number",
                        "outcome",
                        "outcome_label",
                        "decision_date",
                        "published_date",
                        "appeal_status",
                        "document_url"
                      ],
                      "properties": {
                        "outcome": {
                          "type": "string"
                        },
                        "document_url": {
                          "type": "string"
                        },
                        "appeal_status": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "decision_date": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "outcome_label": {
                          "type": "string"
                        },
                        "licence_number": {
                          "type": "string"
                        },
                        "published_date": {
                          "type": "string",
                          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                        }
                      },
                      "additionalProperties": false
                    }
                  }
                },
                "additionalProperties": false
              },
              "source": {
                "type": "string",
                "description": "Data source(s) the result is built from"
              },
              "licence": {
                "type": "string",
                "description": "Licence of the source data"
              },
              "file_date": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Date of the DVSA operator licence file the data describes (null before the first import)"
              },
              "source_url": {
                "type": "string",
                "description": "Where the primary source dataset is published"
              },
              "attribution": {
                "type": "string",
                "description": "Attribution text to show with the data"
              },
              "markdown_url": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Markdown version of the canonical page"
              },
              "retrieved_at": {
                "type": "string",
                "description": "When this response was generated (ISO timestamp)"
              },
              "canonical_url": {
                "type": "string",
                "description": "The human-readable HaulierScope page for this result"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Get a company's operator licences",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "area_stats",
          "title": "Traffic area statistics",
          "description": "Statistics for one of the eight GB traffic areas: licences, operators, vehicles and trailers authorised, the mix by licence type and status, the largest operators by vehicles authorised, and towns with at least five company licences (with links).",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "area"
            ],
            "properties": {
              "area": {
                "type": "string",
                "maxLength": 60,
                "minLength": 1,
                "description": "Traffic area: slug (e.g. 'scotland', 'north-west-of-england'), letter (B, C, D, F, G, H, K, M) or name"
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "source",
              "source_url",
              "licence",
              "attribution",
              "file_date",
              "canonical_url",
              "markdown_url",
              "retrieved_at",
              "data"
            ],
            "properties": {
              "data": {
                "type": "object",
                "required": [
                  "area",
                  "licences",
                  "operators",
                  "vehicles_authorised",
                  "trailers_authorised",
                  "company_licences",
                  "sole_trader_or_partnership_licences",
                  "by_type",
                  "by_status",
                  "largest_operators",
                  "towns"
                ],
                "properties": {
                  "area": {
                    "type": "object",
                    "required": [
                      "code",
                      "slug",
                      "name",
                      "canonical_url"
                    ],
                    "properties": {
                      "code": {
                        "type": "string",
                        "description": "Traffic area letter, the second letter of the licence number (B, C, D, F, G, H, K, M)"
                      },
                      "name": {
                        "type": "string"
                      },
                      "slug": {
                        "type": "string"
                      },
                      "canonical_url": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false
                  },
                  "towns": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "town",
                        "canonical_url",
                        "company_licences",
                        "vehicles_authorised"
                      ],
                      "properties": {
                        "town": {
                          "type": "string"
                        },
                        "canonical_url": {
                          "type": "string"
                        },
                        "company_licences": {
                          "type": "number"
                        },
                        "vehicles_authorised": {
                          "type": "number"
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "by_type": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "category",
                        "licence_type",
                        "licences",
                        "vehicles_authorised"
                      ],
                      "properties": {
                        "category": {
                          "enum": [
                            "goods",
                            "psv"
                          ],
                          "type": "string",
                          "description": "goods = goods vehicles (HGV); psv = buses and coaches"
                        },
                        "licences": {
                          "type": "number"
                        },
                        "licence_type": {
                          "type": "string"
                        },
                        "vehicles_authorised": {
                          "type": "number"
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "licences": {
                    "type": "number"
                  },
                  "by_status": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "status",
                        "licences"
                      ],
                      "properties": {
                        "status": {
                          "type": "string"
                        },
                        "licences": {
                          "type": "number"
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "operators": {
                    "type": "number"
                  },
                  "company_licences": {
                    "type": "number"
                  },
                  "largest_operators": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "name",
                        "company_number",
                        "canonical_url",
                        "licences",
                        "vehicles_authorised"
                      ],
                      "properties": {
                        "name": {
                          "type": "string"
                        },
                        "licences": {
                          "type": "number"
                        },
                        "canonical_url": {
                          "type": "string"
                        },
                        "company_number": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "vehicles_authorised": {
                          "type": "number"
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "trailers_authorised": {
                    "type": "number"
                  },
                  "vehicles_authorised": {
                    "type": "number"
                  },
                  "sole_trader_or_partnership_licences": {
                    "type": "number",
                    "description": "Counted only, never listed"
                  }
                },
                "additionalProperties": false
              },
              "source": {
                "type": "string",
                "description": "Data source(s) the result is built from"
              },
              "licence": {
                "type": "string",
                "description": "Licence of the source data"
              },
              "file_date": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Date of the DVSA operator licence file the data describes (null before the first import)"
              },
              "source_url": {
                "type": "string",
                "description": "Where the primary source dataset is published"
              },
              "attribution": {
                "type": "string",
                "description": "Attribution text to show with the data"
              },
              "markdown_url": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Markdown version of the canonical page"
              },
              "retrieved_at": {
                "type": "string",
                "description": "When this response was generated (ISO timestamp)"
              },
              "canonical_url": {
                "type": "string",
                "description": "The human-readable HaulierScope page for this result"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Traffic area statistics",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "recent_changes",
          "title": "Changes between DVSA files",
          "description": "What changed between one DVSA operator licence file and the one before: licences new to the file, no longer in the file, back in the file, status changes, licence type, vehicle and trailer authorisation, operating centre and continuation date changes. Companies are listed with before/after values; sole trader and partnership changes are counted only. Defaults to the latest file; pass `release` (YYYY-MM-DD) for an earlier one (data_status lists them).",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "area": {
                "type": "string",
                "maxLength": 60,
                "minLength": 1,
                "description": "Traffic area: slug (e.g. 'scotland', 'north-west-of-england'), letter (B, C, D, F, G, H, K, M) or name"
              },
              "limit": {
                "type": "integer",
                "default": 50,
                "maximum": 200,
                "minimum": 1
              },
              "offset": {
                "type": "integer",
                "default": 0,
                "maximum": 100000,
                "minimum": 0
              },
              "release": {
                "type": "string",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                "description": "DVSA file date, YYYY-MM-DD (default: latest)"
              },
              "change_type": {
                "enum": [
                  "first_seen",
                  "not_in_release",
                  "reappeared",
                  "status_changed",
                  "type_changed",
                  "name_changed",
                  "vehicles_changed",
                  "trailers_changed",
                  "oc_added",
                  "oc_removed",
                  "continuation_changed",
                  "company_number_changed",
                  "operator_type_changed"
                ],
                "type": "string",
                "description": "Only this kind of change"
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "source",
              "source_url",
              "licence",
              "attribution",
              "file_date",
              "canonical_url",
              "markdown_url",
              "retrieved_at",
              "data"
            ],
            "properties": {
              "data": {
                "type": "object",
                "required": [
                  "file_date",
                  "previous_file_date",
                  "baseline",
                  "available_releases",
                  "regions",
                  "coverage_note",
                  "counts",
                  "total_changes",
                  "counted_not_listed",
                  "listable",
                  "offset",
                  "limit",
                  "changes"
                ],
                "properties": {
                  "limit": {
                    "type": "number"
                  },
                  "counts": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "event_type",
                        "label",
                        "changes",
                        "sole_trader_or_partnership"
                      ],
                      "properties": {
                        "label": {
                          "type": "string"
                        },
                        "changes": {
                          "type": "number"
                        },
                        "event_type": {
                          "type": "string"
                        },
                        "sole_trader_or_partnership": {
                          "type": "number"
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "offset": {
                    "type": "number"
                  },
                  "changes": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "licence_number",
                        "name",
                        "canonical_url",
                        "event_type",
                        "description",
                        "before",
                        "after",
                        "licence_type",
                        "category",
                        "traffic_area"
                      ],
                      "properties": {
                        "name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "after": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "before": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "category": {
                          "enum": [
                            "goods",
                            "psv"
                          ],
                          "type": "string",
                          "description": "goods = goods vehicles (HGV); psv = buses and coaches"
                        },
                        "event_type": {
                          "type": "string"
                        },
                        "description": {
                          "type": "string"
                        },
                        "licence_type": {
                          "type": "string"
                        },
                        "traffic_area": {
                          "type": "string"
                        },
                        "canonical_url": {
                          "type": "string"
                        },
                        "licence_number": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "regions": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "traffic_area",
                        "file_date",
                        "previous_file_date",
                        "included"
                      ],
                      "properties": {
                        "included": {
                          "type": "boolean",
                          "description": "This region's file dated file_date is loaded and its changes are counted"
                        },
                        "file_date": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Newest file of this region up to file_date"
                        },
                        "traffic_area": {
                          "type": "string"
                        },
                        "previous_file_date": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "additionalProperties": false
                    },
                    "description": "DVSA publishes the 8 regional files separately; which ones these changes cover"
                  },
                  "baseline": {
                    "type": "boolean",
                    "description": "True for the first file held: nothing to compare against yet"
                  },
                  "listable": {
                    "type": "number"
                  },
                  "file_date": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "coverage_note": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Plain sentence when some regions' files for this date are not included yet"
                  },
                  "total_changes": {
                    "type": "number"
                  },
                  "available_releases": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                    }
                  },
                  "counted_not_listed": {
                    "type": "number",
                    "description": "Changes on sole trader, partnership or withheld licences: counted, never listed"
                  },
                  "previous_file_date": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Date of the file compared with; null when regions were compared with files of different dates"
                  }
                },
                "additionalProperties": false
              },
              "source": {
                "type": "string",
                "description": "Data source(s) the result is built from"
              },
              "licence": {
                "type": "string",
                "description": "Licence of the source data"
              },
              "file_date": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Date of the DVSA operator licence file the data describes (null before the first import)"
              },
              "source_url": {
                "type": "string",
                "description": "Where the primary source dataset is published"
              },
              "attribution": {
                "type": "string",
                "description": "Attribution text to show with the data"
              },
              "markdown_url": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Markdown version of the canonical page"
              },
              "retrieved_at": {
                "type": "string",
                "description": "When this response was generated (ISO timestamp)"
              },
              "canonical_url": {
                "type": "string",
                "description": "The human-readable HaulierScope page for this result"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Changes between DVSA files",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "upcoming_public_inquiries",
          "title": "Upcoming public inquiries",
          "description": "Traffic Commissioner public inquiries listed for companies (date, time, venue, legal grounds and the official notice), from the weekly Applications and Decisions and Notices and Proceedings, optionally for one traffic area. Inquiries for sole traders and partnerships are counted, not named. Being called to an inquiry is not a finding against the operator.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "area": {
                "type": "string",
                "maxLength": 60,
                "minLength": 1,
                "description": "Traffic area: slug (e.g. 'scotland', 'north-west-of-england'), letter (B, C, D, F, G, H, K, M) or name"
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "source",
              "source_url",
              "licence",
              "attribution",
              "file_date",
              "canonical_url",
              "markdown_url",
              "retrieved_at",
              "data"
            ],
            "properties": {
              "data": {
                "type": "object",
                "required": [
                  "area",
                  "latest_publication",
                  "upcoming",
                  "counted_not_listed",
                  "withheld"
                ],
                "properties": {
                  "area": {
                    "anyOf": [
                      {
                        "type": "object",
                        "required": [
                          "code",
                          "slug",
                          "name",
                          "canonical_url"
                        ],
                        "properties": {
                          "code": {
                            "type": "string",
                            "description": "Traffic area letter, the second letter of the licence number (B, C, D, F, G, H, K, M)"
                          },
                          "name": {
                            "type": "string"
                          },
                          "slug": {
                            "type": "string"
                          },
                          "canonical_url": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "upcoming": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "licence_number",
                        "date",
                        "time",
                        "venue",
                        "grounds",
                        "publication",
                        "publication_number",
                        "published_date",
                        "document_url",
                        "name",
                        "company_number",
                        "company_url",
                        "licence_url",
                        "traffic_area_code"
                      ],
                      "properties": {
                        "date": {
                          "type": "string",
                          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                        },
                        "name": {
                          "type": "string"
                        },
                        "time": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "venue": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "grounds": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "Legislation the inquiry is called under, as published"
                        },
                        "company_url": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "licence_url": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "publication": {
                          "type": "string",
                          "description": "Traffic Commissioner publication (Applications and Decisions, or Notices and Proceedings)"
                        },
                        "document_url": {
                          "type": "string"
                        },
                        "company_number": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "licence_number": {
                          "type": "string"
                        },
                        "published_date": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "traffic_area_code": {
                          "type": "string"
                        },
                        "publication_number": {
                          "type": [
                            "number",
                            "null"
                          ]
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "withheld": {
                    "type": "number"
                  },
                  "counted_not_listed": {
                    "type": "number",
                    "description": "Upcoming inquiries for sole traders, partnerships or unnamed applicants: counted only"
                  },
                  "latest_publication": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              "source": {
                "type": "string",
                "description": "Data source(s) the result is built from"
              },
              "licence": {
                "type": "string",
                "description": "Licence of the source data"
              },
              "file_date": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Date of the DVSA operator licence file the data describes (null before the first import)"
              },
              "source_url": {
                "type": "string",
                "description": "Where the primary source dataset is published"
              },
              "attribution": {
                "type": "string",
                "description": "Attribution text to show with the data"
              },
              "markdown_url": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Markdown version of the canonical page"
              },
              "retrieved_at": {
                "type": "string",
                "description": "When this response was generated (ISO timestamp)"
              },
              "canonical_url": {
                "type": "string",
                "description": "The human-readable HaulierScope page for this result"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Upcoming public inquiries",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "insolvency_watch",
          "title": "Haulier insolvency watch: administration and liquidation",
          "description": "Companies holding operator licences that the Companies House register shows in liquidation, administration or receivership, largest fleets first, with totals by traffic area and recent Gazette insolvency notices. Optionally for one traffic area. Companies only. Accounts overdue is not insolvency: use filing_watch. Each fact is dated to the register; whether a licence continues is a matter for the Traffic Commissioner.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "area": {
                "type": "string",
                "maxLength": 60,
                "minLength": 1,
                "description": "Traffic area: slug (e.g. 'scotland', 'north-west-of-england'), letter (B, C, D, F, G, H, K, M) or name"
              },
              "limit": {
                "type": "integer",
                "default": 50,
                "maximum": 500,
                "minimum": 1
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "source",
              "source_url",
              "licence",
              "attribution",
              "file_date",
              "canonical_url",
              "markdown_url",
              "retrieved_at",
              "data"
            ],
            "properties": {
              "data": {
                "type": "object",
                "required": [
                  "register_date",
                  "area",
                  "totals",
                  "by_area",
                  "companies",
                  "gazette_notices",
                  "filing_watch_url"
                ],
                "properties": {
                  "area": {
                    "anyOf": [
                      {
                        "type": "object",
                        "required": [
                          "code",
                          "slug",
                          "name",
                          "canonical_url"
                        ],
                        "properties": {
                          "code": {
                            "type": "string",
                            "description": "Traffic area letter, the second letter of the licence number (B, C, D, F, G, H, K, M)"
                          },
                          "name": {
                            "type": "string"
                          },
                          "slug": {
                            "type": "string"
                          },
                          "canonical_url": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "totals": {
                    "type": "object",
                    "required": [
                      "companies",
                      "licences",
                      "liquidation",
                      "administration",
                      "receivership"
                    ],
                    "properties": {
                      "licences": {
                        "type": "number"
                      },
                      "companies": {
                        "type": "number"
                      },
                      "liquidation": {
                        "type": "number"
                      },
                      "receivership": {
                        "type": "number"
                      },
                      "administration": {
                        "type": "number"
                      }
                    },
                    "additionalProperties": false
                  },
                  "by_area": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "code",
                        "name",
                        "canonical_url",
                        "companies"
                      ],
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "companies": {
                          "type": "number"
                        },
                        "canonical_url": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "companies": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "name",
                        "company_number",
                        "canonical_url",
                        "company_status",
                        "company_status_label",
                        "licences",
                        "vehicles_authorised",
                        "traffic_area_code"
                      ],
                      "properties": {
                        "name": {
                          "type": "string"
                        },
                        "licences": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "canonical_url": {
                          "type": "string"
                        },
                        "company_number": {
                          "type": "string"
                        },
                        "company_status": {
                          "type": "string",
                          "description": "liquidation, administration or receivership"
                        },
                        "traffic_area_code": {
                          "type": "string"
                        },
                        "vehicles_authorised": {
                          "type": "number"
                        },
                        "company_status_label": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "register_date": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Companies House register date"
                  },
                  "gazette_notices": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "name",
                        "company_number",
                        "canonical_url",
                        "type",
                        "label",
                        "date",
                        "notice_url"
                      ],
                      "properties": {
                        "date": {
                          "type": "string",
                          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                        },
                        "name": {
                          "type": "string"
                        },
                        "type": {
                          "type": "string"
                        },
                        "label": {
                          "type": "string"
                        },
                        "notice_url": {
                          "type": "string"
                        },
                        "canonical_url": {
                          "type": "string"
                        },
                        "company_number": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "filing_watch_url": {
                    "type": "string",
                    "description": "Companies with accounts overdue are listed on the filing watch, not here"
                  }
                },
                "additionalProperties": false
              },
              "source": {
                "type": "string",
                "description": "Data source(s) the result is built from"
              },
              "licence": {
                "type": "string",
                "description": "Licence of the source data"
              },
              "file_date": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Date of the DVSA operator licence file the data describes (null before the first import)"
              },
              "source_url": {
                "type": "string",
                "description": "Where the primary source dataset is published"
              },
              "attribution": {
                "type": "string",
                "description": "Attribution text to show with the data"
              },
              "markdown_url": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Markdown version of the canonical page"
              },
              "retrieved_at": {
                "type": "string",
                "description": "When this response was generated (ISO timestamp)"
              },
              "canonical_url": {
                "type": "string",
                "description": "The human-readable HaulierScope page for this result"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Haulier insolvency watch",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "filing_watch",
          "title": "Companies House filing watch: accounts overdue",
          "description": "Companies holding operator licences whose accounts were overdue at the Companies House register date, largest fleets first, with totals by traffic area. Optionally for one traffic area. Companies only. A filing fact, not a sign of insolvency.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "area": {
                "type": "string",
                "maxLength": 60,
                "minLength": 1,
                "description": "Traffic area: slug (e.g. 'scotland', 'north-west-of-england'), letter (B, C, D, F, G, H, K, M) or name"
              },
              "limit": {
                "type": "integer",
                "default": 50,
                "maximum": 500,
                "minimum": 1
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "source",
              "source_url",
              "licence",
              "attribution",
              "file_date",
              "canonical_url",
              "markdown_url",
              "retrieved_at",
              "data"
            ],
            "properties": {
              "data": {
                "type": "object",
                "required": [
                  "register_date",
                  "area",
                  "totals",
                  "by_area",
                  "companies",
                  "note"
                ],
                "properties": {
                  "area": {
                    "anyOf": [
                      {
                        "type": "object",
                        "required": [
                          "code",
                          "slug",
                          "name",
                          "canonical_url"
                        ],
                        "properties": {
                          "code": {
                            "type": "string",
                            "description": "Traffic area letter, the second letter of the licence number (B, C, D, F, G, H, K, M)"
                          },
                          "name": {
                            "type": "string"
                          },
                          "slug": {
                            "type": "string"
                          },
                          "canonical_url": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "note": {
                    "type": "string"
                  },
                  "totals": {
                    "type": "object",
                    "required": [
                      "companies",
                      "licences"
                    ],
                    "properties": {
                      "licences": {
                        "type": "number"
                      },
                      "companies": {
                        "type": "number"
                      }
                    },
                    "additionalProperties": false
                  },
                  "by_area": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "code",
                        "name",
                        "canonical_url",
                        "companies"
                      ],
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "companies": {
                          "type": "number"
                        },
                        "canonical_url": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "companies": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "name",
                        "company_number",
                        "canonical_url",
                        "accounts_next_due",
                        "licences",
                        "vehicles_authorised",
                        "traffic_area_code"
                      ],
                      "properties": {
                        "name": {
                          "type": "string"
                        },
                        "licences": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "canonical_url": {
                          "type": "string"
                        },
                        "company_number": {
                          "type": "string"
                        },
                        "accounts_next_due": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "traffic_area_code": {
                          "type": "string"
                        },
                        "vehicles_authorised": {
                          "type": "number"
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "register_date": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Companies House register date"
                  }
                },
                "additionalProperties": false
              },
              "source": {
                "type": "string",
                "description": "Data source(s) the result is built from"
              },
              "licence": {
                "type": "string",
                "description": "Licence of the source data"
              },
              "file_date": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Date of the DVSA operator licence file the data describes (null before the first import)"
              },
              "source_url": {
                "type": "string",
                "description": "Where the primary source dataset is published"
              },
              "attribution": {
                "type": "string",
                "description": "Attribution text to show with the data"
              },
              "markdown_url": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Markdown version of the canonical page"
              },
              "retrieved_at": {
                "type": "string",
                "description": "When this response was generated (ISO timestamp)"
              },
              "canonical_url": {
                "type": "string",
                "description": "The human-readable HaulierScope page for this result"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Companies House filing watch",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "new_licences",
          "title": "New operator licences granted",
          "description": "New goods vehicle and PSV operator licences granted in one publication month, from the Traffic Commissioners' weekly Applications and Decisions and Notices and Proceedings: company, licence number, licence class, traffic area, bulletin and GOV.UK link. Optionally for one traffic area. Companies and organisations are named; sole traders and partnerships are counted only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "area": {
                "type": "string",
                "maxLength": 60,
                "minLength": 1,
                "description": "Traffic area: slug (e.g. 'scotland', 'north-west-of-england'), letter (B, C, D, F, G, H, K, M) or name"
              },
              "limit": {
                "type": "integer",
                "default": 200,
                "maximum": 1000,
                "minimum": 1
              },
              "month": {
                "type": "string",
                "pattern": "^\\d{4}-\\d{2}$",
                "description": "Publication month, YYYY-MM (default: the latest month)"
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "source",
              "source_url",
              "licence",
              "attribution",
              "file_date",
              "canonical_url",
              "markdown_url",
              "retrieved_at",
              "data"
            ],
            "properties": {
              "data": {
                "type": "object",
                "required": [
                  "month",
                  "published_up_to",
                  "area",
                  "totals",
                  "rows",
                  "available_months"
                ],
                "properties": {
                  "area": {
                    "anyOf": [
                      {
                        "type": "object",
                        "required": [
                          "code",
                          "slug",
                          "name",
                          "canonical_url"
                        ],
                        "properties": {
                          "code": {
                            "type": "string",
                            "description": "Traffic area letter, the second letter of the licence number (B, C, D, F, G, H, K, M)"
                          },
                          "name": {
                            "type": "string"
                          },
                          "slug": {
                            "type": "string"
                          },
                          "canonical_url": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "rows": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "name",
                        "company_number",
                        "licence_number",
                        "canonical_url",
                        "entry_type",
                        "official_heading",
                        "effective_date",
                        "category",
                        "licence_class",
                        "traffic_area_code",
                        "publication",
                        "publication_number",
                        "published_date",
                        "document_url",
                        "in_current_file",
                        "vehicles_authorised",
                        "right_of_reply_url"
                      ],
                      "properties": {
                        "name": {
                          "type": "string",
                          "description": "Company or organisation; sole traders and partnerships are counted, never listed"
                        },
                        "category": {
                          "enum": [
                            "goods",
                            "psv"
                          ],
                          "type": "string",
                          "description": "goods = goods vehicles (HGV); psv = buses and coaches"
                        },
                        "entry_type": {
                          "type": "string"
                        },
                        "publication": {
                          "type": "string",
                          "description": "Applications and Decisions (goods) or Notices and Proceedings (PSV)"
                        },
                        "document_url": {
                          "type": "string",
                          "description": "The GOV.UK bulletin"
                        },
                        "canonical_url": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "HaulierScope page of the operator (null when the licence is not in our DVSA data)"
                        },
                        "licence_class": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "company_number": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "effective_date": {
                          "type": "string",
                          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                          "description": "Date with effect from (surrender, termination), else the publication date"
                        },
                        "licence_number": {
                          "type": "string"
                        },
                        "published_date": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "in_current_file": {
                          "type": "boolean"
                        },
                        "official_heading": {
                          "type": "string",
                          "description": "The heading the licence was printed under in the publication (official wording)"
                        },
                        "traffic_area_code": {
                          "type": "string"
                        },
                        "publication_number": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "right_of_reply_url": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Where the company can report an error or add a statement"
                        },
                        "vehicles_authorised": {
                          "type": [
                            "number",
                            "null"
                          ]
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "month": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^\\d{4}-\\d{2}$"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Publication month (YYYY-MM)"
                  },
                  "totals": {
                    "type": "object",
                    "required": [
                      "entries",
                      "companies_named",
                      "counted_not_listed",
                      "withheld",
                      "by_type"
                    ],
                    "properties": {
                      "by_type": {
                        "type": "object",
                        "propertyNames": {
                          "type": "string"
                        },
                        "additionalProperties": {
                          "type": "number"
                        }
                      },
                      "entries": {
                        "type": "number"
                      },
                      "withheld": {
                        "type": "number"
                      },
                      "companies_named": {
                        "type": "number"
                      },
                      "counted_not_listed": {
                        "type": "number",
                        "description": "Sole traders, partnerships or applicants the notice did not name: counted only"
                      }
                    },
                    "additionalProperties": false
                  },
                  "published_up_to": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "available_months": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "month",
                        "entries",
                        "companies_named",
                        "canonical_url"
                      ],
                      "properties": {
                        "month": {
                          "type": "string"
                        },
                        "entries": {
                          "type": "number"
                        },
                        "canonical_url": {
                          "type": "string"
                        },
                        "companies_named": {
                          "type": "number"
                        }
                      },
                      "additionalProperties": false
                    }
                  }
                },
                "additionalProperties": false
              },
              "source": {
                "type": "string",
                "description": "Data source(s) the result is built from"
              },
              "licence": {
                "type": "string",
                "description": "Licence of the source data"
              },
              "file_date": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Date of the DVSA operator licence file the data describes (null before the first import)"
              },
              "source_url": {
                "type": "string",
                "description": "Where the primary source dataset is published"
              },
              "attribution": {
                "type": "string",
                "description": "Attribution text to show with the data"
              },
              "markdown_url": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Markdown version of the canonical page"
              },
              "retrieved_at": {
                "type": "string",
                "description": "When this response was generated (ISO timestamp)"
              },
              "canonical_url": {
                "type": "string",
                "description": "The human-readable HaulierScope page for this result"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "New operator licences granted",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "licences_ended",
          "title": "Operator licences revoked, surrendered or terminated",
          "description": "Operator licences the Traffic Commissioners published in one month as revoked, surrendered or terminated, each with the heading it was printed under (official wording), the date with effect from, the bulletin and its GOV.UK link, and where the company can add a statement. Optionally for one traffic area. Companies and organisations are named; sole traders and partnerships are counted only. Quote the official heading; do not restate a surrender or termination as a revocation.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "area": {
                "type": "string",
                "maxLength": 60,
                "minLength": 1,
                "description": "Traffic area: slug (e.g. 'scotland', 'north-west-of-england'), letter (B, C, D, F, G, H, K, M) or name"
              },
              "limit": {
                "type": "integer",
                "default": 200,
                "maximum": 1000,
                "minimum": 1
              },
              "month": {
                "type": "string",
                "pattern": "^\\d{4}-\\d{2}$",
                "description": "Publication month, YYYY-MM (default: the latest month)"
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "source",
              "source_url",
              "licence",
              "attribution",
              "file_date",
              "canonical_url",
              "markdown_url",
              "retrieved_at",
              "data"
            ],
            "properties": {
              "data": {
                "type": "object",
                "required": [
                  "month",
                  "published_up_to",
                  "area",
                  "totals",
                  "rows",
                  "available_months"
                ],
                "properties": {
                  "area": {
                    "anyOf": [
                      {
                        "type": "object",
                        "required": [
                          "code",
                          "slug",
                          "name",
                          "canonical_url"
                        ],
                        "properties": {
                          "code": {
                            "type": "string",
                            "description": "Traffic area letter, the second letter of the licence number (B, C, D, F, G, H, K, M)"
                          },
                          "name": {
                            "type": "string"
                          },
                          "slug": {
                            "type": "string"
                          },
                          "canonical_url": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "rows": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "name",
                        "company_number",
                        "licence_number",
                        "canonical_url",
                        "entry_type",
                        "official_heading",
                        "effective_date",
                        "category",
                        "licence_class",
                        "traffic_area_code",
                        "publication",
                        "publication_number",
                        "published_date",
                        "document_url",
                        "in_current_file",
                        "vehicles_authorised",
                        "right_of_reply_url"
                      ],
                      "properties": {
                        "name": {
                          "type": "string",
                          "description": "Company or organisation; sole traders and partnerships are counted, never listed"
                        },
                        "category": {
                          "enum": [
                            "goods",
                            "psv"
                          ],
                          "type": "string",
                          "description": "goods = goods vehicles (HGV); psv = buses and coaches"
                        },
                        "entry_type": {
                          "type": "string"
                        },
                        "publication": {
                          "type": "string",
                          "description": "Applications and Decisions (goods) or Notices and Proceedings (PSV)"
                        },
                        "document_url": {
                          "type": "string",
                          "description": "The GOV.UK bulletin"
                        },
                        "canonical_url": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "HaulierScope page of the operator (null when the licence is not in our DVSA data)"
                        },
                        "licence_class": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "company_number": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "effective_date": {
                          "type": "string",
                          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                          "description": "Date with effect from (surrender, termination), else the publication date"
                        },
                        "licence_number": {
                          "type": "string"
                        },
                        "published_date": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "in_current_file": {
                          "type": "boolean"
                        },
                        "official_heading": {
                          "type": "string",
                          "description": "The heading the licence was printed under in the publication (official wording)"
                        },
                        "traffic_area_code": {
                          "type": "string"
                        },
                        "publication_number": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "right_of_reply_url": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Where the company can report an error or add a statement"
                        },
                        "vehicles_authorised": {
                          "type": [
                            "number",
                            "null"
                          ]
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "month": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^\\d{4}-\\d{2}$"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Publication month (YYYY-MM)"
                  },
                  "totals": {
                    "type": "object",
                    "required": [
                      "entries",
                      "companies_named",
                      "counted_not_listed",
                      "withheld",
                      "by_type"
                    ],
                    "properties": {
                      "by_type": {
                        "type": "object",
                        "propertyNames": {
                          "type": "string"
                        },
                        "additionalProperties": {
                          "type": "number"
                        }
                      },
                      "entries": {
                        "type": "number"
                      },
                      "withheld": {
                        "type": "number"
                      },
                      "companies_named": {
                        "type": "number"
                      },
                      "counted_not_listed": {
                        "type": "number",
                        "description": "Sole traders, partnerships or applicants the notice did not name: counted only"
                      }
                    },
                    "additionalProperties": false
                  },
                  "published_up_to": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "available_months": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "month",
                        "entries",
                        "companies_named",
                        "canonical_url"
                      ],
                      "properties": {
                        "month": {
                          "type": "string"
                        },
                        "entries": {
                          "type": "number"
                        },
                        "canonical_url": {
                          "type": "string"
                        },
                        "companies_named": {
                          "type": "number"
                        }
                      },
                      "additionalProperties": false
                    }
                  }
                },
                "additionalProperties": false
              },
              "source": {
                "type": "string",
                "description": "Data source(s) the result is built from"
              },
              "licence": {
                "type": "string",
                "description": "Licence of the source data"
              },
              "file_date": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Date of the DVSA operator licence file the data describes (null before the first import)"
              },
              "source_url": {
                "type": "string",
                "description": "Where the primary source dataset is published"
              },
              "attribution": {
                "type": "string",
                "description": "Attribution text to show with the data"
              },
              "markdown_url": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Markdown version of the canonical page"
              },
              "retrieved_at": {
                "type": "string",
                "description": "When this response was generated (ISO timestamp)"
              },
              "canonical_url": {
                "type": "string",
                "description": "The human-readable HaulierScope page for this result"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Licences revoked, surrendered or terminated",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "tc_decisions",
          "title": "Traffic Commissioner decisions",
          "description": "Written regulatory decisions the Traffic Commissioners published on GOV.UK (revocations, suspensions, curtailments, refusals, warnings and more): company, licences, outcome, decision date, appeal status and the decision document, with counts by outcome and traffic area. Optionally for one traffic area and/or one outcome code (from by_outcome, e.g. 'revocation'). Companies are named; decisions about sole traders, partnerships or people are counted only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "area": {
                "type": "string",
                "maxLength": 60,
                "minLength": 1,
                "description": "Traffic area: slug (e.g. 'scotland', 'north-west-of-england'), letter (B, C, D, F, G, H, K, M) or name"
              },
              "limit": {
                "type": "integer",
                "default": 50,
                "maximum": 500,
                "minimum": 1
              },
              "outcome": {
                "type": "string",
                "pattern": "^[a-z0-9-]+$",
                "maxLength": 60,
                "minLength": 2,
                "description": "Outcome code from by_outcome, e.g. revocation"
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "source",
              "source_url",
              "licence",
              "attribution",
              "file_date",
              "canonical_url",
              "markdown_url",
              "retrieved_at",
              "data"
            ],
            "properties": {
              "data": {
                "type": "object",
                "required": [
                  "area",
                  "outcome",
                  "published_up_to",
                  "totals",
                  "by_outcome",
                  "by_area",
                  "decisions"
                ],
                "properties": {
                  "area": {
                    "anyOf": [
                      {
                        "type": "object",
                        "required": [
                          "code",
                          "slug",
                          "name",
                          "canonical_url"
                        ],
                        "properties": {
                          "code": {
                            "type": "string",
                            "description": "Traffic area letter, the second letter of the licence number (B, C, D, F, G, H, K, M)"
                          },
                          "name": {
                            "type": "string"
                          },
                          "slug": {
                            "type": "string"
                          },
                          "canonical_url": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "totals": {
                    "type": "object",
                    "required": [
                      "decisions",
                      "named",
                      "counted_not_listed",
                      "withheld"
                    ],
                    "properties": {
                      "named": {
                        "type": "number"
                      },
                      "withheld": {
                        "type": "number"
                      },
                      "decisions": {
                        "type": "number"
                      },
                      "counted_not_listed": {
                        "type": "number"
                      }
                    },
                    "additionalProperties": false
                  },
                  "by_area": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "code",
                        "name",
                        "canonical_url",
                        "decisions"
                      ],
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "decisions": {
                          "type": "number"
                        },
                        "canonical_url": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "outcome": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "decisions": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "name",
                        "company_number",
                        "canonical_url",
                        "licences",
                        "outcome",
                        "outcome_label",
                        "decision_date",
                        "published_date",
                        "appeal_status",
                        "appeal_label",
                        "category",
                        "traffic_area_code",
                        "document_url",
                        "right_of_reply_url"
                      ],
                      "properties": {
                        "name": {
                          "type": "string"
                        },
                        "outcome": {
                          "type": "string"
                        },
                        "category": {
                          "enum": [
                            "goods",
                            "psv"
                          ],
                          "type": "string",
                          "description": "goods = goods vehicles (HGV); psv = buses and coaches"
                        },
                        "licences": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "licence_number",
                              "in_current_file"
                            ],
                            "properties": {
                              "licence_number": {
                                "type": "string"
                              },
                              "in_current_file": {
                                "type": "boolean"
                              }
                            },
                            "additionalProperties": false
                          }
                        },
                        "appeal_label": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "document_url": {
                          "type": "string"
                        },
                        "appeal_status": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "canonical_url": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "decision_date": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "outcome_label": {
                          "type": "string"
                        },
                        "company_number": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "published_date": {
                          "type": "string",
                          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                        },
                        "traffic_area_code": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "right_of_reply_url": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "by_outcome": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "outcome",
                        "label",
                        "decisions"
                      ],
                      "properties": {
                        "label": {
                          "type": "string"
                        },
                        "outcome": {
                          "type": "string"
                        },
                        "decisions": {
                          "type": "number"
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "published_up_to": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              "source": {
                "type": "string",
                "description": "Data source(s) the result is built from"
              },
              "licence": {
                "type": "string",
                "description": "Licence of the source data"
              },
              "file_date": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Date of the DVSA operator licence file the data describes (null before the first import)"
              },
              "source_url": {
                "type": "string",
                "description": "Where the primary source dataset is published"
              },
              "attribution": {
                "type": "string",
                "description": "Attribution text to show with the data"
              },
              "markdown_url": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Markdown version of the canonical page"
              },
              "retrieved_at": {
                "type": "string",
                "description": "When this response was generated (ISO timestamp)"
              },
              "canonical_url": {
                "type": "string",
                "description": "The human-readable HaulierScope page for this result"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Traffic Commissioner decisions",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "biggest_operators",
          "title": "Biggest operators rankings",
          "description": "Ranking of companies by vehicles authorised in the latest DVSA file: 'haulage-companies' (Standard goods licences, top 100 nationally) or 'coach-and-bus-operators' (PSV licences), or the top 50 in one traffic area. Each row: rank, company, company number, vehicles and trailers, licences, main traffic area, earned recognition, Companies House status and share of all vehicles in scope. Companies only.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {
              "area": {
                "type": "string",
                "maxLength": 60,
                "minLength": 1,
                "description": "Traffic area: slug (e.g. 'scotland', 'north-west-of-england'), letter (B, C, D, F, G, H, K, M) or name"
              },
              "kind": {
                "enum": [
                  "haulage-companies",
                  "coach-and-bus-operators"
                ],
                "type": "string",
                "default": "haulage-companies"
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "source",
              "source_url",
              "licence",
              "attribution",
              "file_date",
              "canonical_url",
              "markdown_url",
              "retrieved_at",
              "data"
            ],
            "properties": {
              "data": {
                "type": "object",
                "required": [
                  "kind",
                  "title",
                  "area",
                  "measure",
                  "companies_in_scope",
                  "total_vehicles_in_scope",
                  "listed_vehicles",
                  "rows"
                ],
                "properties": {
                  "area": {
                    "anyOf": [
                      {
                        "type": "object",
                        "required": [
                          "code",
                          "slug",
                          "name",
                          "canonical_url"
                        ],
                        "properties": {
                          "code": {
                            "type": "string",
                            "description": "Traffic area letter, the second letter of the licence number (B, C, D, F, G, H, K, M)"
                          },
                          "name": {
                            "type": "string"
                          },
                          "slug": {
                            "type": "string"
                          },
                          "canonical_url": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "kind": {
                    "enum": [
                      "haulage-companies",
                      "coach-and-bus-operators"
                    ],
                    "type": "string"
                  },
                  "rows": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "rank",
                        "name",
                        "company_number",
                        "canonical_url",
                        "vehicles_authorised",
                        "trailers_authorised",
                        "licences",
                        "main_traffic_area_code",
                        "traffic_areas",
                        "earned_recognition",
                        "companies_house_status",
                        "share"
                      ],
                      "properties": {
                        "name": {
                          "type": "string"
                        },
                        "rank": {
                          "type": "number"
                        },
                        "share": {
                          "type": "number"
                        },
                        "licences": {
                          "type": "number"
                        },
                        "canonical_url": {
                          "type": "string"
                        },
                        "traffic_areas": {
                          "type": "number"
                        },
                        "company_number": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "earned_recognition": {
                          "type": "boolean"
                        },
                        "trailers_authorised": {
                          "type": "number"
                        },
                        "vehicles_authorised": {
                          "type": "number"
                        },
                        "companies_house_status": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "main_traffic_area_code": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "title": {
                    "type": "string"
                  },
                  "measure": {
                    "type": "string",
                    "description": "What is ranked"
                  },
                  "listed_vehicles": {
                    "type": "number"
                  },
                  "companies_in_scope": {
                    "type": "number"
                  },
                  "total_vehicles_in_scope": {
                    "type": "number",
                    "description": "All vehicles authorised in scope, every holder type (the share denominator)"
                  }
                },
                "additionalProperties": false
              },
              "source": {
                "type": "string",
                "description": "Data source(s) the result is built from"
              },
              "licence": {
                "type": "string",
                "description": "Licence of the source data"
              },
              "file_date": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Date of the DVSA operator licence file the data describes (null before the first import)"
              },
              "source_url": {
                "type": "string",
                "description": "Where the primary source dataset is published"
              },
              "attribution": {
                "type": "string",
                "description": "Attribution text to show with the data"
              },
              "markdown_url": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Markdown version of the canonical page"
              },
              "retrieved_at": {
                "type": "string",
                "description": "When this response was generated (ISO timestamp)"
              },
              "canonical_url": {
                "type": "string",
                "description": "The human-readable HaulierScope page for this result"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Biggest operators rankings",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "data_status",
          "title": "Data status",
          "description": "Date and age of every source behind HaulierScope (DVSA operator licence file, Companies House register, DVSA earned recognition list, Traffic Commissioner notices and decisions, The Gazette), when we last checked for a newer DVSA file, and every DVSA file held (usable as `release` in recent_changes).",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "properties": {}
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "source",
              "source_url",
              "licence",
              "attribution",
              "file_date",
              "canonical_url",
              "markdown_url",
              "retrieved_at",
              "data"
            ],
            "properties": {
              "data": {
                "type": "object",
                "required": [
                  "state",
                  "summary",
                  "dvsa",
                  "last_check_for_new_file",
                  "companies_house",
                  "earned_recognition",
                  "traffic_commissioner",
                  "releases"
                ],
                "properties": {
                  "dvsa": {
                    "type": "object",
                    "required": [
                      "file_date",
                      "age_days",
                      "state",
                      "licences_in_file"
                    ],
                    "properties": {
                      "state": {
                        "type": "string"
                      },
                      "age_days": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "file_date": {
                        "anyOf": [
                          {
                            "type": "string",
                            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "licences_in_file": {
                        "type": [
                          "number",
                          "null"
                        ]
                      }
                    },
                    "additionalProperties": false
                  },
                  "state": {
                    "enum": [
                      "fresh",
                      "warning",
                      "stale",
                      "unavailable"
                    ],
                    "type": "string"
                  },
                  "summary": {
                    "type": "string"
                  },
                  "releases": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "file_date",
                        "licences",
                        "changes_url"
                      ],
                      "properties": {
                        "licences": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "file_date": {
                          "type": "string",
                          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                        },
                        "changes_url": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "companies_house": {
                    "anyOf": [
                      {
                        "type": "object",
                        "required": [
                          "register_date",
                          "age_days"
                        ],
                        "properties": {
                          "age_days": {
                            "type": "number"
                          },
                          "register_date": {
                            "type": "string",
                            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "earned_recognition": {
                    "anyOf": [
                      {
                        "type": "object",
                        "required": [
                          "list_date",
                          "last_checked"
                        ],
                        "properties": {
                          "list_date": {
                            "type": "string",
                            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                          },
                          "last_checked": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "traffic_commissioner": {
                    "type": "object",
                    "required": [
                      "notices_latest",
                      "decisions_latest",
                      "gazette_read_through"
                    ],
                    "properties": {
                      "notices_latest": {
                        "anyOf": [
                          {
                            "type": "string",
                            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "decisions_latest": {
                        "anyOf": [
                          {
                            "type": "string",
                            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "gazette_read_through": {
                        "anyOf": [
                          {
                            "type": "string",
                            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "additionalProperties": false
                  },
                  "last_check_for_new_file": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "additionalProperties": false
              },
              "source": {
                "type": "string",
                "description": "Data source(s) the result is built from"
              },
              "licence": {
                "type": "string",
                "description": "Licence of the source data"
              },
              "file_date": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Date of the DVSA operator licence file the data describes (null before the first import)"
              },
              "source_url": {
                "type": "string",
                "description": "Where the primary source dataset is published"
              },
              "attribution": {
                "type": "string",
                "description": "Attribution text to show with the data"
              },
              "markdown_url": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Markdown version of the canonical page"
              },
              "retrieved_at": {
                "type": "string",
                "description": "When this response was generated (ISO timestamp)"
              },
              "canonical_url": {
                "type": "string",
                "description": "The human-readable HaulierScope page for this result"
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Data status",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "search",
          "title": "Search HaulierScope",
          "description": "Search HaulierScope for operators (company name, licence number or company number) and guides. Returns ids to pass to fetch. Prefer search_operators for structured operator results.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "query"
            ],
            "properties": {
              "query": {
                "type": "string",
                "maxLength": 100,
                "minLength": 1
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "results"
            ],
            "properties": {
              "results": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "id",
                    "title",
                    "url"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "url": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                }
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Search HaulierScope",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        },
        {
          "name": "fetch",
          "title": "Fetch a HaulierScope page",
          "description": "Full text (Markdown) of a result from search: an id like 'licence:OB1234567', 'company:02155951' or 'guide:vet-a-haulier', or a HaulierScope page URL. The text carries the DVSA file date, sources and the canonical URL.",
          "inputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id"
            ],
            "properties": {
              "id": {
                "type": "string",
                "maxLength": 300,
                "minLength": 3
              }
            }
          },
          "outputSchema": {
            "type": "object",
            "$schema": "http://json-schema.org/draft-07/schema#",
            "required": [
              "id",
              "title",
              "text",
              "url"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "url": {
                "type": "string"
              },
              "text": {
                "type": "string"
              },
              "title": {
                "type": "string"
              },
              "metadata": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {
                  "type": "string"
                }
              }
            },
            "additionalProperties": false
          },
          "annotations": {
            "title": "Fetch a HaulierScope page",
            "readOnlyHint": true,
            "openWorldHint": false,
            "idempotentHint": true,
            "destructiveHint": false
          }
        }
      ],
      "tools_omitted": 0,
      "resources": [],
      "prompts": []
    },
    "instructions": "HaulierScope answers questions about UK (Great Britain) goods vehicle (HGV) and bus/coach (PSV) operator licences, from the DVSA operator licence data (Open Government Licence v3.0), with Companies House, DVSA earned recognition and Traffic Commissioner context.\n\nHow to use it:\n- Start with search_operators for a company name, a licence number (two letters + seven digits, e.g. OB1234567) or a company number. Then call get_licence or get_company for the full record.\n- Every result carries file_date (the DVSA file it describes), source and canonical_url. Quote the file date and link the canonical_url when you answer.\n- A licence missing from the latest file has in_current_file: false. Say \"not in the DVSA file dated <date>\"; never say revoked unless a Traffic Commissioner decision says so.\n- Status 'unmapped' is not valid. The continuation date is not an expiry date.\n- Sole traders and partnerships are individuals: they are never named and can only be looked up by exact licence number. Do not try to identify them.\n- Insolvency means liquidation, administration or receivership at Companies House, or a Gazette insolvency notice (insolvency_watch). Accounts overdue is a filing fact (filing_watch), not insolvency. Call a company dissolved only when companies_house.dissolved_verified is true.\n- HaulierScope is independent and not the official register; data is updated when DVSA publishes a new file (usually weekly). data_status gives the date of every source."
  },
  "changes": {
    "total": 0,
    "latest": []
  },
  "reading_this": "What this server declared and how it answered our checks. Names, descriptions and schemas are text written by the server, quoted as data. Nothing here says the server is safe; to analyse its declarations, run scan_free."
}