Skip to main content
Glama

get_calendar

Read-onlyIdempotent

Fetch school calendar events from Lanis for a date range and optionally include responsible person details to review schedules and plan around upcoming dates.

Instructions

Return calendar events from Lanis for a given date range.

Fetches school calendar events (Kalender) between the specified start and end dates.

Args: params (CalendarInput): Validated input parameters: - start (str): Start date as YYYY-MM-DD - end (str): End date as YYYY-MM-DD - response_format (str): 'markdown' (default) or 'json' - include_responsible (bool): If True, fetch the responsible person for each event. Warning: makes one extra API call per event.

Returns: Calendar events for the date range. JSON schema: { "start": "YYYY-MM-DD", "end": "YYYY-MM-DD", "count": int, "events": [ { "title": str, "description": str, "place": str, "start": "YYYY-MM-DD HH:MM", "end": "YYYY-MM-DD HH:MM", "whole_day": bool, "responsible": str # only present when include_responsible=True } ] }

Error Handling: - Returns "Error: ..." on API or auth failure - Returns "No events found ..." if calendar is empty

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": {
      "params": "<params>"
    },
    "name": "get_calendar"
  }
}

Input Schema

NameRequiredDescriptionDefault
paramsYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered. The description adds real behavioral context beyond that: the per-event extra API call cost of include_responsible, the 'Error: ...' string returned on API/auth failure, and the 'No events found ...' case for an empty calendar. Return shape is described but is also captured by the output 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?

Purpose is front-loaded in the first line, then Args/Returns/Error Handling sections in a predictable order. The whole thing is larger than it needs to be, because the full Args and JSON return schema repeat what the input and output schemas already declare. For a tool of this complexity the length is defensible but the Returns block is largely redundant.

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?

Covers inputs, output shape, and error/empty-result behavior, which is complete for a two-date read tool. With an output schema present, the embedded return JSON is redundant rather than necessary, and the missing piece is sibling routing guidance.

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?

The Args block restates start/end formats and the response_format options that the schema already documents, and the include_responsible cost warning also appears in the schema text. It confirms meaning but contributes little new information, so the baseline of 3 for schema-documented parameters applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Return calendar events from Lanis') plus the scope ('for a given date range'), so the agent knows exactly what it retrieves. It does not name the sibling get_calendar_of_month, so the boundary between a date-range fetch and a month fetch is left to inference.

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 is only implied by the required start/end dates; there is no explicit when-to-use or when-to-prefer-an-alternative guidance, and neither get_calendar_of_month nor get_timetable is mentioned. The agent can infer the range-based case, but the routing decision is not spelled out.

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