Check an answer
check_answerCheck the user's answer to a question from get_practice_questions. Use it when the user answers one of those questions. selected is the option letters the user chose, e.g. ["B"] or ["A", "D"]. Returns whether it is right, the correct letters and the explanation.
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": {
"exam": "<exam>",
"question_id": "<question_id>",
"selected": "<selected>"
},
"name": "check_answer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| exam | Yes | ||
| selected | Yes | ||
| question_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| correct | Yes | ||
| selected | Yes | ||
| explanation | Yes | ||
| question_id | Yes | ||
| correct_options | Yes | ||
| more_questions_url | Yes |