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 includes visibility, playable and playUrl (where people take the quiz in a browser) when the quiz is shareable, plus watchUrl when it is public. If playable is false, call quiz_video_share_quiz to get a link. When autoRender is true, data.render also contains the queued render session so the agent can poll quiz_video_get_render for the MP4.

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": {
      "topic": "<topic>"
    },
    "name": "quiz_video_generate_quiz"
  }
}

Input Schema

NameRequiredDescriptionDefault
topicYesSubject the AI should build the quiz around. Can be a short topic or a detailed multi-paragraph brief (up to 20,000 characters).
formatNoOutput aspect ratio. Defaults to "tiktok".
languageNoLanguage to write the quiz in, e.g. "es" or "ar". Optional: without it the quiz follows the language of the topic, or English if that is unclear.
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). Up to 20,000 characters.
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. Changed6 schema fields changed
    • addedInput schema / properties / language
      Added value: +{
      +  "description": "Language to write the quiz in, e.g. \"es\" or \"ar\". Optional: without it the quiz follows the language of the topic, or English if that is unclear.",
      +  "maxLength": 20,
      +  "type": "string"
      +}
    • addedInput schema / properties / themeCustomization / properties / answerTextColorOverride
      Added value: +{
      +  "description": "Hex color of answer text.",
      +  "pattern": "^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$",
      +  "type": "string"
      +}
    • changedInput schema / properties / themeCustomization / properties / fontFamilyOverride / description
      Previous value: -"Approved font family used for question and answer text."New value: +"Font for all video text. A font without letters for the quiz language falls back to that language's own font for those letters."
    • changedInput schema / properties / themeCustomization / properties / fontFamilyOverride / enum
      Previous value: -[
      -  "Inter",
      -  "Poppins",
      -  "Roboto",
      -  "Montserrat",
      -  "Open Sans",
      -  "Lato",
      -  "Oswald",
      -  "Raleway",
      -  "Playfair Display",
      -  "Source Sans Pro"
      -]New value: +[
      +  "Inter",
      +  "Poppins",
      +  "Roboto",
      +  "Montserrat",
      +  "Open Sans",
      +  "Lato",
      +  "Raleway",
      +  "Source Sans 3",
      +  "Space Grotesk",
      +  "Manrope",
      +  "Work Sans",
      +  "DM Sans",
      +  "Lexend",
      +  "Nunito",
      +  "Quicksand",
      +  "Outfit",
      +  "Sora",
      +  "Albert Sans",
      +  "Bricolage Grotesque",
      +  "Playfair Display",
      +  "Merriweather",
      +  "Cormorant Garamond",
      +  "Fraunces",
      +  "Crimson Pro",
      +  "Cinzel",
      +  "Oswald",
      +  "Bebas Neue",
      +  "Anton",
      +  "Archivo Black",
      +  "Big Shoulders",
      +  "Bungee",
      +  "Bangers",
      +  "Lilita One",
      +  "Fredoka",
      +  "Baloo 2",
      +  "Exo 2",
      +  "Orbitron",
      +  "Press Start 2P",
      +  "Caveat",
      +  "Dancing Script",
      +  "Pacifico",
      +  "Permanent Marker",
      +  "Noto Sans",
      +  "Noto Naskh Arabic",
      +  "Vazirmatn"
      +]
    • addedInput schema / properties / themeCustomization / properties / styleControls
      Added value: +{
      +  "description": "Set automatically by the API when an override is sent. Makes overrides reach every scene and custom templates, not just preset question and answer slides.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / themeCustomization / properties / textColorOverride
      Added value: +{
      +  "description": "Hex color of question and on-screen text.",
      +  "pattern": "^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$",
      +  "type": "string"
      +}
  2. Changed5 schema fields changed
    • changedInput schema / properties / extraDirection / description
      Previous value: -"Additional instructions to steer the AI (tone, focus areas, exclusions)."New value: +"Additional instructions to steer the AI (tone, focus areas, exclusions). Up to 20,000 characters."
    • addedInput schema / properties / extraDirection / maxLength
      Added value: +20000
    • addedInput schema / properties / themeDescription / maxLength
      Added value: +20000
    • changedInput schema / properties / topic / description
      Previous value: -"Subject the AI should build the quiz around."New value: +"Subject the AI should build the quiz around. Can be a short topic or a detailed multi-paragraph brief (up to 20,000 characters)."
    • addedInput schema / properties / topic / maxLength
      Added value: +20000
  3. 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."
  4. 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
  5. 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"
      +}
  6. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only declare it is a non-read-only, non-idempotent, open-world write. The description goes well beyond that, revealing that a derived theme is saved when omitted, that render-queue failures do not block creation, that rendering takes 1-5 minutes, and what the response `data` contains in shareable versus public cases.

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

Conciseness4/5

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

Front-loaded with the core action, then ordered into theme, music, response, and render sections, with no filler sentences. It is dense across several clauses, but each carries non-redundant operational detail.

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

Completeness5/5

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

For a 16-parameter tool with a nested theme object and no output schema, the description supplies the missing response shape (visibility, playable, playUrl, watchUrl, render) and the follow-up call paths, so an agent has everything needed to invoke and chain it.

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?

Schema coverage is already 100%, so the baseline is 3. The description still earns credit by explaining the omit-versus-null distinction for backgroundMusicId and the preference order between themeDescription and themeCustomization, semantics an agent would otherwise have to guess.

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

Purpose4/5

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

States a specific verb and resource: AI-generate and save a quiz from a topic. It also discloses generated artifacts (saved custom theme, optional render) that separate it from a plain creation tool, though it never explicitly contrasts itself with the sibling quiz_video_create_quiz, leaving an agent to infer which creator to pick.

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?

Gives concrete conditional guidance: prefer themeDescription/themeCustomization, omit backgroundMusicId for the default track, call quiz_video_share_quiz when `playable` is false, and poll quiz_video_get_render when autoRender is true. The one gap is no guidance on when to use this versus the other quiz-creation sibling.

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