QuizClap: Live Quizzes, Polls & Q&A

v1.1.1
io.github.NusaAI/quizclap Checked 4 days ago Published 2 days ago

Live university Q&A, polls, LaTeX STEM quizzes, closed-book exams and Moodle banks over MCP.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_events List events

Lists your events (newest class date first) with their join, host and projector links, and your folders (each event's folderId names its folder; null = Unfiled).

list_templates List starter templates

Starter packs that can fill a new or existing event in one step.

create_event Create event

Creates an event (one class session). Optionally fill it at once from a template and/or content. All content is checked first; if any item is invalid nothing is created and the errors are listed.

get_event Get event content

The event's links and folderId, its class theme (null = the plain look), Q&A settings and counts, what is on stage now, and every poll and quiz with its id. Read this before editing.

ParameterTypeDescription
code *stringEvent code, e.g. ABC123

update_event Update event

Changes the title, class date, code, folder or class theme. Students already in the room see the change at once.

ParameterTypeDescription
code *stringEvent code, e.g. ABC123
datestring | nullYYYY-MM-DD, or null to clear
folder_idstring | nullFolder id from list_events (null = Unfiled). Left out: create puts the event in Unfiled, copy uses the original's folder, update leaves it.
new_codestringNew event code
themestring | nullClass theme for the projector and the phones: one of 44 presets (dark: midnight, chalkboard, ocean, forest, observatory, espresso, graphite, burgundy, nordic, copper, botanical, oled, cosmos, quantum,…
titlestringNew title

copy_event Copy event

Makes a new event with the same Q&A settings, polls and quizzes (for next week's class). Questions, answers and scores are not copied.

ParameterTypeDescription
code *stringEvent code, e.g. ABC123
new_code *stringCode for the new event
datestringYYYY-MM-DD
folder_idstring | nullFolder id from list_events (null = Unfiled). Left out: create puts the event in Unfiled, copy uses the original's folder, update leaves it.
titlestringTitle (default: same)

delete_event Delete event

Moves an event to 7-day Recently deleted Trash (recoverable on the website dashboard; requires a 'full' API key). Repeat the code in confirm_code.

ParameterTypeDescription
code *stringEvent code, e.g. ABC123
confirm_code *stringThe same event code again

add_content Add polls and quizzes

Adds polls and quizzes to an event in bulk, after the ones already there. Accepts JSON content, a template id, text (quick paste, Moodle XML, GIFT, Aiken, Cloze, Missing word or Blackboard; format auto-detects), or a whole file as base64 (Word table .docx, Blackboard .zip, .xlsx). All or nothing unless partial is true. The reply says which format was read and lists notes on anything left out. A QuizClap JSON backup (get_event's content, or the export with what=content and format=json) also sets the class theme and Q&A settings it carries.

update_poll Replace a poll

Replaces a poll's definition. While phones have answered, only wording can change, not the shape (options count, kinds).

ParameterTypeDescription
code *stringEvent code, e.g. ABC123
id *integerPoll id from get_event
poll *objectA poll set: 1 to 20 questions of any kind, mixed freely (each question has its own kind). A set with more than one question is stored with type "survey" and runs one question at a time (the lecturer s…

update_quiz Replace a quiz

Replaces a quiz's definition. After players have answered, only wording can change (reset_results first to change more).

ParameterTypeDescription
code *stringEvent code, e.g. ABC123
id *integerQuiz id from get_event
quiz *objectA timed speed quiz, game-mode quiz (Arena, Team race, Class co-op), or closed-book exam.

copy_item Duplicate a poll or quiz

Duplicates a poll or quiz right after itself (handy for a round 2 vote).

ParameterTypeDescription
code *stringEvent code, e.g. ABC123
id *integerPoll or quiz id
kind *stringItem kind: poll or quiz

transfer_item Copy or move a poll or quiz to another event

Copies (move false, default) or moves (move true) one poll set or quiz and its pictures into another event you own. Student answers and scores are not copied; moving removes the item from the source event.

ParameterTypeDescription
code *stringEvent code, e.g. ABC123
id *integerPoll or quiz id
kind *stringItem kind: poll or quiz
to *stringTarget event code, e.g. BIO101-W04
movebooleantrue = move (removes from source event), false = copy (default)

delete_item Delete a poll or quiz

Deletes a poll or quiz and its answers.

ParameterTypeDescription
code *stringEvent code, e.g. ABC123
id *integerPoll or quiz id
kind *stringItem kind: poll or quiz

reorder Reorder polls or quizzes

Sets the order of polls or of quizzes. Give every id of that kind in the new order.

ParameterTypeDescription
code *stringEvent code, e.g. ABC123
ids *arrayEvery poll or quiz id of that kind in the new order
kind *stringItem kind: poll or quiz

reset_results Reset results

Clears a poll's responses or a quiz's players and scores (e.g. after a dry run). The questions stay.

ParameterTypeDescription
code *stringEvent code, e.g. ABC123
id *integerPoll or quiz id
kind *stringItem kind: poll or quiz

stage_control Control the live stage

Runs the live class. Only one poll or quiz is on stage at a time. Polls: poll_launch (id), poll_lock / poll_unlock voting, poll_show_results / poll_hide_results, poll_reveal_answer / poll_hide_answer, poll_survey_question (question number: the projector's results page, or in a paced survey the question everyone answers now). Quizzes: quiz_launch (id, opens the lobby), quiz_next (lobby > question > reveal > leaderboard > ... > podium), quiz_back, quiz_end_timer. Live slides: slide_show_last puts the newest slide the lecturer snapped back on every phone and the projector, slide_hide takes it off…

ParameterTypeDescription
action *stringLive stage action to execute
code *stringEvent code, e.g. ABC123
idintegerPoll or quiz id (for poll_launch and quiz_launch)
questionintegerSurvey question number from 1 (poll_survey_question)
secondsintegerExtra seconds to add (5 to 300, for quiz_add_time)
themestring | nullClass theme for the projector and the phones: one of 44 presets (dark: midnight, chalkboard, ocean, forest, observatory, espresso, graphite, burgundy, nordic, copper, botanical, oled, cosmos, quantum,…

qa_settings Q&A and student settings

Turns Q&A on or off for students, opens or closes it for new questions, turns moderation on or off, allows or stops students adding a name, toggles the optional Student ID / NIM prompt, and toggles post-class self-study quiz review.

ParameterTypeDescription
code *stringEvent code, e.g. ABC123
allowNamesbooleanStudents may show their event name on questions
askStudentIdbooleanAsk students for their Student ID / NIM for attendance and gradebook exports (host-only)
attendPctintegerParticipation % threshold for Present status in attendance exports (0 to 100)
enabledbooleanQ&A shown to students
lockEntrybooleanLock room entry against new unknown phones (already-joined students keep working)
moderationbooleanNew questions wait for approval
openbooleanAccepting new questions
pacePulsebooleanShow live Got it / Too fast comprehension bar on student phones
selfStudybooleanAllow students to practice/review quizzes on their own when no quiz is running

list_questions List Q&A questions

Q&A questions with ids for moderation, most voted first (or newest).

ParameterTypeDescription
code *stringEvent code, e.g. ABC123
sortstringSort order: votes (default) or newest
statusstringopen = visible and not answered yet

moderate_question Moderate a Q&A question

approve (a pending question), hide, show, answer / unanswer (mark as answered), reply (text; empty removes the reply), highlight / unhighlight (on the projector), delete. Blocking or unblocking a student device is human-only in the lecturer's browser console.

ParameterTypeDescription
action *stringModeration action to apply to the question
code *stringEvent code, e.g. ABC123
id *integerQuestion id
textstringReply text (for reply)

clear_questions Remove all Q&A questions

Removes every Q&A question (e.g. after a dry run). Repeat the event code in confirm_code.

ParameterTypeDescription
code *stringEvent code, e.g. ABC123
confirm_code *stringThe same event code again

get_results Get results

Everything the event collected: Q&A questions, poll tallies (and each response if include_responses), and per quiz the item analysis (responses, % correct, average seconds, answer counts per option) and the full leaderboard. Names are random nicknames, not real students (set include_student_ids to true with a teach or full key only when exporting a student-ID gradebook).

ParameterTypeDescription
code *stringEvent code, e.g. ABC123
include_responsesbooleanInclude every poll response (can be long)
include_student_idsbooleanInclude student IDs and proctor records (requires teach or full key; omitted by default for privacy)

get_report Get post-class report

Short report after class: participants, Q&A asked and answered, polls and quizzes run, overall quiz accuracy, weak questions (under 60% correct, with the most picked wrong answer) and the most upvoted unanswered questions.

ParameterTypeDescription
code *stringEvent code, e.g. ABC123

upload_image Upload a picture

Stores an AVIF, WebP, PNG or JPEG picture (up to 1 MB, at most 1440 px on the longest side is plenty) for an event and returns its id. Then set "image" on a poll or quiz question to that id. The same picture twice gives the same id.

ParameterTypeDescription
code *stringEvent code, e.g. ABC123
data_base64 *stringThe picture file, base64 encoded (no data: prefix)

list_images List pictures

The event's pictures with their ids, sizes and whether a question uses them.

ParameterTypeDescription
code *stringEvent code, e.g. ABC123

delete_image Delete a picture

Deletes one picture from the event. A picture that a question still shows is kept unless force is true (the question then shows no picture).

ParameterTypeDescription
code *stringEvent code, e.g. ABC123
image *stringPicture id
forcebooleanDelete even if a question shows it

get_usage Free plan usage

Site admins only: how much of the Cloudflare free plan QuizClap uses today: requests, database size, pictures stored, uploads, deletes and picture loads, each with its limit.