Skip to main content
Glama

osha-compliance-tools

calculate_osha_trir_and_dart

Read-onlyIdempotent

Compute OSHA Total Recordable Incident Rate (TRIR), DART rate, and Lost Time Incident Rate (LTIR) from OSHA 300 log counts and total hours worked.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "total_recordable_cases": "<total_recordable_cases>",
      "dart_cases": "<dart_cases>",
      "total_employee_hours_worked": "<total_employee_hours_worked>"
    },
    "name": "calculate_osha_trir_and_dart"
  }
}

Input Schema

NameRequiredDescriptionDefault
dart_casesYesCases involving days away, restricted work, or job transfer.
lost_time_casesNo
total_recordable_casesYes
total_employee_hours_workedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered and the description need not restate it. What the description does not disclose is the output presentation — the rate base (per 200,000 hours), numeric precision, and whether LTIR is omitted when lost_time_cases defaults to 0 — which matters since there is no output schema.

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?

A single front-loaded sentence with no filler, opening on the action and immediately listing the three computed metrics. It is efficient, though its terseness leaves the gaps in parameters and output format unaddressed.

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?

For a four-parameter calculation tool with no output schema, the definition should say what comes back (a rate value per metric, and its unit basis) and how the optional lost_time_cases affects the response. It covers the purpose adequately but leaves those return-value and optional-parameter questions open.

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

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 25%: only dart_cases is documented, while total_recordable_cases, total_employee_hours_worked, and the optional lost_time_cases (default 0) are bare. The description only loosely maps 'OSHA 300 log counts and total hours worked' to the inputs and never explains which parameter feeds which rate or that LTIR depends on the optional lost_time_cases field, so it does not compensate for the coverage 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?

The description names a specific verb ('Compute') and three specifically named outputs (TRIR, DART, LTIR) plus the input source (OSHA 300 log counts, hours worked). An agent can tell exactly what this tool produces and that it is unrelated to the sole sibling, plan_osha_toolbox_talk_schedule, though the differentiation is incidental rather than stated.

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?

Usage is only implied: the phrase 'from OSHA 300 log counts and total hours worked' signals this is a reporting-period rate calculation, but there is no explicit when-to-use, when-not-to-use, or prerequisite guidance. For a pure deterministic calculator that is largely self-evident, so a middle score is fair rather than harsh.

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