Skip to main content
Glama
jasonko
by jasonko

remove_class_students

Remove specified students from a class without affecting their other class enrollments. Provide school, section, and student IDs to update the roster.

Instructions

Remove specific students from a class. Requires PS_ENABLE_WRITES.

SAFETY: Never call this tool or another class-staff/student-enrollment write in parallel. The server serializes the complete school-map read and all resulting student writes within this process.

Each student's other classes are read first and preserved — only this class is dropped. student_ids is required: this tool will not empty a class.

Args: school_id: School ID the class belongs to section_id: Class/section ID (from list_classes) student_ids: The students to remove (from list_class_students)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
school_idYes
section_idYes
student_idsYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.7/5.0
Behavior5/5

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

With no annotations provided, the description carries the full behavioral burden, and it does so thoroughly. It discloses the PS_ENABLE_WRITES requirement, the serialization constraint, the preservation of each student's other classes, and the refusal to empty a class. These details go well beyond a simple mutation statement and reveal important side-effect semantics.

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 front-loaded with the core purpose, then safety, then semantics, then argument definitions. Every sentence earns its place, and the warning about parallel writes is prominent and concise. It is appropriately sized for the complexity of the operation.

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?

Despite having no annotations, the description covers the critical invocation aspects: required permission, concurrency constraints, side-effect preservation, empty-class guard, and parameter sources. Since an output schema exists, the lack of return-value detail is acceptable. An agent has enough information to call this tool safely and correctly.

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

Parameters4/5

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

Schema coverage is 0%, so the description must compensate, and it does. It explains school_id as the student's school, section_id as coming from list_classes, and student_ids as coming from list_class_students, which gives the agent provenance for valid values. It also reinforces the required, non-empty nature of student_ids, adding meaning beyond the raw property definitions.

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 first sentence, 'Remove specific students from a class,' states a precise verb and resource, and the qualifier 'specific' distinguishes it from class-wide mutation tools like add_class_students or move_student_to_class. The subsequent guard 'student_ids is required: this tool will not empty a class' further clarifies exact scope.

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?

The description gives clear context: it removes only specific students, preserves other class enrollments, and will not empty a class. It also provides a strong concurrency exclusion: never call it in parallel with other class-staff or student-enrollment writes. It does not explicitly name alternative sibling tools, but the behavioral context is enough to guide correct invocation.

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