Check a quiz answer
check_answerGrades one answer from a start_quiz round. Returns whether it is correct, the correct answer, the explanation, its sources, the running score and the quiz_id for the next answer; after the last question it also returns the final score. The round's progress and score are held in the quiz_id, which changes with every answer, and grading stores nothing. A quiz_id grades each question once.
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": {
"quiz_id": "<quiz_id>",
"question_id": "<question_id>",
"answer": "<answer>"
},
"name": "check_answer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| answer | Yes | multiple_choice and fill_blank: the index of the option, from 0. true_false: true or false. match_pairs: an array with, for each item of lefts in order, the index of its match in rights. | |
| quiz_id | Yes | For the first answer of a round, the quiz_id from start_quiz. For each later answer, the quiz_id from the latest check_answer result. It holds the round's progress and score. | |
| language | No | Language of the questions, options and explanations. Default en. | |
| question_id | Yes | The id of the question in the round. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| final | No | ||
| score | No | ||
| total | No | ||
| streak | No | ||
| correct | No | ||
| quiz_id | No | The quiz_id for the next answer of this round | |
| sources | No | ||
| answered | No | ||
| finished | No | ||
| play_url | Yes | ||
| source_url | No | ||
| attribution | Yes | ||
| explanation | No | ||
| correct_match | No | ||
| correct_value | No | ||
| match_results | No | ||
| correct_option | No |