Skip to main content
Glama

Calendar

get_agenda

Lists a month of school calendar events—tests, trips, and days off—with paging for long months; use event references to fetch details and set the session’s active month.

Instructions

List one month of school calendar events such as tests, trips and days off. Pass an event's reference, when present, to get_agenda_detail. Long months are paged; pass pagination.next_cursor for the rest. Selecting the month also changes the month this login's Librus session remembers.

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": {
      "account_alias": "<account_alias>",
      "year": "<year>",
      "month": "<month>"
    },
    "name": "get_agenda"
  }
}

Input Schema

NameRequiredDescriptionDefault
yearYesCalendar year.
limitNoMaximum items in this page.
monthYesMonth, 1 to 12.
cursorNonext_cursor from the previous page; omit for the first page.
account_aliasYesLogin alias from list_accounts.

Output Schema

NameRequiredDescriptionDefault
yearYes
itemsYes
monthYes
identityYes
timezoneNoEurope/Warsaw
paginationYes
observationYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv2.9.0
    • addedInput schema / $defs
      Added value: +{
      +  "PresentationCursor": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "context": {
      +        "pattern": "^[0-9a-f]{64}$",
      +        "type": "string"
      +      },
      +      "offset": {
      +        "maximum": 4096,
      +        "minimum": 1,
      +        "type": "integer"
      +      },
      +      "query": {
      +        "pattern": "^[0-9a-f]{64}$",
      +        "type": "string"
      +      },
      +      "source": {
      +        "pattern": "^[0-9a-f]{64}$",
      +        "type": "string"
      +      },
      +      "version": {
      +        "const": 1,
      +        "default": 1,
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "context",
      +      "query",
      +      "source",
      +      "offset"
      +    ],
      +    "type": "object"
      +  }
      +}
    • addedInput schema / properties / cursor
      Added value: +{
      +  "anyOf": [
      +    {
      +      "$ref": "#/$defs/PresentationCursor"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "next_cursor from the previous page; omit for the first page."
      +}
    • addedInput schema / properties / limit
      Added value: +{
      +  "default": 256,
      +  "description": "Maximum items in this page.",
      +  "maximum": 256,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • removedOutput schema / $defs / Pagination
      Removed value: -{
      -  "properties": {
      -    "consistency": {
      -      "const": "best_effort",
      -      "default": "best_effort",
      -      "type": "string"
      -    },
      -    "next_cursor": {
      -      "default": null,
      -      "type": "null"
      -    },
      -    "truncated": {
      -      "const": false,
      -      "default": false,
      -      "type": "boolean"
      -    }
      -  },
      -  "type": "object"
      -}
    • addedOutput schema / $defs / PresentationCursor
      Added value: +{
      +  "properties": {
      +    "context": {
      +      "pattern": "^[0-9a-f]{64}$",
      +      "type": "string"
      +    },
      +    "offset": {
      +      "maximum": 4096,
      +      "minimum": 1,
      +      "type": "integer"
      +    },
      +    "query": {
      +      "pattern": "^[0-9a-f]{64}$",
      +      "type": "string"
      +    },
      +    "source": {
      +      "pattern": "^[0-9a-f]{64}$",
      +      "type": "string"
      +    },
      +    "version": {
      +      "const": 1,
      +      "default": 1,
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "context",
      +    "query",
      +    "source",
      +    "offset"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / $defs / SizedWindowPagination
      Added value: +{
      +  "properties": {
      +    "consistency": {
      +      "const": "best_effort",
      +      "default": "best_effort",
      +      "type": "string"
      +    },
      +    "next_cursor": {
      +      "anyOf": [
      +        {
      +          "$ref": "#/$defs/PresentationCursor"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "reason": {
      +      "anyOf": [
      +        {
      +          "enum": [
      +            "item_limit",
      +            "size_limit"
      +          ],
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "truncated": {
      +      "type": "boolean"
      +    }
      +  },
      +  "required": [
      +    "next_cursor",
      +    "truncated",
      +    "reason"
      +  ],
      +  "type": "object"
      +}
    • changedOutput schema / properties / pagination / $ref
      Previous value: -"#/$defs/Pagination"New value: +"#/$defs/SizedWindowPagination"
    • changedOutput schema / required
      Previous value: -[
      -  "items",
      -  "identity",
      -  "observation",
      -  "year",
      -  "month"
      -]New value: +[
      +  "items",
      +  "identity",
      +  "observation",
      +  "pagination",
      +  "year",
      +  "month"
      +]
  2. Changed1 schema field changedv2.8.1
    • changedOutput schema / $defs / Observation / properties / observed_at / pattern
      Previous value: -"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(?:\\.[0-9]{1,6})?(?:Z|[+-][0-9]{2}:[0-9]{2})?$"New value: +"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(\\.[0-9]{1,6})?(Z|[+-][0-9]{2}:[0-9]{2})?$"
  3. Changed2 schema fields changedv2.5.2
    • changedInput schema / properties / year / maximum
      Previous value: -9999New value: +2100
    • changedInput schema / properties / year / minimum
      Previous value: -1900New value: +2001
  4. Changed4 schema fields changedv2.5.0
    • removedOutput schema / $defs / AgendaEventOutput / additionalProperties
      Removed value: -false
    • removedOutput schema / $defs / Pagination / additionalProperties
      Removed value: -false
    • removedOutput schema / $defs / SchoolReferenceInput / additionalProperties
      Removed value: -false
    • removedOutput schema / additionalProperties
      Removed value: -false
  5. Changed5 schema fields changedv2.3.1
    • addedInput schema / properties / account_alias / description
      Added value: +"Login alias from list_accounts."
    • changedInput schema / properties / account_alias / pattern
      Previous value: -"^(?:[^\\s\\x00-\\x1f\\x7f]|[^\\s\\x00-\\x1f\\x7f](?:[^\\s\\x00-\\x1f\\x7f]| )*[^\\s\\x00-\\x1f\\x7f])$"New value: +"^[^\\s\\x00-\\x1f\\x7f](?: *[^\\s\\x00-\\x1f\\x7f])*$"
    • addedInput schema / properties / month / description
      Added value: +"Month, 1 to 12."
    • addedInput schema / properties / year / description
      Added value: +"Calendar year."
    • changedOutput schema / $defs / SchoolReferenceInput / properties / account / pattern
      Previous value: -"^(?:[^\\s\\x00-\\x1f\\x7f]|[^\\s\\x00-\\x1f\\x7f](?:[^\\s\\x00-\\x1f\\x7f]| )*[^\\s\\x00-\\x1f\\x7f])$"New value: +"^[^\\s\\x00-\\x1f\\x7f](?: *[^\\s\\x00-\\x1f\\x7f])*$"
  6. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations only mark this as non-read-only and open-world; the description adds the crucial behavioral fact that selecting a month mutates the login's Librus session state, which justifies readOnlyHint=false. It also discloses pagination for long months, though it says nothing about permissions, rate limits, or failure modes.

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?

Four tight sentences, front-loaded with the core action, then sibling routing, then paging, then the session side effect. No filler, though the side-effect sentence could be flagged more prominently since it is the least expected behavior.

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 five parameters at full schema coverage and an output schema present, the description only needs to cover behavior and chaining, which it largely does: detail routing, pagination continuation, and session mutation. Minor gaps remain around required year/month selection and multi-account alias behavior, both of which the schema already covers.

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?

Schema coverage is 100%, so year, month, limit, cursor and account_alias are already documented in structured fields. The description adds only paging guidance, and its reference to 'pagination.next_cursor' does not match the actual 'cursor' parameter name, which may briefly confuse an agent even though the intent is recoverable.

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 with scope: 'List one month of school calendar events such as tests, trips and days off.' It also explicitly differentiates itself from the sibling get_agenda_detail by naming it as the follow-up call for a single 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?

Gives clear context for use (monthly agenda listing) and routes the agent to get_agenda_detail for per-event detail, plus instructs how to continue paging. It does not address when to prefer other calendar-adjacent siblings like get_class_free_days or get_timetable, so it stops short of full exhaustiveness.

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