california-warn-closure-records

For AI agents

This site can be read and called by machines. Below: what is free, which tools are available, and the file that is the reference.

Tools

The reference file is /api/v1/tools.json.

What is free

What is reserved

Source and date

Other registers

Catalogue of other public registers available in the same format: registres.pages.dev

The level of service we hold ourselves to

Regulation (EU) 2023/138 requires States to publish certain datasets — called high-value — free of charge, in machine-readable form, with an API and bulk download. We apply this level of service to this register, whether the law requires it or not.

This register is not designated “high-value” in law: it is a level of service we set ourselves, not a regulatory guarantee. Details for agents · catalogue.

Machine gateway6/96 tools exposed

This is not a label: each line links to the file that proves it, and the ones that are missing are written down too.

This checklist as JSON

An example that works, end to end

The example starts from the get_sample tool, which reads the served sample.

Prompt to give an agent

Use the get_sample tool of california-warn-closure-records.pages.dev and summarise the first three entries.

What the tool returns

id42ce91f562
urlhttps://california-warn-closure-records.pages.dev/search/#r=42ce91f562
fragmenthttps://california-warn-closure-records.pages.dev/d/r/a03.json
nameLeprino Foods Company
cityKings
stateCA
type100 to 249 workers affected
fields{'Record key': '42ce91f562', 'Status': 'Permanent closure notified under the WARN Act', 'Latest closure effective': 'Dec 30, 2026', 'Workers affected': '100 to 249 workers affected', 'Workers affected by permanent closures': '100', 'Locations closed': '1'}

The same register can be queried through the portfolio MCP server (tools describe_register, get_schema, get_sample).

Reading one record by its identifier

The lookup_record tool takes the record key. For 42ce91f562 it reads https://california-warn-closure-records.pages.dev/d/r/a03.json (hash of the identifier: h = 0, then for each character h = (h*31 + character code) modulo 4096; in hexadecimal on 3 digits) and returns the record shown at https://california-warn-closure-records.pages.dev/search/#r=42ce91f562. Checked when the site was built.