mark_attendance
Set one student's attendance status for a single session, with a preview first and a confirmed write only after teacher approval; other students remain unchanged.
Instructions
Set ONE student's attendance for ONE session. Single action only.
Without confirm=True this returns a PREVIEW of the exact change and does not write anything. Call again with confirm=True only after the teacher approves. It replays every other student's current state unchanged and flips only this student, so no one else's attendance is touched.
status is "absent", "late" (retard), or "present" (clears any absence/late). reason_code is the motive code for absent/late (e.g. 10=MALALT, 11=METGE, 12=GESTIONS). justified marks an absent/late as justified.
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": {
"cgap": "<cgap>",
"sessio": "<sessio>",
"alu_id": "<alu_id>"
},
"name": "mark_attendance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cgap | Yes | ||
| alu_id | Yes | ||
| sessio | Yes | ||
| status | No | absent | |
| confirm | No | ||
| justified | No | ||
| reason_code | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |