edit_class
Update class details by renaming it or changing its room code or grade assignments. Provide the class and school IDs, then specify the fields to modify.
Instructions
Rename a class or change its room code / grades. Requires PS_ENABLE_WRITES.
Only provided fields change — current values are read back from the class first and resent, because the underlying endpoint replaces what it is given. Staff are not affected; use add_class_staff / remove_class_staff for those.
Args: section_id: Class/section ID (from list_classes) school_id: School ID the class belongs to name: New class name (optional) room: New room code / external ID, e.g. "Room 5" (optional) grade_ids: New list of grade IDs (optional; replaces the current grades)
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": {
"section_id": "<section_id>",
"school_id": "<school_id>"
},
"name": "edit_class"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| room | No | ||
| grade_ids | No | ||
| school_id | Yes | ||
| section_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |