Skip to main content
Glama

Fare options for one journey

db_journey_offers
Read-onlyIdempotent

Get all live fares for one train connection after a journey search. Lists ticket types, prices, and classes to answer 'how much?' without booking.

Instructions

All fares bahn.de offers for ONE specific connection (Super Sparpreis, Sparpreis, Flexpreis, regional day tickets…) with price and class, re-checked live. Use after db_journeys when the user asks 'how much' or 'cheapest ticket'. Prices are informational, not a booking.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
adultsNo
bahncardNo'25', '50', '100', 'business25', 'business50', or None
first_classNo
recon_tokenYes`recon_token` from a db_journeys result
children_agesNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Install Server

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, openWorldHint, and idempotentHint, so the safety profile is known. The description adds useful behavioral context: fares are 're-checked live' and are informational only, not a booking. This goes beyond the structured annotation data without contradicting it.

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?

Three purposeful sentences: scope and fare types first, usage trigger second, informational caveat third. No filler, and every sentence earns its place.

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

Completeness4/5

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

For a 5-parameter tool with an output schema and safety annotations, the description is largely complete: it identifies the required recon_token, explains sequencing, and sets expectations about live pricing and non-booking. The only notable gap is that it does not explicitly distinguish itself from db_best_price, but the wording 'all fares' vs 'best price' mostly covers that.

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

Parameters2/5

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

Schema description coverage is only 40%; only recon_token and bahncard get explicit descriptions. The description reinforces that recon_token comes from a db_journeys result and mentions 'class', which loosely maps to first_class, but it does not compensate for the undocumented adults, first_class, and children_ages parameters. Parameter semantics remain mostly left to inference.

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 names a specific verb and resource: it returns all fares for ONE specific connection, with concrete fare types (Super Sparpreis, Sparpreis, Flexpreis, regional day tickets) and includes price and class. This distinguishes it from journey search and from a best-price-only tool.

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?

The description explicitly says to use it after db_journeys when the user asks 'how much' or 'cheapest ticket', which gives clear invocation context. It also states prices are informational and not a booking, but it does not explicitly name or exclude the alternative db_best_price.

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

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/capraCoder/db-fahrplan-mcp'

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