Skip to main content
Glama

Agendan

Search events

search_events
Read-onlyIdempotent

Search things to do in Sweden on Agendan: concerts, theatre, markets, exhibitions, activities for children and more. Only upcoming and ongoing events are returned.

Use it for questions like "what's on this weekend near Malmö for a family with kids": place "Malmö", when "weekend", audience ["kids-family"].

Give the time with when ("today", "tonight", "tomorrow", "weekend", "week" or "next-week"): Agendan computes the window in Swedish time, the same as agendan.se, so you do not need to. Use from and to only for other dates.

Each result has a webUrl. Always show webUrl (the page on agendan.se) with each item and say "via Agendan". Use get_event for the full description, all occurrences and the sources.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "search_events"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNoFree text, matched against title, venue, tags and description. Swedish words work best (e.g. "jazz", "julmarknad", "loppis").
toNoEnd of the time window. A day includes the whole day, a date and time is exclusive.
latNoLatitude (WGS 84) to search around. Requires lng. Rounded to about 1 km.
lngNoLongitude (WGS 84). Requires lat.
freeNotrue: only free events.
fromNoStart of the time window, for dates that when does not cover: a day (YYYY-MM-DD) or a date and time (YYYY-MM-DDTHH:MM, Swedish time when no zone is given).
pageNoPage number, from 1.
sortNo"time" (default), "distance" (needs a position) or "relevance" (needs q).
typeNo"event": with occurrences. "ongoing": on during a period, such as an exhibition.
whenNoThe time window, as on agendan.se, in Swedish time. "today": now to midnight. "tonight": events starting 17:00–04:00 with a known time (before 04:00, the evening before). "tomorrow": the whole day. "weekend": Friday 17:00 to Monday 00:00 ("this weekend"). "week": now to Monday 00:00 ("this week"). "next-week": Monday to Monday. Not with from, to or startsWithin.
placeNoA Swedish place by name, such as "Malmö", "Södermalm" or "Österlen". It is looked up like search_areas, and its position and radius are used. Do not combine with lat and lng. The result names the area that was used (place).
venueNoOnly events at this venue (id from search_venues).
radiusNoRadius in km around the position (place or lat/lng). With place, the area's own radius is used when this is left out.
perPageNoResults per page, at most 20 (the default).
audienceNoOnly events for any of these audiences. "kids-family" for children and families. Events for everyone always match.
categoryNoOnly these categories. Any of them matches.
autoRadiusNoChoose the radius from what is on around the position, like agendan.se. On by default with place.
startsWithinNoOnly events whose next occurrence starts inside the from–to window, with a known time. Requires to. when "tonight" already does this.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / place / description
      Previous value: -"A Swedish place by name, such as \"Kristianstad\", \"Södermalm\" or \"Österlen\". It is looked up like search_areas, and its position and radius are used. Do not combine with lat and lng. The result names the area that was used (place)."New value: +"A Swedish place by name, such as \"Malmö\", \"Södermalm\" or \"Österlen\". It is looked up like search_areas, and its position and radius are used. Do not combine with lat and lng. The result names the area that was used (place)."
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered; the description adds real value on top: only upcoming/ongoing events are returned, the time window is computed in Swedish time matching agendan.se, and each result carries a webUrl that must be shown with a "via Agendan" attribution. That attribution requirement is a behavioral obligation an agent could not infer from annotations or schema.

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?

Four short paragraphs, front-loaded with what the tool returns and its scope, then the example, then the time-window rule, then the output/attribution note and the sibling pointer. Every sentence carries operational information; nothing is redundant with the title or with structured fields.

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?

For an 18-parameter, zero-required search tool with full schema coverage and annotations, the description covers the decisions that matter most: time-window selection, example parameter usage, result attribution, and where to go for detail. The only gaps are result-set behavior such as pagination and result volume, which matter given there is no output schema.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3; the description nonetheless adds meaning by explaining the relationship between "when" (Agendan computes the window in Swedish time) and "from"/"to" (for other dates), and by showing the place/audience combination in a realistic example. It does not touch position, radius, sort or pagination parameters, which remain schema-only.

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?

States a specific verb and resource ("Search things to do in Sweden on Agendan") plus the content domains it covers and the scope restriction ("Only upcoming and ongoing events are returned"). It also distinguishes itself from get_event, which returns full descriptions, occurrences and sources, so an agent can separate the two without opening a schema.

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 concrete worked example ("what's on this weekend near Malmö for a family with kids") mapping to place/when/audience, and an explicit rule for choosing "when" versus "from"/"to" ("Use from and to only for other dates"). It routes detail-seeking follow-ups to get_event. It does not state when to prefer sibling lookups like search_areas or search_venues, so it stops short of full when-not coverage.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources