Skip to main content
Glama
RCA-MCP Connector

RCA-MCP Connector

rca_safety_incident_investigate

Investigate workplace safety incidents in OSHA Fatal Four hazard categories using causal root cause analysis or fault tree methods to identify root causes and confidence.

Instructions

Pro+ plan required. Causal RCA on a workplace safety incident, scoped to one of OSHA's construction "Fatal Four" hazard categories (falls, struck-by, caught-in/between, electrocution) via a dedicated "safety" category framework, or a fault tree when the failure logic is already known. witness_statements is accepted as direct input only -- it is not written to any persisted case, since the retention/redaction policy for that kind of data is a separate, still-open decision.

Use this specifically for one of the 4 OSHA hazard categories named above; for a structural (non-safety) building failure, use rca_structural_investigate instead, or rca_8d_root_cause_analyze if the investigation is already being tracked as an 8D case.

Args: params (SafetyIncidentInvestigateInput): token, client_id, hazard_category, site_conditions, witness_statements, method, and the method's own fields (tree+basic_event_probs / causes)

Returns: str: JSON RCAResult (root_causes, confidence_overall, explanation) plus a disclaimer, or a bad_input error

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": {
      "params": "<params>"
    },
    "name": "rca_safety_incident_investigate"
  }
}

Input Schema

NameRequiredDescriptionDefault
paramsYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv4.3.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations declare non-read-only, non-idempotent, closed-world, non-destructive, so the description's added context is genuinely useful: Pro+ plan requirement, a returned JSON RCAResult plus disclaimer and a bad_input error path, and the explicit data-handling note that witness_statements is direct input only and never persisted. The gap is that it never says what state IS written (the non-readOnly, non-idempotent hints imply persistence of the analysis), so it doesn't fully close the mutation story.

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 plan gate and the core purpose in two tight opening sentences, then routes to alternatives. Slightly padded by the editorial aside about the retention/redaction policy being 'a separate, still-open decision', which restates the same non-persistence point twice.

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?

Complete enough for a single-params analysis tool: method selection rationale, hazard scope, sibling routing, plan prerequisite, data-handling caveat, and return shape are all present, and an output schema exists so return fields needn't be spelled out. The one missing piece is what gets persisted when the tool runs, which matters given the mutation annotations.

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?

The Args block enumerates all params and adds real meaning beyond the schema: witness_statements is accepted but not persisted, causes are auto-seeded from the hazard_category's OSHA sub-causes when omitted, and tree/basic_event_probs apply only to the fault_tree method. The remaining fields (token, client_id, site_conditions, hazard_category enum values) are only listed, not elaborated, holding it below 5.

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 ('Causal RCA on a workplace safety incident') plus its exact scope: the OSHA construction Fatal Four hazard categories via a dedicated safety framework, or a fault tree. Adds method options (fault_tree/fishbone) and plan gating, so the agent knows precisely what this tool computes and how it differs from rca_structural_investigate.

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 explicit routing rules: 'Use this specifically for one of the 4 OSHA hazard categories named above', then names rca_structural_investigate for non-safety building failure and rca_8d_root_cause_analyze if the case is already 8D. That is a when/when-not plus named alternatives, which is the top of the scale.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools