Skip to main content
Glama

List classes

list_classes
Read-only

Retrieve a school's classes with grade level and student counts, then use the returned class IDs to request results or reports.

Instructions

List the classes in a school, with grade level and number of students. Use this first to discover class IDs before asking for results or reports.

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": {
      "schoolId": "<schoolId>"
    },
    "name": "list_classes"
  }
}

Input Schema

NameRequiredDescriptionDefault
schoolIdYesThe school's ID, e.g. 'sch_demo_a'. Phase 2 replaces this with token-scoped access.

Output Schema

NameRequiredDescriptionDefault
schoolYes
classesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds that records carry grade level and student count, and that the returned IDs are needed downstream, but says nothing about pagination, ordering, or auth beyond the existing hints.

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 short sentences, zero waste. The what-it-returns clause comes first, and the workflow instruction is front-loaded with "Use this first".

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 a rich annotation set, an output schema, and a single fully documented parameter, the description covers everything needed to select and invoke the tool. Only pagination/ordering behavior is left implicit, which is minor given the output schema.

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 the single schoolId parameter already carries a description and example. The description never mentions schoolId, so it adds no meaning beyond the schema; 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 ("List the classes in a school") plus the fields returned (grade level, number of students). An agent can distinguish it from the results/report siblings without opening the 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 explicit sequencing guidance: call this first to discover class IDs before asking for results or reports, which routes the agent toward get_class_results/get_student_report. It does not name those siblings or state any exclusion, so it stops short of a full 5.

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