bus_service_alerts
Check Carris Metropolitana bus service alerts by line or stop to identify detours, works, strikes, or unserved stops before recommending a trip.
Instructions
Service alerts (detours, works, strikes, stops not served) for Carris Metropolitana.
Use before recommending a trip, or when the user asks "is line X disrupted?". Filter by line and/or stop; with no filter, returns all current alerts (there are often ~100). Alerts are mostly published in Portuguese only.
Args: line_id: 4-digit line number, e.g. "4407". stop_id: 6-digit stop id, e.g. "160584". include_upcoming: Also return alerts that start in the future (default True). language: Preferred language ("pt" or "en"); falls back to what exists. limit: Max alerts to return (default 20, max 100).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| line_id | No | ||
| stop_id | No | ||
| language | No | pt | |
| include_upcoming | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||