Skip to main content
Glama

students_at_risk

Flag students at risk by scanning for high absences, late submissions, and low grades across courses, prioritizing those with multiple concerns.

Instructions

One list per student across every course that matches: absences at or over the limit, assignments past their due date and not handed in, and failing marks (below the pass mark, on assignments and on gradebook items such as Final). A student with trouble in two or more courses, or of two kinds, ranks first. Each source says whether it could be read: a lecturer's token usually cannot read the gradebook, and attendance needs the mod_attendance_* functions.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
searchNoWhich courses: text in their short name, e.g. "262701_FL"_FL
pass_markNoMarks below this, out of 100, count as failing (ESE: 40)
max_absencesNoAbsences (excused + unexcused) that count as a signal
lates_per_absenceNoLate arrivals that make one absence (ESE: 3)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.4.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations present, the description carries the full burden, and it does so well: it discloses cross-course aggregation, the two-signal ranking rule, and per-source readability caveats. It does not explicitly state that the operation is read-only or describe output fields, but the 'could be read' framing implies a safe reporting tool.

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, each earning its place: the first defines the matching criteria, the second explains ranking and accessibility caveats. The core information is front-loaded and there is no filler.

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?

For a tool with no output schema and no annotations, the description covers the essential contract: criteria, aggregation, ranking, and source-readability limits. It stops short of specifying the exact output representation or how source readability is reported, but enough is present for correct selection and invocation.

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% and each parameter already has a clear description, so the baseline of 3 applies. The narrative reinforces the roles of max_absences and pass_mark but adds no new facts beyond the schema; search and lates_per_absence are only documented in the schema.

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 names a concrete deliverable – a per-student list across every course – and defines it by three explicit risk signals: absences over the limit, overdue unhanded assignments, and failing marks. This uniquely separates it from single-source siblings like attendance_report, missing, or gradebook, even without naming them.

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?

It provides useful context for use, such as the ranking rule and token limitations (lecturer token usually cannot read the gradebook; attendance requires mod_attendance_* functions). However, it never explicitly tells the agent when to choose this tool over alternatives like missing, gradebook, or attendance_report, or when not to use it.

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