edinburgh_festival_venue_routes
Calculate the optimal route between two venues for Edinburgh Festivals, enabling efficient navigation and planning for event attendees.
Instructions
Calculate route between venues
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| destination | Yes | ||
| origin | Yes |
Implementation Reference
- main.py:51-63 (handler)The handler function implementing the 'edinburgh_festival_venue_routes' tool logic, which uses Google Maps to compute walking directions between two venues. It is registered as a tool via the @mcp.tool decorator.@mcp.tool(description="Calculate route between venues") def edinburgh_festival_venue_routes(origin: str, destination: str) -> Dict: """ Calculates the route between two venues. :param origin: The starting venue :param destination: The destination venue. :return: A dictionary containing route information:. """ gmaps_cli = gmaps.GMAPS() if not gmaps_cli.enabled: return {"error": "Google Maps API key is not set. This tool is not available."} directions = gmaps_cli.get_directions(origin, destination, mode="walking") return directions