Register for Program
register_for_programRegisters one of the caller's own students for a school program (before/after-school care, enrichment, camp). Returns status 'registered' when a seat is available or 'waitlist' when the program is at capacity - the backend enforces the capacity check atomically. The response records the program fee (amountCents) owed; no wallet charge happens on this call. program_id comes from list_school_programs, student_id from get_my_context. WRITE - confirm the student and program before calling.
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": {
"program_id": "<program_id>",
"student_id": "<student_id>"
},
"name": "register_for_program"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | Optional note to staff attached to the registration | |
| program_id | Yes | Program ID - from list_school_programs | |
| student_id | Yes | Student to register (must be your own student, from get_my_context) | |
| school_slug | No | School slug (defaults to the active school) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Registration ID - input to cancel_program_registration | |
| status | No | Registration status ('registered' or 'waitlist') | |
| programId | No | Program registered for | |
| amountCents | No | Program fee recorded on the registration, in cents |