Skip to main content
Glama

Osha Inspection

osha_inspection
Read-onlyIdempotent

One OSHA inspection by its activity number (from osha_inspections or osha_establishment_summary): the inspection record plus every violation cited, standard cited, violation type (Serious/Willful/Repeat/Other-than-Serious), issuance and abatement dates, instances, employees exposed, and BOTH the initial and current (post-contest/settlement) penalty amounts, plus the summed totals. Answers "what violations came out of inspection X", "what did OSHA fine them for this inspection", "penalty amounts for activity number X". Example: osha_inspection({ activity_nr: 348458035 }). Live US Dept. of Labor data.

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": {
      "activity_nr": 348458035
    },
    "name": "osha_inspection"
  }
}

Input Schema

NameRequiredDescriptionDefault
activity_nrYesThe numeric OSHA inspection activity number, e.g. 348458035. Get it from osha_inspections or osha_establishment_summary.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world, so the safety profile is covered. The description adds meaningful content beyond that: it discloses that both initial and current post-contest/settlement penalties are returned alongside summed totals, and that data is live US Dept. of Labor. It does not mention lookup-failure behavior or rate/permission constraints.

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 the core identity of the tool, then prerequisites, then answerable questions. The long enumerated field list is informative but makes the first sentence unwieldy, and the example call duplicates the schema's example array.

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?

For a single-parameter read-only tool with no output schema, the description carries the return-value burden and does so thoroughly — inspection record, violations, standards, dates, exposures, and both penalty figures. Only minor gaps remain, such as what happens when the activity number is unknown.

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% and the single parameter already documents its type and example. The description restates the sourcing rule and repeats the example call, adding little beyond the schema. Baseline 3 is appropriate when the schema does the heavy lifting.

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?

Opens with a specific verb and resource — retrieving ONE OSHA inspection by activity number — and immediately distinguishes itself from the list-based siblings osha_inspections and osha_establishment_summary. An agent can tell exactly what this returns without opening the 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?

States the prerequisite source of the identifier ('from osha_inspections or osha_establishment_summary') and enumerates the questions it answers, which effectively routes the agent here after a list call. It lacks an explicit 'do not use when...' clause for edge cases like summary-level vs. per-inspection questions, so it falls just short of a 5.

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.