Skip to main content
Glama

nope-mcp — Open Educational Resources search

Search Calendar Events

search_calendar_events
Read-onlyIdempotent

Search for NIP-52 calendar events (date-based and time-based). Supports temporal filters (start/end time ranges), geohash location filtering, hashtag filtering, and the edufeed educational attributes (free, registrationRequired, attendanceMode, educationalLevel). Returns events from the configured calendar relay. TIME SEMANTICS (NIP-52): start/end are the raw tags — end is EXCLUSIVE and is omitted for one-day and instantaneous events, so never read a missing end as "unknown". Use effectiveEnd (Unix seconds when the event is over), allDay (31922: whole days, no clock time) and lastDay (all-day events: the inclusive last calendar day). Times of 31923 events are in startTzid/endTzid. ATTRIBUTES: attributes carries registration, price (free = amount 0), attendance mode (online/offline/mixed) and Bildungsstufe; a missing field means "no statement", never "no" or "not free". AUTHOR: every event has author {name, bot}; bot: true marks an automated account such as an event mirror or crawler — group or de-emphasise those unless the user asks for imports. Operators may hide bulk sources by default (see hiddenSources in the result); pass includeHiddenSources: true to see them. When presenting an event to the user, render it as a markdown link: prefer the event url (the edufeed-app viewer at /, which shows fuller details) over sourcePage (the original external event page). Never construct an naddr or viewer URL yourself — use the naddr/url fields as returned.

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_calendar_events"
  }
}

Input Schema

NameRequiredDescriptionDefault
freeNotrue: only events tagged free of charge (price 0). Events without a price statement are NOT returned, so leave it unset unless the user insists on free. false adds no filter.
kindsNoNIP-52 kinds to query (default: [31922, 31923]). 31922 = date-based event, 31923 = time-based event (both in `events`); 31924 = calendar, a titled list of event coordinates (in `calendars`); 31925 = RSVP, one user's attendance intention (in `rsvps`). "Who is coming to event X" = kinds [31925] with the event's coordinate in `references`; "events in calendar Y" = resolve the calendar's eventRefs. Time-range, geohash and attribute filters match event kinds only, so combining them with 31924/31925 returns no calendars or RSVPs.
limitNoMaximum number of results (1-250, default: 20)
queryNoFree-text topic for the events. Combines with a time range (startAfter/startBefore/endAfter/endBefore) in a single server-side query — e.g. "events about X in the next week" is one call. With a geohash, the relay runs the topic search and filters one page of 250 hits by location, so "events about X near a place" works but may return fewer than limit.
sinceNoReturn events created at or after this Unix timestamp
untilNoReturn events created at or before this Unix timestamp
authorsNoFilter by author pubkeys (hex format)
geohashNoGeohash prefix for location-based search
endAfterNoOnly events still running after this Unix timestamp (strict: NIP-52 `end` is exclusive, so an event ending exactly then is over). "Ongoing or upcoming" = endAfter: now; one-day and instantaneous events are included via their effective end.
hashtagsNoFilter by hashtags (e.g., ["meetup", "nostr"])
communityNoReturn calendar events shared into this community (Communikey). Accepts a hex pubkey or npub; resolve a community name with resolve_author. Combines with a time range (startAfter/startBefore/endAfter/endBefore) in a single server-side query, so "events shared with X next week" is one call. With a geohash the relay applies the community filter in its topic search and post-filters one page of 250 hits by location.
endBeforeNoOnly events over by this Unix timestamp (inclusive: an event ending exactly then counts)
referencesNoFilter by referenced coordinates (`a` tags): with kinds [31925] the event an RSVP answers (`31923:<pubkey>:<d>`); with kinds [31924] calendars listing that event; with event kinds, events requesting inclusion in that calendar (`31924:<pubkey>:<d>`).
startAfterNoOnly events starting at or after this Unix timestamp (inclusive)
startBeforeNoOnly events starting at or before this Unix timestamp (inclusive)
participantsNoFilter by participant pubkeys (`p` tags, hex): events naming them, or RSVPs to their events.
attendanceModeNoOnly online, in-person (offline) or hybrid (mixed) events; untagged events match none.
educationalLevelNoOnly events for this KIM Bildungsstufe concept URI, e.g. https://w3id.org/kim/educationalLevel/level_C (Fortbildung), level_A (Hochschule), level_B (Vorbereitungsdienst), level_1 (Primarbereich).
includeHiddenSourcesNoAlso return events from operator-hidden bulk sources (event mirrors, imported catalogues). Default false; the result reports how many were hidden.
registrationRequiredNoOnly events that do (true) or do not (false) require registration; untagged events match neither.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  2. Changed5 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / kinds / items / anyOf
      Added value: +[
      +  {
      +    "const": 31922,
      +    "type": "number"
      +  },
      +  {
      +    "const": 31923,
      +    "type": "number"
      +  },
      +  {
      +    "const": 31924,
      +    "type": "number"
      +  },
      +  {
      +    "const": 31925,
      +    "type": "number"
      +  }
      +]
    • removedInput schema / properties / kinds / items / enum
      Removed value: -[
      -  31922,
      -  31923,
      -  31924,
      -  31925
      -]
    • removedInput schema / properties / kinds / items / type
      Removed value: -"number"
  3. Changed15 schema fields changed
    • addedInput schema / properties / attendanceMode
      Added value: +{
      +  "description": "Only online, in-person (offline) or hybrid (mixed) events; untagged events match none.",
      +  "enum": [
      +    "online",
      +    "offline",
      +    "mixed"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / community / description
      Previous value: -"Return calendar events shared into this community (Communikey). Accepts a hex pubkey or npub; resolve a community name with resolve_author. Combines with a time range (startAfter/startBefore/endAfter/endBefore) in a single server-side query, so \"events shared with X next week\" is one call. EXCEPTION: a geohash query forces the relay location index, which ignores this community filter; for \"shared with X near a place\" pass the geohash and filter the returned events by community client-side."New value: +"Return calendar events shared into this community (Communikey). Accepts a hex pubkey or npub; resolve a community name with resolve_author. Combines with a time range (startAfter/startBefore/endAfter/endBefore) in a single server-side query, so \"events shared with X next week\" is one call. With a geohash the relay applies the community filter in its topic search and post-filters one page of 250 hits by location."
    • addedInput schema / properties / educationalLevel
      Added value: +{
      +  "description": "Only events for this KIM Bildungsstufe concept URI, e.g. https://w3id.org/kim/educationalLevel/level_C (Fortbildung), level_A (Hochschule), level_B (Vorbereitungsdienst), level_1 (Primarbereich).",
      +  "type": "string"
      +}
    • changedInput schema / properties / endAfter / description
      Previous value: -"Only events ending after this Unix timestamp"New value: +"Only events still running after this Unix timestamp (strict: NIP-52 `end` is exclusive, so an event ending exactly then is over). \"Ongoing or upcoming\" = endAfter: now; one-day and instantaneous events are included via their effective end."
    • changedInput schema / properties / endBefore / description
      Previous value: -"Only events ending before this Unix timestamp"New value: +"Only events over by this Unix timestamp (inclusive: an event ending exactly then counts)"
    • addedInput schema / properties / free
      Added value: +{
      +  "description": "true: only events tagged free of charge (price 0). Events without a price statement are NOT returned, so leave it unset unless the user insists on free. false adds no filter.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / includeHiddenSources
      Added value: +{
      +  "description": "Also return events from operator-hidden bulk sources (event mirrors, imported catalogues). Default false; the result reports how many were hidden.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / kinds / description
      Previous value: -"Event kinds to query (default: [31922, 31923]). 31922 = date-based, 31923 = time-based."New value: +"NIP-52 kinds to query (default: [31922, 31923]). 31922 = date-based event, 31923 = time-based event (both in `events`); 31924 = calendar, a titled list of event coordinates (in `calendars`); 31925 = RSVP, one user's attendance intention (in `rsvps`). \"Who is coming to event X\" = kinds [31925] with the event's coordinate in `references`; \"events in calendar Y\" = resolve the calendar's eventRefs. Time-range, geohash and attribute filters match event kinds only, so combining them with 31924/31925 returns no calendars or RSVPs."
    • addedInput schema / properties / kinds / items / enum
      Added value: +[
      +  31922,
      +  31923,
      +  31924,
      +  31925
      +]
    • addedInput schema / properties / participants
      Added value: +{
      +  "description": "Filter by participant pubkeys (`p` tags, hex): events naming them, or RSVPs to their events.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • changedInput schema / properties / query / description
      Previous value: -"Free-text topic for the events. Combines with a time range (startAfter/startBefore/endAfter/endBefore) in a single server-side query — e.g. \"events about X in the next week\" is one call. EXCEPTION: a geohash query forces the relay location index, which ignores this topic; for \"events about X near a place\" pass the geohash and filter the returned events by topic on the client."New value: +"Free-text topic for the events. Combines with a time range (startAfter/startBefore/endAfter/endBefore) in a single server-side query — e.g. \"events about X in the next week\" is one call. With a geohash, the relay runs the topic search and filters one page of 250 hits by location, so \"events about X near a place\" works but may return fewer than limit."
    • addedInput schema / properties / references
      Added value: +{
      +  "description": "Filter by referenced coordinates (`a` tags): with kinds [31925] the event an RSVP answers (`31923:<pubkey>:<d>`); with kinds [31924] calendars listing that event; with event kinds, events requesting inclusion in that calendar (`31924:<pubkey>:<d>`).",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / registrationRequired
      Added value: +{
      +  "description": "Only events that do (true) or do not (false) require registration; untagged events match neither.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / startAfter / description
      Previous value: -"Only events starting after this Unix timestamp"New value: +"Only events starting at or after this Unix timestamp (inclusive)"
    • changedInput schema / properties / startBefore / description
      Previous value: -"Only events starting before this Unix timestamp"New value: +"Only events starting at or before this Unix timestamp (inclusive)"
  4. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare read-only, idempotent, non-destructive, and closed-world behavior, but the description adds substantial behavioral context beyond that: exclusive `end` semantics, the meaning of `effectiveEnd`/`allDay`/`lastDay`, how missing attributes should be interpreted, bot author handling, hidden-source behavior, and presentation rules for rendering events. This is exactly the kind of context an agent needs to avoid misreading results.

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 long but front-loaded and information-dense, with purpose first and then grouped semantics for time, attributes, authors, and presentation. Every section earns its place for a complex 20-parameter tool, though some sentences could be tightened without losing meaning.

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 a 20-parameter, no-output-schema search tool with complex NIP-52 semantics, the description covers return shape categories (events, calendars, RSVPs), temporal interpretation, attribute interpretation, author bot flags, and hidden-source behavior. It is nearly complete, though it could say more about pagination or the exact structure of `calendars` and `rsvps` results.

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 description coverage is 100%, so the baseline is 3, but the description adds conceptual meaning not contained in the schema, especially the NIP-52 time semantics and the distinction between raw `end`, `effectiveEnd`, `allDay`, and `lastDay`. It also explains that missing attribute fields mean 'no statement' rather than a negative value, which prevents a common misinterpretation.

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 opens with a specific verb and resource: 'Search for NIP-52 calendar events (date-based and time-based).' It clearly distinguishes this tool from generic content or resource search siblings by naming the NIP-52 event domain and the supported filter families.

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

Usage Guidelines3/5

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

Usage context is implied by the event-specific scope, but the description never explicitly says when to use this tool versus search_content or search_resources, nor does it name alternatives. It does give filter-level guidance such as leaving `free` unset unless the user insists, but that is parameter semantics rather than routing guidance.

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.