search_routes
Pack: transit-land · Endpoint: https://gateway.pipeworx.io/transit-land/mcp
Search routes by name, type, agency, or location. route_type: ${ROUTE_TYPES}.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
query | string | no | Free-text search by route name/long name |
route_type | number | no | GTFS route_type code |
agency_id | string | no | |
operator_id | string | no | Transitland operator onestop_id |
lat | number | no | |
lon | number | no | |
radius_m | number | no | |
limit | number | no |
Example call
Arguments
{
"name": "Express",
"route_type": 3
}
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":"search_routes","arguments":{"name":"Express","route_type":3}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('search_routes', {
"name": "Express",
"route_type": 3
});
More examples
{
"operator_id": "o-9q8yvz-bart",
"lat": 37.7749,
"lon": -122.4194,
"radius_m": 2000
}
Response shape
| Field | Type | Description |
|---|---|---|
meta | object | |
routes | array | List of matching routes |
Full JSON Schema
{
"type": "object",
"properties": {
"meta": {
"type": "object",
"properties": {
"after": {
"type": "number"
},
"next": {
"type": "string"
}
}
},
"routes": {
"type": "array",
"items": {
"type": "object",
"properties": {
"agency": {
"type": "object",
"properties": {
"agency_id": {
"type": "string"
},
"agency_name": {
"type": "string"
},
"id": {
"type": "number"
},
"onestop_id": {
"type": "string"
}
},
"description": "Operator/agency details"
},
"continuous_drop_off": {
"type": "null"
},
"continuous_pickup": {
"type": "null"
},
"feed_version": {
"type": "object",
"properties": {
"feed": {
"type": "object",
"properties": {
"id": {
"type": "number"
},
"onestop_id": {
"type": "string"
}
}
},
"fetched_at": {
"type": "string"
},
"id": {
"type": "number"
},
"sha1": {
"type": "string"
}
}
},
"id": {
"type": "number",
"description": "Transitland onestop_id"
},
"onestop_id": {
"type": "string"
},
"route_color": {
"type": "string"
},
"route_desc": {
"type": "string"
},
"route_id": {
"type": "string",
"description": "GTFS route_id"
},
"route_long_name": {
"type": "string"
},
"route_short_name": {
"type": "string"
},
"route_sort_order": {
"type": "number"
},
"route_text_color": {
"type": "null"
},
"route_type": {
"type": "number",
"description": "GTFS route_type code"
},
"route_url": {
"type": "string"
}
}
},
"description": "List of matching routes"
}
},
"description": "Search results for transit routes"
}
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.