us-layoff-warnings
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| WARN_DB | No | Set WARN_DB to point at a different SQLite store; rebuild the bundled store from the bundled CSV any time with python3 build_db.py. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Search 35,031 US WARN layoff and plant-closure notices (27 states + DC, notice dates 1998-2026) from state-published WARN lists, bundled as a static snapshot assembled 2026-11-26. Company-level rows only. 'Recent' is anchored to the snapshot's newest notice date, which every recent response states — this is not a live feed.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| search_layoffsA | Search WARN layoff notices. All filters are optional and compose: company is a case-insensitive substring match on the employer name, state is a 2-letter state code, city is an exact (case-insensitive) site city. Returns {count, workers_affected_total, limit, offset, results} ordered by notice date, newest first. |
| layoffs_by_stateA | Every WARN notice in one state (2-letter code), optionally narrowed to one notice year. Returns the matching count, the workers-affected total for the same filter, and a page of notices ordered by notice date, newest first. |
| layoffs_by_industryA | WARN notices whose published industry text contains the given word or phrase (e.g. 'Manufacturing', 'Health Care', 'Retail'). Industry is the text the state published with the notice and is present on 7,390 of 35,031 rows, so an empty result can mean the state published no industry for its notices, not that no layoffs happened. |
| recent_layoffsA | Notices from the newest N days OF THE SNAPSHOT: notice dates within N days of the dataset's newest notice date (2026-11-20), which the response states as dataset_newest_notice_date. This is a static file assembled 2026-11-26, not a live feed. |
| layoff_countA | Count WARN notices and total workers affected, optionally filtered by state (2-letter code) and/or notice year. With no filters it returns the whole snapshot: 35,031 notices and 3,320,613 workers affected (2,159 rows carry no worker count and add nothing to the total). |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 5 tools
The state filter appears in three separate tools (search_layoffs, layoffs_by_state, layoff_count), and layoff_count duplicates the count/workers_affected_total fields already returned by search_layoffs, so an agent can plausibly pick the wrong entry point. Descriptions do clarify the special cases (industry coverage caveats, static snapshot date), which keeps this from being worse than moderate overlap.
All names are snake_case, but the patterns are mixed: a verb_noun tool (search_layoffs), dimension tools (layoffs_by_state, layoffs_by_industry), an adjective_noun tool (recent_layoffs), and a bare noun+count tool (layoff_count). Readable and domain-coherent, but there is no predictable verb_noun convention an agent can rely on.
Five tools is well within the ideal range for a single read-only dataset. The surface is small and focused, with no filler tools that don't map to a query pattern on the WARN notice data.
The surface covers the main query axes — company substring, state, city, year, industry, recency, and aggregate counts — which is solid coverage for this dataset. Gaps are minor but real: no arbitrary date-range filter, no company-level aggregation or per-employer rollup, and no fetch-by-id for a single notice.