Skip to main content
Glama

OpenInjury

Get a mine controller's record

get_mine_controller
Read-onlyIdempotent

Get one mine controller's record from MSHA open government data. The record sums hours, injuries as reported to MSHA, violations and penalties by year across the mines it held for the most days of each year. It lists the mines it has controlled, showing the first 50 by name and the dates it held each. The tool returns only companies; MSHA controllers that are individual persons have no record here.

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": {
      "controller_id": "<controller_id>"
    },
    "name": "get_mine_controller"
  }
}

Input Schema

NameRequiredDescriptionDefault
controller_idYesMSHA controller ID, as shown on a mine record.

Output Schema

NameRequiredDescriptionDefault
dataNo
notesNo
statusYes
sourcesNo
page_urlNo
release_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover the read-only, idempotent, non-destructive safety profile, and the description adds genuine behavior beyond that: the yearly aggregation dimensions (hours, injuries, violations, penalties), the truncation of the mine list to the first 50 by name, and the limitation that only company controllers have records. That truncation and entity-type restriction are exactly the kind of result-shaping traits an agent needs to know before calling.

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?

Four sentences, each carrying information: source, aggregation logic, returned mine list, and entity-type limitation. The 'as reported to MSHA' clause is slightly wordy but the content is front-loaded and waste-free overall.

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 tool with an output schema and full annotation coverage, the description supplies the aggregation semantics, truncation limit, and entity-type exclusion that structured fields do not express. Nothing essential to correct invocation is missing.

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 description coverage is 100%, so the single controller_id parameter is already fully documented in the schema, including its pattern. The description's phrase 'MSHA controller ID' adds no format or sourcing detail beyond what the schema supplies, so baseline 3 applies.

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?

States a specific verb and resource ('Get one mine controller's record') and elaborates on what that record contains, so the agent knows it is a controller-level lookup rather than a mine-level one. It does not explicitly name a sibling tool it differs from, which keeps it just below the top mark.

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 by the content described: an agent should call it when it has a controller ID and wants that controller's aggregate record. The exclusion of individual-person controllers is a real usage constraint, but there is no explicit when-to-use statement or routing to an alternative tool for those cases.

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