Skip to main content
Glama

layoff_count

Count US WARN layoff notices and total workers affected, with optional state and year filters, to quantify layoffs by region or period.

Instructions

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).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "layoff_count"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearNo
stateNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full disclosure burden; it does add real value by stating the snapshot magnitudes (35,031 notices, 3,320,613 workers) and flagging that 2,159 rows with no worker count contribute nothing to the total. However, it omits other behavioral facts an agent would want, such as whether notices are distinct records or how the worker total is aggregated.

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

Conciseness4/5

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

Front-loads the action and resource, then layers filters and default behavior efficiently. The parenthetical numeric detail is useful rather than padding, though the exact figures could be considered slightly verbose for a definition.

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

Completeness4/5

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

No output schema exists, so the description must convey what comes back; it does so by naming the two measures (notice count, workers affected) and illustrating with snapshot totals. Missing only secondary details like the response shape and per-filter granularity.

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

Parameters4/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, and it largely does: it clarifies that state expects a 2-letter code and that year refers to the notice year. It leaves the year's accepted format ambiguous (string type could mean "2023" or a date), which is the main residual gap.

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 specific verb and resource ("Count WARN notices and total workers affected") and scopes it with the optional state/year filters. It clearly reads as an aggregate/count tool versus the sibling breakdown tools, though it never names an alternative to distinguish itself explicitly.

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?

Provides implied usage context by explaining that no filters returns the entire snapshot, which tells the agent the default behavior. It offers no when-to-use versus when-not guidance and does not point to siblings like layoffs_by_state for per-state breakdowns, so selection among the family is left to inference.

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