Skip to main content
Glama

Find bus routes

find_bus_routes
Read-onlyIdempotent

Find city bus route numbers and IDs by city code, optionally filtered by route number, and retrieve route IDs needed to look up route details, stops, or live bus locations.

Instructions

Find city bus route numbers and IDs in a city. Use returned routeid with get_bus_route, list_route_stops, or get_route_bus_locations.

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": {
      "cityCode": "<cityCode>"
    },
    "name": "find_bus_routes"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number (1-1000); defaults to 1
routeNoNoBus route number to filter (e.g. 401, 순환2)
cityCodeYesTAGO city code from a city-list tool, including list_pm_providers for personal mobility
pageSizeNoMaximum items per page (1-100); defaults to 10

Output Schema

NameRequiredDescriptionDefault
itemsYes
sourceUrlYes
catalogUrlYes
observedAtYes
totalCountYes
sourceServiceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, openWorld, and non-destructive. The description adds a useful output-semantics note (the routeid is the key consumed by other tools), but says nothing about pagination behavior, result caps, or required upstream lookup of cityCode beyond what the schema states.

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 short sentences, zero filler. Purpose is front-loaded and the follow-up chaining instruction comes second, which is the right order for an agent deciding whether to call it.

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 no explanation, and all four parameters are documented in the schema. What remains unsaid — pagination expectations for large cities and whether cityCode must come from list_bus_cities — is minor and partly covered by schema text.

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 100%, so page, pageSize, routeNo, and cityCode are all documented in the schema itself. The description adds no parameter-level meaning (e.g., how routeNo matching behaves for partial names like 순환2), so the baseline 3 applies.

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 with scope: 'Find city bus route numbers and IDs in a city.' The resource ('route numbers and IDs') separates it from stop-oriented siblings such as find_bus_stops and list_stop_routes, though the second sentence addresses downstream chaining rather than differentiating this tool from alternatives.

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?

Gives a clear workflow context: this is the route-ID lookup step whose 'routeid' is then fed into get_bus_route, list_route_stops, or get_route_bus_locations. No explicit exclusions or 'when not to use' guidance (e.g., vs. list_stop_routes or get_bus_route) are given.

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