Skip to main content
Glama

Attendance frequency

get_attendance_frequency
Read-only

Retrieve attendance totals for each semester and the school year, including attended, total, excluded and unknown lesson counts with 0-1 ratios. Use get_subject_frequency for per-subject breakdowns.

Instructions

Get attendance totals for each semester and the year: attended, total, excluded and unknown lessons, with ratios from 0 to 1 (null when undefined). For a per-subject breakdown use get_subject_frequency.

Input Schema

NameRequiredDescriptionDefault
account_aliasYesLogin alias from list_accounts.

Output Schema

NameRequiredDescriptionDefault
dataYes
identityYes
observationYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv2.5.0
    • removedOutput schema / $defs / FrequencyData / additionalProperties
      Removed value: -false
    • removedOutput schema / additionalProperties
      Removed value: -false
  2. Changed2 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])*$"
  3. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds behavior beyond that: ratios are bounded 0-1 and are null when undefined, and totals are aggregated per semester and year rather than per lesson. It doesn't discuss pagination or account scoping, but the output schema covers return shape.

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?

Two sentences, the core behavior and output fields front-loaded, with the sibling routing sentence last. No filler and nothing duplicated from structured fields beyond brief field naming.

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?

Single-parameter read tool with an output schema and annotations already in place; the description supplies the aggregation scope, ratio semantics, and the alternative route. Nothing an agent needs in order to call it correctly is missing.

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 required parameter (account_alias) whose schema description (100% coverage) already says 'Login alias from list_accounts.' The description adds nothing about that parameter, so the schema does all the work and baseline 3 applies.

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 ('Get attendance totals') plus the exact scope (each semester and the year) and enumerates the returned measures (attended, total, excluded, unknown lessons). It explicitly names the sibling get_subject_frequency as the different case, so the agent can tell the two apart without opening a schema.

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?

The final sentence gives explicit routing: use get_subject_frequency for a per-subject breakdown. However, it does not distinguish this aggregated-frequency tool from the many related attendance siblings (get_attendance, get_attendance_window, get_attendance_detail), so some ambiguity remains.

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