Save Travel Profile
save_profileStore travel profile locally by saving name, date of birth, and reduction card details for future sessions. Ensures personal data persists across interactions.
Instructions
Save the user's travel profile locally for future sessions. Call this after asking the user for their details (name, date of birth, reduction card). Data is stored at ~/.sbb-mcp/profile.json.
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": "save_profile"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| first_name | No | First name (for ticket booking) | |
| last_name | No | Last name (for ticket booking) | |
| date_of_birth | No | Date of birth YYYY-MM-DD (for age-based pricing) | |
| reduction_card | No | Swiss reduction card: HALF_FARE (Halbtax), GA (General Abonnement), or NONE | |
| reduction_card_valid_until | No | Reduction card expiry date YYYY-MM-DD (ask the user when their Halbtax/GA expires) |