ALL AI FORMS

ALL AI FORMS / Guides / Workplace safety documents

Generate workplace safety documents

Prepare a job hazard analysis, a workplace emergency action plan, or an incident investigation document from structured information. Each tool returns a fillable PDF and a Word file. It's a starting point, not a certification of regulatory compliance.

Who it is for: safety managers, facility operators, contractors and safety software developers. The output is for review and completion by qualified, competent people. 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.

The tools

  • generate_job_hazard_analysis — 250 credits ($0.25). Breaks a job into steps, lists the hazards of each step and records the controls, using the task-step-hazard-control method in OSHA Publication 3071. Required input: fields (for example org, job, loc, date, ppe). Optional rows.steps holds each step, hazard, consequence, controls and who is responsible.
  • generate_emergency_action_plan — 250 credits ($0.25). Organizes a site plan around the six minimum elements in OSHA 29 CFR 1910.38(c): reporting, evacuation, critical operations, accounting for employees, rescue and medical duties, and who to contact. Required input: fields (for example org, site, report, evac, account). Optional rows.assembly lists assembly areas.
  • generate_incident_investigation — 250 credits ($0.25). Documents what happened, the timeline, contributing factors, root causes and corrective actions, following the approach in OSHA's incident investigation guide for employers. Required input: fields (for example org, case, dt, loc, type, desc, immed). type is one of Injury or illness, Property damage, Near miss, Vehicle, Environmental release, or Other.

The same documents can also be filled in in the browser at Safety and business tools (free preview; paid PDF and Word there is a separate one-time price per tool).

How to run one

  1. Collect the facility, job or incident information you already have.
  2. Select generate_job_hazard_analysis, generate_emergency_action_plan or generate_incident_investigation.
  3. Provide the supported fields. Leave out what you do not know; the document keeps a blank line for it.
  4. Generate the document and have a qualified person review and complete it before use.

Price

250 credits ($0.25) per successful call for each of the three tools. Failed or empty calls are free. The Starter pack is $0.99 for 1,200 credits (4 of these documents). Keyless callers get 3 free trial calls per network per UTC day, shared across paid tools. Trial documents are marked PREVIEW.

Buy the $0.99 Starter packAll AI Data API docsBrowser safety tools

Unused Data API credits are refundable within 30 days of purchase, as stated in the All AI Data API terms.

Call a job hazard analysis with curl

curl -s -X POST https://allai-api.allaihq.workers.dev/v1/tools/generate_job_hazard_analysis \
  -H 'content-type: application/json' \
  -d '{"fields": {"org": "Example Warehouse Co", "job": "Unload a pallet with a pallet jack", "loc": "Receiving dock", "date": "2026-12-03", "rev": "New", "analyst": "Warehouse supervisor", "ppe": ["Hard hat", "Safety-toe footwear", "Gloves"]}, "rows": {"steps": [{"step": "Inspect the pallet jack", "hazard": "Damaged wheels or forks", "conseq": "Load shift or loss of control", "controls": "Do not use damaged equipment; tag it out", "who": "Operator"}, {"step": "Move the pallet to the staging area", "hazard": "Struck-by, pinch points", "conseq": "Foot or hand injury", "controls": "Clear the path, keep feet clear of wheels, walk the load", "who": "Operator"}]}, "format": "pdf"}'

Call an emergency action plan with curl

curl -s -X POST https://allai-api.allaihq.workers.dev/v1/tools/generate_emergency_action_plan \
  -H 'content-type: application/json' \
  -d '{"fields": {"org": "Example Warehouse Co", "site": "Receiving building, 100 Main Street, Example City, KS 66000", "emp": "25", "eff": "2026-12-03", "coord": "Warehouse supervisor", "report": "Call 911, then tell the supervisor. Pull the nearest fire alarm station.", "evac": "Full evacuation to the posted assembly point in the front lot.", "account": "The area lead takes a head count and reports to the supervisor."}, "rows": {"assembly": [{"area": "Receiving building", "point": "Front parking lot, north end", "lead": "Warehouse supervisor"}]}, "format": "pdf"}'

An incident investigation uses the same pattern at POST /v1/tools/generate_incident_investigation. Example fields: {"fields": {"org": "Example Warehouse Co", "case": "INC-1001", "dt": "2026-12-01 14:30", "loc": "Receiving dock", "type": "Near miss", "desc": "A pallet shifted while being moved with a pallet jack. No injury.", "immed": "Stopped work and secured the load.", "lead": "Warehouse supervisor"}, "format": "pdf"}.

Call it from an MCP client

Client config (the three tools are on this server):

claude mcp add --transport http allai-api https://allai-api.allaihq.workers.dev/mcp

Cursor or VS Code (.mcp.json or mcp.json):
{
  "mcpServers": {
    "allai-api": {
      "type": "http",
      "url": "https://allai-api.allaihq.workers.dev/mcp"
    }
  }
}

A tools/call for the job hazard analysis:

curl -s -X POST https://allai-api.allaihq.workers.dev/mcp \
  -H 'content-type: application/json' \
  -H 'accept: application/json, text/event-stream' \
  -d '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "generate_job_hazard_analysis", "arguments": {"fields": {"org": "Example Warehouse Co", "job": "Unload a pallet with a pallet jack", "loc": "Receiving dock", "date": "2026-12-03", "rev": "New", "analyst": "Warehouse supervisor", "ppe": ["Hard hat", "Safety-toe footwear", "Gloves"]}, "rows": {"steps": [{"step": "Inspect the pallet jack", "hazard": "Damaged wheels or forks", "conseq": "Load shift or loss of control", "controls": "Do not use damaged equipment; tag it out", "who": "Operator"}, {"step": "Move the pallet to the staging area", "hazard": "Struck-by, pinch points", "conseq": "Foot or hand injury", "controls": "Clear the path, keep feet clear of wheels, walk the load", "who": "Operator"}]}, "format": "pdf"}}}'

Live schemas: https://allai-api.allaihq.workers.dev/v1/tools. Official OSHA sources are listed with each tool. Contact ops@allaiforms.com.