Skip to main content
Glama
thehesiod

io.github.thehesiod/psquare

by thehesiod

list_classes

Retrieve all classes for a school, including grades, teachers, and room-parent counts, with optional filters by name or grade.

Instructions

List a school's classes (sections) with grades, teachers, and room-parent counts.

Returns every class in one call. Use the section_id from results with get_class, edit_class, add_class_staff, remove_class_staff, and set_class_visibility.

Args: school_id: School ID (from list_schools) name_contains: Optional case-insensitive substring filter on class name grade: Optional case-insensitive filter on grade name (e.g. "Kindergarten")

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
gradeNo
school_idYes
name_containsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

No annotations are provided, so the description must disclose behavior itself. It does mention that the tool returns every class in one call, and it lists the output fields (grades, teachers, room-parent counts). However, it does not explicitly state side effects (though 'list' implies read-only), error conditions, or rate limits. For a list tool this is acceptable but not exhaustive.

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?

The description is efficiently structured: a lead sentence stating purpose, a second sentence explaining usage and downstream tools, and a clear Args block. No redundant words; every sentence earns its place. The purpose is front-loaded.

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?

The description covers the tool's purpose, parameters, and how to use the results with other tools. Since an output schema exists, return details are not needed. It lacks explicit error-handling information, but for a simple list tool with a required school_id, the description is sufficient for correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, but the description's Args section fully explains each parameter: school_id (from list_schools), name_contains (case-insensitive substring filter), and grade (with an example 'Kindergarten'). It adds meaning beyond the schema's bare types and demonstrates how filters behave.

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 begins with a specific verb ('List') and resource ('classes'), with detail on included fields (grades, teachers, room-parent counts). It clearly distinguishes this bulk-list operation from single-class tools like get_class, and explains what the section_id will be used for. The purpose is unambiguous and distinct from siblings.

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?

It states 'Returns every class in one call,' which implies the use case of obtaining all classes at once. It explicitly instructs the agent to use the section_id from results with get_class, edit_class, and related tools, giving clear downstream usage. It does not name alternatives or exclusions explicitly, but the context makes when-to-use clear.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/thehesiod/psquare-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server