Skip to main content
Glama

Find bus departures by terminal name

find_intercity_departures_by_terminal_name
Read-onlyIdempotent

Find scheduled express or intercity bus departures by departure and arrival terminal names. Resolve ambiguous terminal names to candidates, with serviceType required to select the correct dataset.

Instructions

Resolve departure and arrival terminals, then return scheduled express or intercity departures. serviceType is required because both datasets have separate terminal IDs and schedules. Ambiguous terminal names return candidates.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "departureTerminal": "<departureTerminal>",
      "arrivalTerminal": "<arrivalTerminal>",
      "serviceType": "<serviceType>"
    },
    "name": "find_intercity_departures_by_terminal_name"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoDeparture service date in YYYYMMDD
serviceTypeYesSelect the separate express or intercity bus dataset
arrivalTerminalYesArrival terminal name
departureTerminalYesDeparture terminal name

Output Schema

NameRequiredDescriptionDefault
dataYes
stageYes
statusYes
detailsNo
messageYes
summaryYes
resolvedYes
candidatesYes
observedAtNo
sourceServicesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, openWorld, non-destructive), and the description adds real behavioral context beyond them: ambiguous terminal names return candidates rather than failing, and serviceType is mandatory because the two datasets use separate terminal IDs and schedules. It stops short of describing what a successful response looks like or how candidates are ranked, but that is partly covered by the output schema.

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?

Three tight sentences with no filler, front-loaded with the action and followed by the two constraints an agent most needs (required serviceType, ambiguity handling). The phrasing is slightly dense but nothing is wasted.

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 values need not be explained, and the description covers the two non-obvious behaviors: dataset separation and ambiguous-name resolution. The remaining gap is that the optional date parameter's default behavior (e.g., today when omitted) is never stated, which an agent calling this tool would want to know.

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?

Schema coverage is 100%, so the baseline is 3, but the description earns above baseline by explaining the rationale behind serviceType (separate terminal IDs and schedules per dataset) rather than just restating the enum. It also implies the terminal-name parameters accept fuzzy/ambiguous input that may resolve to candidates, which is meaning the schema does not convey.

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 two-step action (resolve terminal names, then return scheduled departures) and names the resource (express or intercity departures). It is clear what the tool does, but it never explicitly distinguishes itself from the sibling tools find_express_bus_departures and find_intercity_bus_departures, leaving the agent to infer that this one covers both datasets via serviceType.

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?

Usage is only implied: the description makes clear the tool is driven by terminal names plus a required serviceType, which hints at when it applies. It gives no explicit when-to-use or when-not-to-use guidance relative to the express-only and intercity-only siblings, and no prerequisites or fallback path for failed resolution.

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