Skip to main content
Glama

OpenInjury

Get a mine's record

get_mine
Read-onlyIdempotent

Get one mine's record from MSHA open government data by year since 2016. The record includes operator employee hours, operator and contractor employee injuries as reported to MSHA with degree codes 01 to 06, the injury rate per 200,000 hours for a full year with 20,000 hours or more, inspections and inspection hours, violations with significant and substantial and contested counts, with vacated ones left out, proposed, current and paid penalties, controller and operator history with dates, and the source file of every figure.

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": {
      "mine_id": "<mine_id>"
    },
    "name": "get_mine"
  }
}

Input Schema

NameRequiredDescriptionDefault
mine_idYesMSHA mine ID, up to seven digits.

Output Schema

NameRequiredDescriptionDefault
dataNo
notesNo
statusYes
sourcesNo
page_urlNo
release_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.3/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive, and closed-world behavior, yet the description adds real data semantics: injury degree codes 01–06, the 200,000-hours rate restricted to full years with 20,000+ hours, and the explicit rule that vacated violations are excluded. It does not address behavior for an invalid or unknown mine_id, which caps it below 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded in the first clause, but the rest is one long sentence that enumerates most of the returned fields. Because an output schema exists, that field inventory largely restates structured data and dilutes the operational guidance.

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?

With an output schema present, the returned fields did not need to be enumerated; the space would be better spent on how to obtain a mine_id and how this differs from search_mines or get_mine_controller. The data-source and exclusion rules are complete enough that an agent can call it, but the guidance gaps and the unbacked 'by year' framing leave it only adequate.

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 is fully documented in the schema, so the baseline is 3. The description adds a 'by year since 2016' framing but exposes no year parameter, which introduces mild ambiguity about whether the record is time-series or a single snapshot.

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 opens with a specific verb and resource, 'Get one mine's record from MSHA open government data,' and adds a scope qualifier ('since 2016'). It is clearly distinguishable from aggregate siblings like search_mines or get_industry_benchmark, though it never explicitly names which sibling to use instead.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not guidance and no mention of alternatives, such as searching with search_mines first to obtain a mine_id. The only contextual hint is the data source and the 'since 2016' time scope, which an agent must infer usage from.

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