Get STPT service alerts
get_alertsRetrieve current or historical STPT service alerts, filtered by stop ID or line. Returns only alerts active at the current instant when active_only is enabled.
Instructions
Get current or historical STPT service alerts. Filters by stop ID and/or line when supplied. Active periods are evaluated in Europe/Bucharest.
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": "get_alerts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | No | Optional line filter. | |
| limit | No | Maximum number of alerts. | |
| stop_id | No | Optional STPT stop ID. | |
| active_only | No | Return only alerts active at the current instant. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | No | ||
| count | Yes | ||
| error | No | Structured failure, if any. | |
| alerts | No | ||
| status | Yes | Overall result status. | |
| stop_id | No | ||
| provenance | No | Source and freshness metadata. | |
| active_only | Yes |