get_train_status
Live train service status for Tokyo-area lines — delays, suspensions, resumptions. Ask 'is the Yamanote Line running?' by line or station name, English or Japanese. Status enum: normal / delayed / suspended / resumed. Cause text relayed from ODPT (English summary for known patterns, else original text + null). Data via ODPT (CC BY 4.0).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "get_train_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Line or station name (English or Japanese), e.g. "Yamanote" or "新宿". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Number of lines. | |
| lines | No | Per-line status: normal / delayed / suspended / resumed, with cause. | |
| query | No | Echo of the query. | |
| stale | No | True if stale. | |
| fetched_at | No | When the snapshot was fetched. | |
| attribution | No | Data source(s), license and provenance — an object, or an array of sources. |