Skip to main content
Glama

Search Italian bus journeys

search_journeys
Read-onlyIdempotent

Search one-way bus and coach journeys across multiple Italian operators. Returns normalized results with official booking links so you can continue manually on provider sites.

Instructions

BUS ONLY. Search one-way bus/coach journeys. Never use for trains or rail; use search_train_journeys instead. Results include official links for continuing manually on provider sites. For stable pagination start with snapshot:true; continue using only searchId, offset and limit.

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": "search_journeys"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoToday or a future date in Europe/Rome, in YYYY-MM-DD format
limitNo
adultsNo
offsetNoResult offset; add limit while truncated is true
originNoExact shared location name for aggregate searches, or a provider-specific ID when provider is set
childrenNo
providerNoProvider ID; omit to search every provider
searchIdNo
snapshotNo
destinationNoExact shared location name for aggregate searches, or a provider-specific ID when provider is set

Output Schema

NameRequiredDescriptionDefault
totalYes
errorsYes
journeysYes
searchIdNo
createdAtNo
expiresAtNo
truncatedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.3.8
    • changedInput schema / properties / date / description
      Previous value: -"Real future date in YYYY-MM-DD format"New value: +"Today or a future date in Europe/Rome, in YYYY-MM-DD format"
  2. Changed14 schema fields changedv0.3.6
    • removedInput schema / properties / adults / default
      Removed value: -1
    • removedInput schema / properties / children / default
      Removed value: -0
    • addedInput schema / properties / offset
      Added value: +{
      +  "default": 0,
      +  "description": "Result offset; add limit while truncated is true",
      +  "maximum": 9007199254740991,
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / searchId
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / snapshot
      Added value: +{
      +  "default": false,
      +  "type": "boolean"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "origin",
      -  "destination",
      -  "date"
      -]
    • addedOutput schema / properties / createdAt
      Added value: +{
      +  "type": "string"
      +}
    • changedOutput schema / properties / errors / items / properties / code / enum
      Previous value: -[
      -  "INVALID_INPUT",
      -  "UNKNOWN_LOCATION",
      -  "NO_JOURNEYS",
      -  "PROVIDER_UNAVAILABLE",
      -  "INCOMPATIBLE_RESPONSE",
      -  "RATE_LIMITED",
      -  "AMBIGUOUS_LOCATION",
      -  "COVERAGE_UNAVAILABLE",
      -  "QUOTE_UNAVAILABLE",
      -  "LIVE_STATUS_UNAVAILABLE",
      -  "TRAIN_NOT_FOUND"
      -]New value: +[
      +  "SEARCH_EXPIRED",
      +  "SEARCH_TOO_LARGE",
      +  "INVALID_INPUT",
      +  "UNKNOWN_LOCATION",
      +  "NO_JOURNEYS",
      +  "PROVIDER_UNAVAILABLE",
      +  "INCOMPATIBLE_RESPONSE",
      +  "RATE_LIMITED",
      +  "AMBIGUOUS_LOCATION",
      +  "COVERAGE_UNAVAILABLE",
      +  "QUOTE_UNAVAILABLE",
      +  "LIVE_STATUS_UNAVAILABLE",
      +  "TRAIN_NOT_FOUND"
      +]
    • addedOutput schema / properties / expiresAt
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / journeys / items / properties / destination / properties / address
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / journeys / items / properties / destination / properties / city
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / journeys / items / properties / origin / properties / address
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / journeys / items / properties / origin / properties / city
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / searchId
      Added value: +{
      +  "type": "string"
      +}
  3. Changed4 schema fields changedv0.3.2
    • changedInput schema / properties / destination / description
      Previous value: -"Exact location name or ID returned by search_locations"New value: +"Exact shared location name for aggregate searches, or a provider-specific ID when provider is set"
    • changedInput schema / properties / limit / default
      Previous value: -10New value: +50
    • changedInput schema / properties / origin / description
      Previous value: -"Exact location name or ID returned by search_locations"New value: +"Exact shared location name for aggregate searches, or a provider-specific ID when provider is set"
    • changedOutput schema / properties / errors / items / properties / code / enum
      Previous value: -[
      -  "INVALID_INPUT",
      -  "UNKNOWN_LOCATION",
      -  "NO_JOURNEYS",
      -  "PROVIDER_UNAVAILABLE",
      -  "INCOMPATIBLE_RESPONSE",
      -  "RATE_LIMITED"
      -]New value: +[
      +  "INVALID_INPUT",
      +  "UNKNOWN_LOCATION",
      +  "NO_JOURNEYS",
      +  "PROVIDER_UNAVAILABLE",
      +  "INCOMPATIBLE_RESPONSE",
      +  "RATE_LIMITED",
      +  "AMBIGUOUS_LOCATION",
      +  "COVERAGE_UNAVAILABLE",
      +  "QUOTE_UNAVAILABLE",
      +  "LIVE_STATUS_UNAVAILABLE",
      +  "TRAIN_NOT_FOUND"
      +]
  4. First observedv0.1.2

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and openWorld, so safety is covered and the description isn't burdened there. It still adds genuinely non-obvious behavior beyond the annotations: results are links that require manual continuation on provider sites (i.e. no booking occurs here), and that snapshot mode freezes a stable result set. It does not mention rate limits, latency, or what a truncated result set looks like beyond the pagination hint.

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?

Four short sentences, zero filler, and the most decision-critical constraint (BUS ONLY / not trains) is front-loaded before the alternative and the pagination mechanics. The telegraphic style is dense but each clause carries routing or operational information.

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?

An output schema exists, so return-value explanation is rightly omitted, and the description covers the mode boundary, the alternative tool, and the pagination protocol for a 10-parameter tool. The remaining gap is passenger-count semantics (adults/children) and the fact that all parameters are optional, which would matter for a first call shape.

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

Parameters4/5

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

With 50% schema coverage, the description compensates for the most opaque parameters: searchId, snapshot, offset and limit are given a working relationship (snapshot to start, then only searchId/offset/limit to continue) that the bare schema doesn't convey. It leaves adults/children and the limit ceiling of 50 unaddressed, so it does not fully close the coverage gap.

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?

"BUS ONLY. Search one-way bus/coach journeys" gives a specific verb (search) and resource (bus/coach journeys) with the transport mode pinned down, and it explicitly names the sibling it must not be confused with: "Never use for trains or rail; use search_train_journeys instead." An agent can route correctly without opening any schema.

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

Usage Guidelines5/5

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

It states both the negative case (trains/rail) with the exact alternative tool, and a positive usage pattern for pagination: start with snapshot:true, then continue using only searchId, offset and limit. That is explicit when-to-use, when-not-to-use, and how-to-continue guidance in a few sentences.

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