Skip to main content
Glama

layoffs_by_state

Retrieves WARN layoff notices filed in a given US state, optionally filtered by year, and returns the notice count, total workers affected, and a paged list ordered newest first.

Instructions

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.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "state": "<state>"
    },
    "name": "layoffs_by_state"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearNo
limitNo
stateYes
offsetNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden and does well: it discloses the payload shape (matching count, workers-affected total for the same filter, a page of notices) and the sort order (notice date, newest first). It omits error behavior for malformed state codes, maximum permissible page size, and any rate or auth constraints, which keeps it from a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tightly packed sentences, front-loaded with the resource scope, then filters, then return values. No filler, and the count/total/page breakdown in the final sentence carries real information density.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema and no annotations, so the description must do all the work; it covers the primary filter and the return payload but leaves pagination semantics (limit/offset, defaults of 25 and 0) and the fields of an individual notice unexplained. Adequate for a list tool but with clear gaps for a 4-parameter call.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate for all four parameters. It explains state as a 2-letter code and year as an optional narrowing filter, and implies paging via 'a page of notices,' but never explains limit/offset, their defaults, whether year is a string or integer, or how year interacts with notice date.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a concrete resource and scope: 'Every WARN notice in one state (2-letter code), optionally narrowed to one notice year.' An agent can immediately tell this is a state-filtered notice lookup rather than a free-text search. It does not name or contrast with siblings such as layoffs_by_industry or search_layoffs, so it stops short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: the state-scoping and optional year narrowing signal the intended lookup, and the '(2-letter code)' note gives a calling convention. There is no explicit when-to-use, when-not-to-use, or routing to alternatives like search_layoffs or recent_layoffs.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.