Skip to main content
Glama

All AI LLC API: documents and calculators

Workplace Incident Investigation (PDF and Word)

generate_incident_investigation
Read-onlyIdempotent

Document what happened, the timeline, witness accounts, contributing factors, root causes and corrective actions, following the approach in OSHA's incident investigation guide for employers. Returns a fillable PDF and a Word file built by the same engine as https://allaiforms.com/tools/incident-investigation/ . 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_incident_investigation"
  }
}

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.6/5.0
Behavior4/5

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

Annotations already establish a safe, idempotent, non-destructive read operation, so the safety bar is met. The description adds genuinely non-annotated behavior: paid 250 credits per successful call, Bearer auth requirement, failed/empty calls free, and a 3-per-day keyless trial. It also notes the output is fillable PDF/DOCX, which is valuable since no output schema exists; only minor gaps remain (e.g., whether the credit is charged before or after generation).

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?

The opening sentence front-loads the content well, but the description then mixes a marketing URL reference, a lengthy compliance disclaimer, and pricing/auth/trial details in one block. The 'helps qualified, competent people organize their own safety paperwork' sentence and the repeated non-certification caveat add bulk without changing agent behavior.

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-schema generation tool with no output schema, the description covers the essentials: what content is collected, what format is returned, and the cost/auth model. The main missing piece is sibling disambiguation against adjacent OSHA document generators and root-cause tools.

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% with rich per-field and nested row definitions, so the schema carries parameter meaning. The description adds no parameter-level guidance beyond general content categories (timeline, witnesses, etc.), which is the baseline expectation when coverage is complete.

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 names a specific resource and content set (timeline, witness accounts, contributing factors, root causes, corrective actions) and the output artifacts (fillable PDF and Word file). It never distinguishes itself from close siblings such as generate_root_cause_analysis or generate_near_miss_report, whose scope overlaps with the 'root causes' and 'what happened' content it generates.

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?

It anchors the tool to OSHA's incident investigation approach and explicitly disclaims compliance certification, which implies when the tool is appropriate. However, there is no explicit routing guidance for when to use this versus generate_root_cause_analysis or generate_near_miss_report, leaving the agent to infer the distinction.

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.