Skip to main content
Glama

Get class results

get_class_results
Read-only

Retrieve full class results for a term, including each student's CA, exam, subject totals and grades, plus overall total and average; missing scores are returned as null.

Instructions

Get every student's scores for a class in a term: CA, exam, subject total and grade per subject, plus each student's total and average. Missing scores are null, never zero. Use for full results tables; use rank_class for positions.

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": {
      "classId": "<classId>"
    },
    "name": "get_class_results"
  }
}

Input Schema

NameRequiredDescriptionDefault
termNoTerm ID such as '2026-T1'. Defaults to the current term.
classIdYesClass ID from list_classes, e.g. 'sch_demo_a_c3'.

Output Schema

NameRequiredDescriptionDefault
termYes
classYes
studentsYes
subjectsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

The annotations already declare readOnlyHint=true and openWorldHint=false, so safety and scope are covered. The description adds genuinely non-structured information: that missing scores are returned as null rather than zero, which materially changes how an agent interprets and reports results, and it names the returned fields. It does not discuss permissions or result size, but the output schema covers the 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?

Three tight sentences: what it returns, the null-not-zero semantic, then the routing rule. The most decision-relevant content (scope and returned data) is front-loaded and nothing is wasted.

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?

For a two-parameter read-only reporting tool with a full output schema, this covers the important ground: scope, returned fields, missing-data semantics, and sibling routing. Return-value format details are correctly left to the output schema, so nothing an agent needs in order to call it correctly is absent.

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 description coverage is 100% and both parameters are documented in-schema, including the term default. The description's 'for a class in a term' merely restates the parameters without adding format or constraint detail, so the schema does the heavy lifting and the 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 every student's scores for a class in a term') and enumerates exactly which data fields come back: CA, exam, subject total and grade, plus total and average. It also explicitly differentiates from the sibling rank_class, so an agent can select it without opening either 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?

Gives a clear selection rule: 'Use for full results tables; use rank_class for positions.' That names both the when-to-use case and one explicit alternative with the condition that selects it. It does not address the other plausible siblings (get_student_report, find_missing_scores), so it stops short of full routing coverage.

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