Skip to main content
Glama

add_quiz_questions

Add or update quiz questions in a Canvas quiz. Existing questions with the same name are updated instead of duplicated.

Instructions

Add or update questions. A question already carrying the same name is updated in place.

Each question is {"name", "type", "text", "points", ...} where type is one of: multiple_choice choices: list[str] correct: index multiple_answers choices: list[str] correct: list[index] true_false correct: true | false essay (no extra fields) text is HTML.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
courseYes
quiz_idYes
questionsYes
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses the upsert behavior (a question with the same `name` is updated in place) and details the exact structure for all four question types. It does not mention broader side effects or permissions, but the given behavior is substantial.

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 compact and well-structured: a single introductory sentence with the upsert rule, followed by a concise list of question types and their fields. Every sentence adds value, and there is no redundancy.

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?

Despite having no annotations or output schema, the description provides all necessary information to construct valid arguments: the upsert rule, the four question types with their required fields, and the note that `text` is HTML. The `course` and `quiz_id` parameters are self-explanatory. The description is complete for practical use.

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

Parameters5/5

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

The schema only provides parameter names with no descriptions. The description fully compensates by detailing the `questions` parameter with per-type field specifications (choices, correct, etc.), which is essential because the schema allows additional properties and lacks structure. This goes well beyond the schema.

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 opens with 'Add or update questions', which clearly specifies the verb (add/update) and resource (questions). It further distinguishes itself by describing the upsert-by-name behavior, separating it from sibling tools like list_quiz_questions or create_quiz.

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 clearly implies this tool is for creating or modifying questions in a quiz, which sets a clear context. It does not explicitly name alternatives or state when not to use it, but the purpose is unambiguous and no exclusions are needed.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Canvas-LMS-MCP/canvas-teacher-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server