plan_traction
Assign fleet locomotives to route runs to minimize changes, flagging runs as uncovered when no compatible locomotive exists.
Instructions
Assign locomotives from a fleet to a route's runs, greedily minimising changes.
Call find_route first and pass its route as `route`, or pass `section_ids`, same as
check_train_compatibility. Give at least one locomotive via `fleet_ids` (ids from
data/locomotives.yaml) or `custom_locomotives`. A run with no locomotive able to cover
it (unknown/non-electrified energy system, or unmatched signalling) is uncovered, not
an error.
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": {
"input": "<input>"
},
"name": "plan_traction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uncovered | Yes | ||
| assignments | Yes | ||
| attribution | No | Data: European Union Agency for Railways, Register of Infrastructure (RINF), CC BY 4.0 | |
| change_points | Yes |