rail_accident_summary

Pack: fra-rail-safety · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)

No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/rail_accident_summary for the schema, then POST the same URL with its arguments for the data.

Counts and totals of FRA-reported US railroad accidents or grade crossing incidents, grouped by railroad, cause, accident type,

Parameters

NameTypeRequiredDescription
datasetstringno”accidents” = rail equipment accidents (Form 54, default); “crossings” = highway-rail grade crossing incidents (Form 57).
group_bystringyesGrouping. “cause” and “accident_type” apply to accidents; “highway_user” to crossings; the rest to both.
yearnumbernoRestrict to one calendar year.
from_yearnumbernoRestrict to this year and later (use with group_by “year” for a trend).
statestringnoRestrict to one US state (code or name).
railroadstringnoRestrict to one railroad (reporting-mark code or name substring).
limitnumbernoMax groups (default 20, max 100).

Example call

Arguments

{
  "group_by": "railroad",
  "year": 2023,
  "limit": 5
}

curl

curl -X POST https://gateway.pipeworx.io/fra-rail-safety/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"rail_accident_summary","arguments":{"group_by":"railroad","year":2023,"limit":5}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('rail_accident_summary', {
  "group_by": "railroad",
  "year": 2023,
  "limit": 5
});

Connect

Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://pipeworx.io/mcp"
    }
  }
}
Connect to just the fra-rail-safety pack
{
  "mcpServers": {
    "fra-rail-safety": {
      "url": "https://gateway.pipeworx.io/fra-rail-safety/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build October 14, 2026