Check an answer
check_answerFor a quiz question of a lesson: says whether the answer is right, which option is, and why. For an exercise: gives its hint and its reference answer to compare the learner’s attempt with (this server does not grade free text and never runs code); offer the hint first and the reference only after a try.
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": {
"pattern": "<pattern>",
"kind": "<kind>",
"number": "<number>"
},
"name": "check_answer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | A quiz question or an exercise | |
| lang | No | The language of the answer: en (the default), pl; es, pt, fr, de, ja and ko for patterns and lessons (the course stays in English there) | |
| answer | No | The learner’s answer: for the quiz the option’s text or its number (1 to 3); for an exercise optional | |
| number | Yes | Its number in the lesson, from 1 | |
| pattern | Yes | The pattern (its slug), as list_patterns gives it |