Skip to main content
Glama

PakBus

Plan a journey

plan_journey
Read-onlyIdempotent

Plans bus and metro journeys between two places in one city network. Returns the first journey leaving at or after the departure time as numbered steps with boarding stops, changes, walking, times and fare, a link that opens it in PakBus, and up to two later departures on one line. Apps that show interactive views also get a map of the journey.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toYesplace_id of the destination, from find_places.
cityYesCity network from find_places or list_cities, such as Lahore, Attock or Rawalpindi.
fromYesplace_id of the start, from find_places.
departNoDeparture date and time in Pakistan local time, as YYYY-MM-DDTHH:MM. Leave out to leave now. Search again with a later time for later journeys.
max_changesNoMost changes between buses, 0 for direct journeys only. Defaults to 2. When none are found within the limit, journeys with up to 5 changes are returned.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources