Skip to main content
Glama

Osha Inspections

osha_inspections
Read-onlyIdempotent

OSHA inspections for a named establishment and/or state, the enforcement record OSHA actually took, not the standards. Answers "has OSHA inspected X", "list OSHA inspections for X", "OSHA inspections in state X since date Y". Returns each inspection's address, NAICS code, whether it was a safety or health inspection, the inspection type (Accident / Complaint / Programmed / Referral / Fatality-Catastrophe / etc.), scope, open/close dates, and open-vs-closed status. Establishment matching is a substring match against OSHA's name on file (case-insensitive on input, matched upper-case), a shorter fragment of the name finds more. Requires establishment or state (or both); since narrows to inspections opened after that date. Example: osha_inspections({ establishment: "Walmart", state: "TX" }); osha_inspections({ establishment: "Moran Towing", since: "2020-01-01" }). Live US Dept. of Labor data, refreshed daily. Use osha_inspection with the returned activity_nr for violations and penalties.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "state": "TX",
      "establishment": "Walmart"
    },
    "name": "osha_inspections"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax inspections to return, 1-25 (default 10).
sinceNoOnly inspections opened after this date, YYYY-MM-DD, e.g. "2020-01-01".
stateNo2-letter US state postal code of the inspected site, e.g. "TX", "NY".
establishmentNoEstablishment / company name, or a fragment of it, e.g. "Walmart", "Moran Towing". Matched as an upper-cased substring.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / limit / description
      Previous value: -"Max inspections to return, 1–25 (default 10)."New value: +"Max inspections to return, 1-25 (default 10)."
  2. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations cover read-only/idempotent/open-world safety, so the description is free to add the traits that actually matter: substring name matching against OSHA's on-file name with the counterintuitive note that a shorter fragment finds more, and daily-refreshed live Dept. of Labor data. That matching nuance is a behavioral detail an agent could easily get wrong and is not present in the annotations.

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-loaded with purpose, then inputs, then examples, then the hand-off to a sibling — a sensible ordering with no filler sentences. The enumerated return fields are somewhat long but each is informative given there is no output schema.

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

Completeness5/5

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

Covers what it returns (field-by-field), matching behavior, data freshness, input constraints, and the next-step tool. With no output schema in the definition, listing returned fields is necessary rather than redundant, and nothing an agent needs to call it correctly is missing.

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 coverage is 100%, so the schema already documents each parameter's format. The description still adds value by stating that establishment or state is required (the schema shows zero required parameters, so this is genuinely new) and by explaining the matching semantics and the practical consequence of a shorter fragment.

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

Purpose5/5

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

Names a specific resource (OSHA inspections / enforcement records) and explicitly scopes it away from the standards and from violation/penalty data. The 'enforcement record OSHA actually took, not the standards' line and the sample questions ('has OSHA inspected X') make the tool's identity unmistakable versus siblings like osha_inspection or osha_standard.

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

Usage Guidelines5/5

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

States the input requirement (establishment or state, or both), how `since` narrows results, and two concrete invocation examples. It also routes the agent onward: 'Use osha_inspection with the returned activity_nr for violations and penalties' clearly names the follow-up tool and the condition that selects it.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.