Skip to main content
Glama

Osha Establishment Summary

osha_establishment_summary
Read-onlyIdempotent

Rolled-up OSHA enforcement history for an establishment: how many inspections, how many violations, total initial and current penalty amounts across all of them, the most recent inspection date, and the distinct establishment names OSHA has on file matching the search (chains and renamed sites often appear under several). Answers "has OSHA fined X", "total OSHA penalties for X", "how many times has OSHA inspected X", "OSHA enforcement summary for X". Narrower and faster to read than paging through osha_inspections yourself. Example: osha_establishment_summary({ name: "Walmart", state: "AR" }). Live US Dept. of Labor data, refreshed daily; capped at the 50 most recent inspections per establishment, narrow with state for a complete count on a national chain.

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": {
      "name": "Walmart",
      "state": "TX"
    },
    "name": "osha_establishment_summary"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesEstablishment / company name, or a fragment of it. Matched as an upper-cased substring.
stateNo2-letter US state postal code to narrow to one state, e.g. "AR".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior4/5

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

Goes well beyond the readOnly/idempotent/openWorld annotations by disclosing the 50-inspection cap, the data source and refresh cadence (live US Dept. of Labor, refreshed daily), and the substring matching behavior that causes chains and renamed sites to appear under several names. The one gap is that it does not say what the response shape looks like (field names, ordering), though for an aggregation whose fields are listed inline this is a minor omission.

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 aggregation scope before the routing guidance and the cap, which is the right order. The four quoted example questions are slightly redundant with each other and with the prose, but they are cheap and aid intent matching, so nothing is seriously wasteful.

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?

With no output schema and only two simple parameters, the description carries the full explanatory burden and does: it names every returned aggregate, the matching and capping rules, and the data source. An agent has everything needed to decide to call it and to interpret the result.

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 name as an upper-cased substring match and state as a 2-letter code, making 3 the baseline. The description adds practical meaning beyond that: a worked example call and the non-obvious operational rule that omitting state truncates a national chain's count to the 50 most recent inspections, which changes how an agent should set the parameter.

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?

States a specific verb-and-resource pair (rolled-up OSHA enforcement history for an establishment) and enumerates exactly what is aggregated: inspection counts, violation counts, initial/current penalties, most recent date, and matched establishment names. It explicitly contrasts with the sibling osha_inspections, so an agent can distinguish them without opening either schema.

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?

Gives concrete selection criteria in the form of the questions it answers ("has OSHA fined X", "total OSHA penalties for X") and names the alternative (paging through osha_inspections) with the reason to prefer this one: narrower and faster to read. It also states the limiting condition (50 most recent inspections) and the remedy (narrow with state), which is explicit when-to-use and when-to-adjust guidance.

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.