Skip to main content
Glama
nanwer
by nanwer

search_events

Search for time-bound events like concerts, festivals, and sports games in a given location. Filter by event type and date range to find what's on during your trip.

Instructions

๐ŸŽฏ RENDERING DIRECTIVE โ€” READ FIRST. When this tool returns 2+ events, you MUST present them as an interactive HTML/React artifact (Artifacts block, not flowing prose). Each event is a visually distinct CARD with one "Tickets on [vendor]" button per ticket_sources entry (or a single button on ticket_url if no extras), styled as HTML buttons, NOT inline markdown links. If the call is part of a larger trip plan, the plan itself should be an artifact containing event cards. Single-result responses may use prose.

Search Google for time-bound events โ€” concerts, festivals, sports games, comedy shows, conferences โ€” happening at a location, optionally filtered by event type and date range.

DISTINCT FROM search_activities: events are time-bound (a specific date or window); activities (tours, attractions) are ongoing. Use this tool for "what's on while I'm there"; use search_activities for "what should I do".

USE THIS TOOL WHEN:

  • The user asks "what's happening in X" / "events in X" / "any concerts in X" / "is BTS playing anywhere I'm going"

  • They mention a specific event type ("concerts", "festivals", "sports", "comedy", "theatre")

  • They're planning a trip and want time-bound options to anchor the dates around

Inputs:

  • location (string, required) โ€” free-text city. Combined with query into the SerpAPI search string.

  • query (string, optional) โ€” event-type filter. Examples: "concerts", "festivals", "sports", "comedy", "theatre", or a specific artist/team ("BTS", "Coldplay").

  • date_filter (enum, optional) โ€” one of "today", "tomorrow", "week", "weekend", "next_week", "month", "next_month". SerpAPI's named-range filter; do NOT pass arbitrary date strings. If the user wants a specific calendar month, bake the month name into query instead (e.g. query="concerts June 2026").

  • max_results (int, optional, default 15) โ€” 1-50.

Returns up to max_results EventOffer entries, each with:

  • offer_id โ€” stable hash for downstream reference

  • title โ€” event name

  • start_date_raw โ€” SerpAPI's "Jun 21" style string (month + day, no year โ€” when_text carries the year)

  • when_text โ€” full formatted display string: "Fri, Jul 17, 8 โ€“ 11 PM GMT+2"

  • venue_name, venue_rating, venue_review_count โ€” venue info if available

  • address โ€” flattened single string ("B.Leza Club, Cais do Gรกs 1, Lisbon, Portugal")

  • description โ€” short text from Google

  • thumbnail, image โ€” URLs (NOT hotlink-safe โ€” same rule as stays, don't render as photo elements)

  • ticket_url โ€” primary deep-link to the ticket vendor (Viagogo, Eventbrite, Spotify Concerts, venue site โ€” varies per event)

  • ticket_sources โ€” list of additional ticket vendors with {source, link} per entry. Surface all of these as "Tickets on X" buttons so the user can comparison-shop.

PRE-CALL ELICITATION:

  • If the user names an event type, set query. "Concerts in Lisbon" โ†’ query="concerts".

  • If they mention a relative date ("this weekend", "next week", "this month"), set date_filter to the matching enum.

  • If they mention a specific calendar month + year, bake it INTO the query string ("concerts June 2026") instead of using date_filter.

  • If they're vague ("things happening in Lisbon"), call with no query and no date_filter โ€” default upcoming events.

RESULT PRESENTATION: card-based artifact, one card per event. Lead with title + when_text + venue_name. Show "Tickets on [source]" buttons (one per ticket_sources entry); for events with no ticket_sources, surface the primary ticket_url as a single button. Do NOT render thumbnail/image as photo elements (same hotlink-protection issue as stays). For a single result, prose is fine.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryNo
locationYes
date_filterNo
max_resultsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

With no annotations, the description fully discloses the tool's behavior: data source (Google via SerpAPI), output structure (EventOffer fields), rendering constraints (artifact vs prose), image handling (hotlink warning), and pre-call logic. No contradictions and exceeds the burden for safe invocation.

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?

The description is well-structured with clear sections and a front-loaded rendering directive. However, it is quite verbose; some instructions could be condensed without losing clarity. Still, every sentence serves a purpose.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity and the presence of an output schema (described in text), the description is exceptionally complete: covers purpose, usage, parameters, output fields, rendering behavior, sibling differentiation, and pre-call elicitation. No obvious gaps remain for an agent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, but the description compensates fully: explains `location` as free-text, `query` with examples, `date_filter` with enum values and usage warnings, and `max_results` with default and range. Pre-call elicitation clarifies mapping from user requests to parameters.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose with a specific verb ('Search Google for') and resource ('time-bound events'). It explicitly distinguishes from the sibling tool `search_activities` by contrasting time-bound events with ongoing activities, leaving no ambiguity.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description includes a dedicated 'USE THIS TOOL WHEN' section with specific user query examples, and explicitly contrasts with `search_activities`. Pre-call elicitation rules further guide parameter selection, making usage conditions extremely clear.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/nanwer/trip-search-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server