Skip to main content
Glama

Generate a quiz with AI

quiz_video_generate_quiz

AI-generate and save a quiz from a topic. Prefer providing themeDescription or themeCustomization; when omitted, the server derives and saves a topic-based custom theme. Omit backgroundMusicId to use default YouTube-safe shared background music, or set null for silent. The response data always includes a watchUrl (the public quiz-viewer page, instantly playable). When autoRender is true, data.render also contains the queued render session so the agent can poll quiz_video_get_render for the MP4.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
topicYesSubject the AI should build the quiz around.
formatNoOutput aspect ratio. Defaults to "tiktok".
quizTypeNoQuiz mechanic to generate.
templateNoVisual template id. If omitted, the saved custom theme can suggest a matching template.
autoRenderNoIf true, immediately queue a video render for the new quiz. The render session (sessionId, status) is returned under `data.render`; poll quiz_video_get_render with that sessionId for progress and the final videoUrl. Rendering typically takes 1-5 minutes. Quiz creation is not blocked by render-queue failures — the quiz is returned either way.
difficultyNoTarget difficulty level.
musicVolumeNoBackground music volume from 0 (silent) to 1 (full). Default 0.15.
extraDirectionNoAdditional instructions to steer the AI (tone, focus areas, exclusions).
countdownSecondsNoSeconds of countdown shown before each question (3-15).
progressBarStyleNoCountdown progress indicator style.
themeDescriptionNoNatural-language custom visual theme prompt. Example: "golden luxury game show", "ocean glass", or "cyber neon".
answerOptionCountNoFor multiple-choice quizzes, generate 3 or 4 answer options per question. Defaults to 4.
backgroundMusicIdNoBackground music track id from /api/v1/music. Omit to use the default YouTube-safe shared track; set null for silent.
numberOfQuestionsNoHow many questions to generate (1–200).
themeCustomizationNoExplicit custom theme to save and apply to the generated quiz. Use themeDescription for prompt-style themes.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / backgroundMusicId / description
      Previous value: -"Background music track id from /api/v1/music. Omit to use the default shared track; set null for silent."New value: +"Background music track id from /api/v1/music. Omit to use the default YouTube-safe shared track; set null for silent."
  2. Changed2 schema fields changed
    • changedInput schema / properties / numberOfQuestions / description
      Previous value: -"How many questions to generate (1–20)."New value: +"How many questions to generate (1–200)."
    • changedInput schema / properties / numberOfQuestions / maximum
      Previous value: -20New value: +200
  3. Changed1 schema field changed
    • addedInput schema / properties / answerOptionCount
      Added value: +{
      +  "description": "For multiple-choice quizzes, generate 3 or 4 answer options per question. Defaults to 4.",
      +  "enum": [
      +    3,
      +    4
      +  ],
      +  "type": "number"
      +}
  4. First observed

TDQS

A4.4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the annotations (which simply indicate a non-read-only, non-idempotent operation), the description discloses important side effects: it saves a quiz, may derive and save a custom theme when omitted, and when autoRender is true returns a queued render session to poll. It also states that the response always includes a watchUrl. This is useful behavioral context beyond what the structured annotations provide, though it could be more explicit about the default render-queue behavior when autoRender is false.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is four sentences, each conveying distinct, high-value information: the core action, theme recommendation, music default, and response/render details. It is front-loaded with the most important information and contains no filler or redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with 15 parameters, a nested object, and no output schema, the description does a good job explaining the essential response characteristics (watchUrl always present, data.render when autoRender is true). It could also briefly describe the general quiz object shape or mention that a quiz is returned directly even without autoRender, but the combination of high schema coverage and the description's key response notes makes it reasonably complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 100% schema description coverage, the baseline is 3, but the description adds meaningful guidance: it recommends preferring themeDescription/themeCustomization and explains the fallback behavior when they are omitted ('the server derives and saves a topic-based custom theme'). It also clarifies the default vs null behavior for backgroundMusicId. These insights go beyond the parameter schemas and help the agent choose correct inputs.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's specific action: 'AI-generate and save a quiz from a topic.' The verb 'generate' (with AI) distinguishes it from the sibling tool 'quiz_video_create_quiz' (which likely implies manual creation), and it also specifies the input (topic) and output (saved quiz). This is a clear, purpose-specific verb+resource combination.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives practical guidance on parameter selection: 'Prefer providing themeDescription or themeCustomization' and explains the default music behavior ('Omit backgroundMusicId to use default... set null for silent'). It also explains how to follow up on autoRender ('poll quiz_video_get_render'). However, it does not explicitly mention when to use this tool over sibling tools like quiz_video_create_quiz or quiz_video_create_render, so it falls short of an explicit alternative/exclusion list.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources