Check a quiz answer
check_answerCheck the user's answer to one create_quiz question. Pass the question's ticket, the user's answer exactly as given (a letter, a name or a code), and the score_ticket from the previous check_answer, if there was one. Returns whether it was correct, the right answer, facts to share in the user's language, and the new score.
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": {
"ticket": "<ticket>",
"answer": "<answer>"
},
"name": "check_answer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| answer | Yes | The user's answer as given: an option letter, a name, or a code. | |
| ticket | Yes | The ticket of the question being answered. | |
| score_ticket | No | The score_ticket from the previous check_answer. Leave out for the first question. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| about | Yes | Facts to share. A population question has populations and source; the others have country facts. | |
| score | Yes | The running score. | |
| correct | Yes | Whether the answer was right. | |
| play_url | No | A page on the site to play. Share it once. | |
| game_over | Yes | True after the last life is lost. | |
| score_ticket | Yes | Send this with the next check_answer. | |
| correct_answer | Yes | The right answer in the quiz language. |