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
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | ||
| user_ids | No | ||
| section_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |