Skip to main content
Glama

Save Travel Profile

save_profile
Idempotent

Store 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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
first_nameNoFirst name (for ticket booking)
last_nameNoLast name (for ticket booking)
date_of_birthNoDate of birth YYYY-MM-DD (for age-based pricing)
reduction_cardNoSwiss reduction card: HALF_FARE (Halbtax), GA (General Abonnement), or NONE
reduction_card_valid_untilNoReduction card expiry date YYYY-MM-DD (ask the user when their Halbtax/GA expires)
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already indicate idempotentHint=true (write operation). Description adds concrete behavioral context: data stored at ~/.sbb-mcp/profile.json, persistence across sessions. No contradictions.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two concise sentences, front-loaded with purpose and usage guidance, zero wasted words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers storage location and usage context, but omits details about return behavior (since no output schema), overwrite behavior, and error cases. Adequate but not fully complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% with detailed parameter descriptions. Description merely summarizes fields without adding new semantic meaning beyond what schema provides. Baseline 3 appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb 'Save', the resource 'travel profile', and the context ('locally for future sessions'). It distinguishes from sibling 'get_profile' by implying this is the write counterpart.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly states when to call: 'after asking the user for their details'. Does not explicitly mention when not to use or alternative tools, but sibling context provides differentiation.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Fabsbags/sbb-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server