Skip to main content
Glama

get_calendar_context

Read-onlyIdempotent

Retrieve a calendar's current event, next upcoming event, recent past events, and the owning agent's status in one call to answer what an agent is doing right now.

Instructions

Get a calendar's temporal context in a single call: the current event (if one is happening now), the next upcoming event, recent past events, a short upcoming window, and the owning agent's status (idle/working/waiting/error). Use this to answer "what is this agent doing right now?" without listing events separately. Recurring series appear as their occurrences (with recurringEventId); when events overlap, the current event is the most recently started.

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": {
      "calendar_id": "<calendar_id>"
    },
    "name": "get_calendar_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
calendar_idYesCalendar ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv1.8.4
    • addedInput schema / properties / calendar_id / maxLength
      Added value: +128
    • addedInput schema / properties / calendar_id / minLength
      Added value: +1
    • addedInput schema / properties / calendar_id / pattern
      Added value: +"^[A-Za-z0-9_-]*$"
  2. First observedv1.2.5

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the description adds value with aggregation semantics: recurring series are returned as occurrences with recurringEventId, and overlapping events resolve to the most recently started one. It does not quantify the "short upcoming window" or "recent past" boundaries, nor the ordering of past events, which leaves real ambiguity about result composition.

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?

The definition is front-loaded with the primary purpose, then enumerates return contents, then usage, then edge-case behavior in decreasing priority. Every sentence contributes new information with no filler or repetition of the tool name.

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?

With no output schema, the description carries the burden of explaining return values and does so by enumerating all five components, including the agent status enumeration. The main residual gaps are the unspecified window lengths and the shape/order of the returned collections, which matter for an aggregate query tool.

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

Parameters3/5

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

There is a single parameter (calendar_id) with 100% schema description coverage, so the schema already carries the parameter documentation burden. The description adds no additional meaning about the ID's format, source, or behavior, which is the baseline expectation at this coverage level.

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 uses a specific verb and resource ("Get a calendar's temporal context") and then enumerates exactly what the aggregate contains: current event, next upcoming event, recent past events, a short upcoming window, and the owning agent's status. It also distinguishes itself from the alternative pattern of "listing events separately," so an agent can tell it apart from get_calendar and get_event.

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?

It gives an explicit use case — answering "what is this agent doing right now?" — and notes that this replaces enumerating events one by one. It stops short of naming a specific sibling tool or stating when NOT to use it (e.g., when only a single event's details are needed).

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