Skip to main content
Glama

OpenInjury

Compare worksites

compare_worksites
Read-onlyIdempotent

The tool puts two to four worksites side by side. It shows the latest figures filed with OSHA, the three-year rate with its range, and the BLS national rate. It lists worksites in the order given, never by rate. When two ranges overlap, the answer says the figures do not show a difference.

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": {
      "site_ids": "<site_ids>"
    },
    "name": "compare_worksites"
  }
}

Input Schema

NameRequiredDescriptionDefault
site_idsYesTwo to four worksite ids (site_id).

Output Schema

NameRequiredDescriptionDefault
dataNo
notesNo
statusYes
sourcesNo
page_urlNo
release_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, closed-world), but the description adds substantive behavior the annotations cannot: output ordering follows input order, and overlapping three-year ranges produce an explicit "no difference shown" verdict. That interpretation rule materially changes how an agent should read and report results. It stops short of mentioning failure modes (e.g., invalid or missing site ids).

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

Conciseness5/5

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

Four short sentences, front-loaded with what the tool does, then output contents, then ordering, then the overlap caveat. No sentence is redundant or restates the title.

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?

An output schema exists, so return-value explanation is unnecessary, and the description still supplies the key interpretive rule for overlapping ranges. For a single-parameter read-only tool the remaining gap (behavior on unresolvable ids) is minor.

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% and the single parameter already documents the two-to-four range; the description echoes the same cardinality without adding id format, ordering, or error semantics. Baseline 3 applies since the schema carries the parameter burden.

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?

Names a specific verb and resource ("puts two to four worksites side by side") and scopes the output content (OSHA figures, three-year rate with range, BLS national rate). An agent can distinguish this comparison tool from lookup siblings such as get_worksite or search_worksites 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 Guidelines3/5

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

Implies usage via the comparison framing and the two-to-four cardinality, and explicitly rules out one interpretation ("lists worksites in the order given, never by rate"). However, it never says when to prefer this over get_worksite or search_worksites for a single site, so the agent must infer the boundary from sibling names.

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