Skip to main content
Glama

calendar_query

Read-onlyIdempotent

Search and filter events across all or a specific calendar by title, location, and time range, avoiding large event-list loads.

Instructions

⭐ PREFERRED: Search and filter calendar events efficiently. Use instead of list_events to avoid loading thousands of entries. Omit calendar_url to search across ALL calendars automatically. With a time range, a recurring event is listed as its first occurrence in the range (one already running at the range start counts); a cancelled occurrence is listed too, with its Status.

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": "calendar_query"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of events to return (default 20, max 500). You get the earliest by start date, and the response states how many matched in total.
calendar_urlNoOptional: Specific calendar URL. Omit to search ALL calendars (recommended for "find events with X" queries). Only provide if user explicitly names a calendar. DO NOT use list_calendars first - that defeats cross-calendar search.
summary_filterNoSearch event titles/summaries containing this text (case-insensitive). Example: "meeting with Elena" or "standup". Can be used alone as sufficient filter.
time_range_endNoEnd datetime (ISO 8601). If provided, time_range_start is REQUIRED. Both dates together form a complete filter. Do not omit if start is provided.
location_filterNoSearch event locations containing this text. Example: "Berlin", "Office", "Zoom". Can be used alone as sufficient filter.
time_range_startNoStart datetime (ISO 8601, e.g., 2025-10-30T00:00:00Z). If provided, time_range_end is REQUIRED. Calculate dates for "today", "this week", etc. Can be used alone (with end date) as sufficient filter.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.0.0

TDQS

A4.3/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, so the safety profile is covered. The description adds genuinely non-obvious behavior: recurring events surface as their first occurrence in the range, in-progress occurrences count, and cancelled occurrences are returned with a Status. It does not cover pagination or result ordering beyond the earliest-by-start-date note carried in the schema.

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?

Front-loaded with the recommendation and alternative, followed by scope and edge-case behavior in three tight sentences. The star emoji and "PREFERRED:" marker are slightly gimmicky but do prioritize the routing signal.

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?

No output schema exists, yet the description covers the key return semantics (recurrence collapsing, cancelled occurrences with Status) and cross-calendar scope, leaving little for an agent to guess. Minor gaps around result ordering and pagination are already handled by the limit parameter description.

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 meaning beyond the schema by explaining how the time range interacts with recurrence expansion (first occurrence, already-running occurrence, cancelled occurrence with Status). The calendar_url omission guidance largely repeats the schema field text.

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 and filter calendar events") and immediately contrasts itself with list_events, so the agent can distinguish it from the sibling without opening either schema.

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: "Use instead of list_events to avoid loading thousands of entries," and the schema reinforces the key decision point (omit calendar_url for cross-calendar search, don't call list_calendars first). When-to-use and which alternative to prefer are both stated.

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