Skip to main content
Glama
thehesiod

io.github.thehesiod/psquare

by thehesiod

remove_class_staff

Remove specific staff or all holders of a role (teacher, assistant, room parent) from a class while preserving other members. Specify user IDs or role to clear.

Instructions

Remove staff or room parents from a class. Requires PS_ENABLE_WRITES.

SAFETY: Never call this tool or add_class_staff in parallel, even for different sections. ParentSquare replaces the full staff list, and concurrent writes have caused unrelated associations to disappear. The server serializes calls within this process; still use one call at a time and verify with a fresh get_class read before the next class-staff write.

Pass user_ids to remove specific people, role to remove everyone holding that role on the class (e.g. role="ROOM_PARENT" clears that class's room parents), or both to remove only those people who hold that role. Everyone else on the class is preserved. To clear room parents school-wide, call list_classes and repeat this for each class with room_parent_count > 0.

Args: section_id: Class/section ID (from list_classes) user_ids: One or more people to remove (optional if role is given) role: Remove all holders of this role: TEACHER, ASSISTANT, or ROOM_PARENT

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
roleNo
user_idsNo
section_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

With no annotations provided, the description carries the full burden, and it delivers. It discloses that this is a write operation requiring PS_ENABLE_WRITES, explains the concurrency risk and the serialization behavior, details exactly what happens when removing by user_ids vs role, and explicitly states that 'Everyone else on the class is preserved.' It also recommends verifying with a fresh get_class read, making side effects transparent.

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?

Though lengthy, every sentence earns its place. The structure front-loads the core action, then a critical SAFETY warning, then usage semantics, then parameter details. There is no filler or repeated information. The layout is clean and scannable, with the warning prominently placed to prevent misuse.

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 mutation tool with no annotations and high behavioural risk, the description is remarkably complete. It covers prerequisites, safety constraints, operational steps, parameter semantics, and even mentions verifying results. The output schema existence means return values need not be explained, and nothing an agent needs to call this correctly is missing.

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%, so the description must compensate, and it does thoroughly. It explains section_id as the class/section ID from list_classes, clarifies that user_ids is optional if role is given, and enumerates the role values (TEACHER, ASSISTANT, ROOM_PARENT) with an example. This adds meaning far beyond the bare JSON 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 states a specific verb ('Remove') and a clear resource ('staff or room parents from a class'), immediately distinguishing it from siblings like add_class_staff. It also specifies the class context and the two removal modes, so an agent can tell what the tool does without ambiguity.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides explicit usage guidance: it warns against parallel calls with add_class_staff, explains when to use user_ids versus role, clarifies that role removes all holders of that role, and even gives a strategy for school-wide clearing via list_classes. This goes far beyond basic 'when to use' and includes concrete operational directives.

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