Skip to main content
Glama

Search Routes

search_routes
Read-only

Find RegioJet connections between two locations on a given date and return route IDs to retrieve detailed route information.

Instructions

Search RegioJet connections between two locations on a date. Returns route ids for get_route_detail.

Input Schema

NameRequiredDescriptionDefault
langNoResponse language; defaults to server setting.
pageNoPaginate relative to cursor.
to_idYesDestination city or station id from find_locations.
cursorNoCursor from a previous search_routes result.
from_idYesOrigin city or station id from find_locations.
tariffsNoPassenger tariff per traveller, e.g. ['REGULAR', 'REGULAR', 'CHILD_UNDER_12']. See list_tariffs.
to_typeYes
currencyNoPrice currency; defaults to server setting.
from_typeYes
departure_dateNoDeparture date (YYYY-MM-DD). Defaults to today.

Output Schema

NameRequiredDescriptionDefault
cursorNoPass back to search_routes together with page=FORWARD/BACKWARD to get the next/previous page.
routesYes
currencyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.3

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so safety and external-data traits are covered. The description adds that results are route ids rather than full route objects, which meaningfully shapes agent behavior, but it says nothing about pagination, result volume, or that tariffs/currency affect returned price data.

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

Conciseness4/5

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

Two sentences, front-loaded with the operation and immediately followed by the return-value/chaining hint; nothing is redundant. It is efficient but leans terse given the tool's 10 parameters.

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?

With an output schema present, return-shape detail is not required, and the annotations cover the read-only profile. Still, for a 10-parameter search with cursor pagination, tariff lists and currency options, the description omits enough that an agent must fall back entirely on the schema to call it well.

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 description coverage is 80%, so the schema already documents lang, page, cursor, tariffs, currency and departure_date defaults. The description only restates that two locations and a date are involved, adding no new semantics such as how from_type/to_type interact or how cursor paging is used.

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

Purpose4/5

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

States a specific verb and resource ('Search RegioJet connections between two locations on a date') and names the follow-up sibling get_route_detail, so an agent knows this is the entry point to a route lookup. It stops short of distinguishing itself from find_locations or get_free_seats, but the core purpose is unambiguous.

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

Usage Guidelines3/5

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

The clause 'Returns route ids for get_route_detail' implies the intended workflow and sequencing, which is useful guidance. However, there is no explicit statement of when to prefer this over alternatives, no prerequisites (e.g. ids must come from find_locations), and no exclusions.

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