Skip to main content
Glama

OpenInjury

Get OSHA inspections

get_inspections
Read-onlyIdempotent

OSHA lists inspections opened since 2012 for one worksite or by year across one employer's worksites. For one worksite, the tool returns the latest 25 inspections with totals. It returns inspection type, citation items by class (serious, willful, repeat, other), initial and current penalties, and whether citations are contested or final. It includes only inspections whose name and street address match the worksite. A contested or non-final citation is OSHA's allegation, not a finding.

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": "get_inspections"
  }
}

Input Schema

NameRequiredDescriptionDefault
site_idNoThe site_id from search_worksites.
employer_idNoThe employer_id from a worksite record.

Output Schema

NameRequiredDescriptionDefault
dataNo
notesNo
statusYes
sourcesNo
page_urlNo
release_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, it discloses the 25-inspection cap with totals, the inclusion rule (name and street address must match the worksite), and the important caveat that contested or non-final citations are allegations rather than findings. Those are substantive behavioral facts an agent could not infer from 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 scope, then return shape, then the matching filter and legal caveat — a logical progression with no filler sentences. It does re-enumerate return fields that the output schema already covers, a minor redundancy.

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?

It is strong on return content and inclusion rules, and the output schema covers the response shape. However, with zero required parameters it never says what happens if neither site_id nor employer_id is supplied, nor which one wins if both are given — a real gap for an agent deciding how to call it.

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 coverage is 100%, so both parameters are already documented, making 3 the baseline. The description maps each parameter to a mode, but the 'by year across one employer's worksites' framing references a year dimension that no parameter exposes, which muddies rather than sharpens semantics.

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?

The description uses a specific verb and resource ('OSHA lists inspections') and immediately scopes it to two modes: one worksite, or by year across one employer's worksites. It also names the upstream source ('the site_id from search_worksites'), which lets an agent place this tool in the sibling chain without opening another schema.

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

Usage Guidelines4/5

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

It clearly states the two selection modes and that site_id comes from search_worksites, giving an agent enough to choose the right parameter. It stops short of explicit exclusions — e.g., when to prefer get_severe_injuries or get_worksite instead — so guidance is clear but not fully routed.

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.

Resources