edinburgh_festival_venues
Locate Edinburgh festival venues by searching with festival name, postcode, venue name, or year. Retrieve up-to-date results for planning visits or studying event history.
Instructions
Search Edinburgh festival venues
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| festival | No | international | |
| name | No | ||
| number_of_results | No | ||
| page | No | ||
| postcode | No | ||
| year | No | 2025 |
Implementation Reference
- main.py:17-48 (handler)The main handler function decorated with @mcp.tool, implementing the logic for searching Edinburgh festival venues by filtering parameters and calling the underlying CLI.@mcp.tool(description="Search Edinburgh festival venues") def edinburgh_festival_venues( festival: str = "international", postcode: str = None, name: str = None, year: str = "2025", number_of_results=25, page=0, ) -> List[Dict]: """ Searches Edinburgh festival venues. :param festival: The type of festival to search for venues in. :param postcode: The postcode to filter venues by. :param name: The name of the venue to search for. :param year: The year of the festival. :return: A dictionary containing venue information. :param number_of_results: The maximum number of results to retrieve, up to 100 at a time. :param page: The page number for pagination, starting from 0. : """ params = { "festival": festival, "year": year, "postcode": postcode, "name": name, "size": number_of_results, "page": page, } filtered_params = {k: v for k, v in params.items() if v} results = cli.venues(filtered_params) return results