departures_at_stop
Pack: transit-land · Endpoint: https://gateway.pipeworx.io/transit-land/mcp
Upcoming departures from a stop. stop_id is the Transitland onestop_id (e.g. “s-9q8yvz3w7-stopname”).
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
stop_id | string | yes | Transitland onestop_id for the stop |
service_date | string | no | YYYY-MM-DD (default today) |
start_time | string | no | HH:MM:SS |
end_time | string | no | HH:MM:SS |
Example call
Arguments
{
"stop_id": "s-9q8yvz3w7-marketst",
"service_date": "2024-01-15",
"start_time": "08:00:00",
"end_time": "09:30:00"
}
curl
curl -X POST https://gateway.pipeworx.io/transit-land/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"departures_at_stop","arguments":{"stop_id":"s-9q8yvz3w7-marketst","service_date":"2024-01-15","start_time":"08:00:00","end_time":"09:30:00"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('departures_at_stop', {
"stop_id": "s-9q8yvz3w7-marketst",
"service_date": "2024-01-15",
"start_time": "08:00:00",
"end_time": "09:30:00"
});
Response shape
| Field | Type | Description |
|---|---|---|
departures | array | List of upcoming departures |
Full JSON Schema
{
"type": "object",
"description": "Upcoming departures from a stop",
"properties": {
"departures": {
"type": "array",
"description": "List of upcoming departures",
"items": {
"type": "object",
"properties": {
"arrival_time": {
"type": "string",
"description": "Arrival time HH:MM:SS"
},
"departure_time": {
"type": "string",
"description": "Departure time HH:MM:SS"
},
"stop_sequence": {
"type": "number",
"description": "Stop sequence in trip"
},
"trip": {
"type": "object",
"description": "Trip details",
"properties": {
"id": {
"type": "string"
},
"trip_id": {
"type": "string"
},
"route_id": {
"type": "string"
}
}
},
"route": {
"type": "object",
"description": "Route details"
}
}
}
}
}
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"transit-land": {
"url": "https://gateway.pipeworx.io/transit-land/mcp"
}
}
}
See Getting Started for client-specific install steps.