add_class
Create a new school class by providing school ID, name, and grade IDs. The class stays hidden from staff, parents, and students until you set its visibility.
Instructions
Create a new class (section) at a school. Requires PS_ENABLE_WRITES.
New classes are created hidden — they are not visible to staff, parents, or students until you call set_class_visibility. Assign teachers afterwards with add_class_staff.
Args: school_id: School ID name: Class name (e.g. "Ms. Smith's Class") grade_ids: One or more grade IDs the class belongs to (from list_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": {
"school_id": "<school_id>",
"name": "<name>",
"grade_ids": "<grade_ids>"
},
"name": "add_class"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| grade_ids | Yes | ||
| school_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |