Skip to main content
Glama

All AI LLC API: documents and calculators

Root-Cause Analysis (PDF and Word)

generate_root_cause_analysis
Read-onlyIdempotent

Work a problem down to its root causes with 5 whys and a fishbone (6M) breakdown, then record corrective and preventive actions and how you will check they worked. Returns a fillable PDF and a Word file built by the same engine as https://allaiforms.com/tools/root-cause-analysis/ . This tool helps qualified, competent people organize their own safety paperwork. It does not certify compliance with OSHA, NFPA, state-plan, insurer or local fire-code requirements, and it does not replace a site-specific review by a qualified person. Check the official sources listed with it. PAID: 250 credits ($0.25) per successful call from one-time prepaid credits; send Authorization: Bearer <api_key>. Failed or empty calls are free. Keyless callers get 3 free trial calls per day.

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": {
      "fields": "<fields>"
    },
    "name": "generate_root_cause_analysis"
  }
}

Input Schema

NameRequiredDescriptionDefault
rowsNoTable rows by table id.
fieldsYesForm fields by id. Leave out what you do not know; the document keeps a blank line for it.
formatNoOutput files. pdf is fillable.both
api_keyNoOptional. Only for clients that cannot send an Authorization header.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior5/5

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

The annotations already declare read-only, idempotent, closed-world, non-destructive behavior. The description adds crucial operational context beyond annotations: output formats, pricing at 250 credits per successful call, Authorization header requirement, free failed/empty calls, and three free keyless trial calls per day.

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?

The description is front-loaded with purpose and methodology, then follows with output, compliance disclaimer, and payment terms in a logical order. It is somewhat long due to legal and pricing details, but those sentences are relevant to correct invocation.

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 complex nested-form generator with no output schema, the description explains the method, output files, cost, and authentication behavior well. It does not explicitly restate required 'fields' handling or the schema note about leaving unknown values blank, but those details are sufficiently covered in the schema.

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 schema already documents all parameters and nested row fields in detail. The description adds conceptual context that CAPA and verification are recorded, but it does not add structural or required-vs-optional guidance beyond what the schema provides.

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: generate a root-cause analysis using 5 whys and a fishbone (6M) breakdown, plus corrective/preventive actions and verification. It is clearly distinct from generic report generation, though it does not explicitly contrast itself with related siblings such as incident investigation or near-miss reporting.

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?

The description gives clear context for using the tool on a problem root-cause analysis, but it provides no explicit when-to-use or when-not-to-use guidance versus related sibling tools. Usage is implied by the methodology rather than by routing guidance.

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.