Skip to main content
Glama

Search events

search_events
Read-only

Finds events by text across the calendars shared with this access — case-insensitive substring match on title, location and description.

The search only sees what this access may see: it filters the same visibility-rendered data get_availability returns. Calendars limited to free/busy expose no text and therefore can never match — when such calendars are part of this access, a warning says so. "No match" is thus NOT proof that no such event exists.

A match in a calendar the user allowed managing carries event_id, calendar_id, is_organizer and is_recurring — everything update_event, delete_event and respond_to_event need — and the user's own reminders (minutes before the start; source: "calendar_default" = the calendar's default applies). Act on those directly instead of calling get_availability again for the same appointment.

The range works like get_availability (single span of at most 92 days, lookback bounded to one year). Without from/to the search covers the last 7 days plus the next 85. Cancelled events are not searchable.

Matches include events that do not block time (blocks_time: false) — notably every all-day event from Apple/iCloud. They are ordinary appointments and belong in the answer; do not filter them out when the user asked what is in their calendar.

Check status first: credits_exhausted means this call was NOT performed. Only warnings and credit information are returned in that case; no result data or write confirmation. Tell the user how to restore credits; do not retry automatically.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

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

Input Schema

NameRequiredDescriptionDefault
toNoEnd of the range, ISO 8601. Default: 85 days ahead.
fromNoStart of the range, ISO 8601. Default: 7 days ago.
queryYesText to look for (case-insensitive substring)

Output Schema

NameRequiredDescriptionDefault
rangeNo
statusYesok: tool executed; use its result fields. credits_exhausted: not executed; no result fields.
matchesNo
sourcesNo
warningsNo
resets_atNo
truncatedNo
range_clampedNo
credits_requiredNo
credits_availableNo
unsearchable_calendarsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / matches / items / properties / reminders
      Added value: +{
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "minutes_before": {
      +        "type": "number"
      +      },
      +      "source": {
      +        "const": "calendar_default",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "minutes_before"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
  2. Changed5 schema fields changed
    • addedOutput schema / properties / credits_available
      Added value: +{
      +  "type": "number"
      +}
    • addedOutput schema / properties / credits_required
      Added value: +{
      +  "type": "number"
      +}
    • addedOutput schema / properties / resets_at
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / status
      Added value: +{
      +  "description": "ok: tool executed; use its result fields. credits_exhausted: not executed; no result fields.",
      +  "enum": [
      +    "ok",
      +    "credits_exhausted"
      +  ],
      +  "type": "string"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "range",
      -  "range_clamped",
      -  "matches",
      -  "truncated",
      -  "unsearchable_calendars",
      -  "sources",
      -  "warnings"
      -]New value: +[
      +  "status"
      +]
  3. Changed2 schema fields changed
    • addedOutput schema / properties / matches / items / properties / blocks_time
      Added value: +{
      +  "type": "boolean"
      +}
    • changedOutput schema / properties / matches / items / required
      Previous value: -[
      -  "start",
      -  "end",
      -  "is_all_day",
      -  "calendar_id",
      -  "calendar_name"
      -]New value: +[
      +  "start",
      +  "end",
      +  "is_all_day",
      +  "blocks_time",
      +  "calendar_id",
      +  "calendar_name"
      +]
  4. Changed6 schema fields changed
    • addedOutput schema / properties / matches / items / properties / attendees
      Added value: +{
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "email": {
      +        "type": "string"
      +      },
      +      "name": {
      +        "type": "string"
      +      },
      +      "optional": {
      +        "type": "boolean"
      +      },
      +      "organizer": {
      +        "type": "boolean"
      +      },
      +      "self": {
      +        "type": "boolean"
      +      },
      +      "status": {
      +        "enum": [
      +          "accepted",
      +          "declined",
      +          "tentative",
      +          "needs_action"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / matches / items / properties / event_id
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / matches / items / properties / has_other_attendees
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / matches / items / properties / is_organizer
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / matches / items / properties / is_recurring
      Added value: +{
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / matches / items / properties / more_attendees
      Added value: +{
      +  "type": "number"
      +}
  5. Changed1 schema field changed
    • addedOutput schema / properties / sources / items / properties / retryable
      Added value: +{
      +  "type": "boolean"
      +}
  6. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Adds substantial behavioral context beyond the annotations: visibility is limited to calendars this access can see, free/busy-only calendars cannot match and trigger warnings, cancelled events are excluded, and credits_exhausted means the call was not performed. This directly helps the agent interpret partial or failed 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 purpose is front-loaded and the paragraph structure groups matching semantics, visibility limits, result fields, range behavior, and status handling. It is somewhat long and dense, but nearly every sentence provides operational guidance that helps correct invocation.

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 presence of an output schema, the description does not need to enumerate return fields, yet it still highlights key result attributes like event_id, calendar_id, is_organizer, is_recurring, and reminders. It covers visibility caveats, range constraints, cancellation behavior, and credit failure handling, leaving little relevant ambiguity.

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 the baseline is 3, but the description adds useful range semantics not fully captured by the schema: a single span of at most 92 days, lookback bounded to one year, and default coverage of the last 7 days plus next 85. It also clarifies that query matches title, location, and description via case-insensitive substring.

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: finds events by text across calendars shared with this access. It specifies the matching fields and case-insensitive substring semantics, which clearly distinguishes it from get_availability and the mutation siblings.

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?

Gives explicit routing guidance: act on returned event details directly instead of calling get_availability again, and do not filter out blocks_time:false events because they are still ordinary appointments. It also explains when 'no match' is not proof of absence and how to handle credits_exhausted without automatic retry.

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