stl_snapshot_fetch
Download a transit feed (e.g., GTFS or realtime) into the local snapshot store, using conditional requests to skip re-downloading unchanged data. Specify the source and optionally force a new fetch.
Instructions
Download a feed from the network into the local snapshot store.
Uses conditional requests, so an unchanged feed returns unchanged=true and costs a 304 rather than re-downloading. The GTFS zip is ~3.5 MB and expands to ~29 MB, so this can take a few seconds.
Args: source: 'metro_gtfs', 'metro_rt_trips', 'metro_rt_vehicles', 'metro_rt_alerts'. force: bypass the conditional-request cache.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "stl_snapshot_fetch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | ||
| source | No | metro_gtfs |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |