check_answer
Grades a user's raw quiz answer, automatically scoring exact verdicts and recording XP/streak, or returns guidance for manual judging and reformatting when needed.
Instructions
EVALUATE step 1: ALWAYS call this first with the user's raw reply. For letters, ordering, matching, true/false verdicts and accepted commands it grades exactly and records XP/streak itself (auto_graded=true): then just explain. Otherwise (auto_graded=false) it tells you how to judge, and you finish with record_result. bad_format=true means ask the user to reformat; the question stays open.
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": {
"question_id": "<question_id>",
"user_answer": "<user_answer>"
},
"name": "check_answer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_id | No | default | |
| question_id | Yes | ||
| user_answer | Yes |