Create questions
moodle_create_questionsCreates one or more Moodle question-bank questions from structured definitions (multichoice, truefalse, shortanswer, numerical, essay, match, description) and returns new question IDs.
Instructions
Creates one or more questions in a question-bank category from structured definitions (multichoice, truefalse, shortanswer, numerical, essay, match, description). Returns the new question ids.
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": {
"category_id": "<category_id>",
"questions": "<questions>"
},
"name": "moodle_create_questions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cmid | No | Quiz cmid: use the quiz's own question bank instead of the course one | |
| courseid | No | Course id: use the course question bank | |
| questions | Yes | ||
| category_id | Yes |