Implementation
gradeNot graded
gradeNot graded
search_journeysAnswer
Search deterministic ReliableRail journey inventory.
View tool JSON
{
"name": "search_journeys",
"kind": "answer",
"impl": "imperative",
"description": "Search deterministic ReliableRail journey inventory.",
"inputSchema": {
"type": "object",
"properties": {
"origin": {
"type": "string"
},
"destination": {
"type": "string"
},
"direction": {
"type": "string",
"enum": [
"outbound",
"return"
]
}
},
"additionalProperties": false
},
"page": "/Metra/"
}select_journeyAction
Select outbound and return journey IDs.
View tool JSON
{
"name": "select_journey",
"kind": "act",
"impl": "imperative",
"description": "Select outbound and return journey IDs.",
"inputSchema": {
"type": "object",
"required": [
"outbound_journey_id",
"return_journey_id"
],
"properties": {
"outbound_journey_id": {
"type": "string"
},
"return_journey_id": {
"type": "string"
}
},
"additionalProperties": false
},
"page": "/Metra/"
}list_available_seatsAnswer
List available seats and adjacent pairs for the current draft.
View tool JSON
{
"name": "list_available_seats",
"kind": "answer",
"impl": "imperative",
"description": "List available seats and adjacent pairs for the current draft.",
"inputSchema": {
"type": "object",
"properties": {},
"additionalProperties": false
},
"page": "/Metra/"
}reserve_seatsSensitive Action
Reserve adjacent seats for two passengers.
View tool JSON
{
"name": "reserve_seats",
"kind": "transact",
"impl": "imperative",
"description": "Reserve adjacent seats for two passengers.",
"inputSchema": {
"type": "object",
"required": [
"seat_ids"
],
"properties": {
"seat_ids": {
"type": "array",
"items": {
"type": "string"
},
"minItems": 1
}
},
"additionalProperties": false
},
"page": "/Metra/"
}review_orderSensitive Action
Review draft order and budget.
View tool JSON
{
"name": "review_order",
"kind": "transact",
"impl": "imperative",
"description": "Review draft order and budget.",
"inputSchema": {
"type": "object",
"properties": {},
"additionalProperties": false
},
"page": "/Metra/"
}purchase_ticketsSensitive Action
Finalize simulated order exactly once. No payment details. Local state only.
View tool JSON
{
"name": "purchase_tickets",
"kind": "transact",
"impl": "imperative",
"description": "Finalize simulated order exactly once. No payment details. Local state only.",
"inputSchema": {
"type": "object",
"properties": {
"operation_id": {
"type": "string"
}
},
"additionalProperties": false
},
"page": "/Metra/"
}get_orderAnswer
Get current order snapshot; pass operation_id to reconcile ambiguous commits.
View tool JSON
{
"name": "get_order",
"kind": "answer",
"impl": "imperative",
"description": "Get current order snapshot; pass operation_id to reconcile ambiguous commits.",
"inputSchema": {
"type": "object",
"properties": {
"operation_id": {
"type": "string"
}
},
"additionalProperties": false
},
"page": "/Metra/"
}cancel_draftSensitive Action
Cancel draft order before purchase.
View tool JSON
{
"name": "cancel_draft",
"kind": "transact",
"impl": "imperative",
"description": "Cancel draft order before purchase.",
"inputSchema": {
"type": "object",
"properties": {},
"additionalProperties": false
},
"page": "/Metra/"
}