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
| Name | Type | Required | Description |
|---|---|---|---|
dataset | string | no | ”accidents” = rail equipment accidents (Form 54, default); “crossings” = highway-rail grade crossing incidents (Form 57). |
group_by | string | yes | Grouping. “cause” and “accident_type” apply to accidents; “highway_user” to crossings; the rest to both. |
year | number | no | Restrict to one calendar year. |
from_year | number | no | Restrict to this year and later (use with group_by “year” for a trend). |
state | string | no | Restrict to one US state (code or name). |
railroad | string | no | Restrict to one railroad (reporting-mark code or name substring). |
limit | number | no | Max 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.