hivelearn_create_quiz_question
Add a question to a quiz. Supply the answer field for the type: multiple_choice → options [{text, is_correct}] with exactly one is_correct:true; multi_select → options with one or more correct; true_false → correct_answer (boolean); fill_in_blank → accepted_answers; matching → pairs [{left, right}]; ordering → items [{text}] in correct order (or with position 1..n).
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_text": "<question_text>",
"question_type": "<question_type>"
},
"name": "hivelearn_create_quiz_question"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | No | ordering only; correct order is position 1..n, or array order if positions are omitted | |
| pairs | No | matching only; at least 2 pairs | |
| points | No | Defaults to 1 | |
| options | No | multiple_choice (exactly one is_correct:true) or multi_select (one or more). 2-12 entries. | |
| quiz_id | Yes | ||
| sort_order | No | ||
| explanation | No | ||
| question_text | Yes | ||
| question_type | Yes | ||
| correct_answer | No | true_false only | |
| accepted_answers | No | fill_in_blank only; matched case-insensitively |