Skip to main content
Glama

Cubite LMS: Learning Management System

Update quiz settings

quiz_settings_update
Destructive

Change one graded quiz's pass mark and attempt limit, and whether the course completes only when its quizzes are passed, without resending the course: the safe alternative to rewriting the lessons with course_content_set or the whole certificateConfig with course_update. Send at least one of passMarkPercent, maxAttempts and completeOnlyOnPass; fields you leave out keep their current value, and values already in place change nothing. A pass mark or attempt change saves ONE new content version that is the current one with only this quiz's two settings changed, so every other block, id and learner record stays as it is; if someone saves the course at the same moment, the change is rebuilt on their version, never applied to an older one. completeOnlyOnPass changes only the course's completion rule and keeps the rest of certificateConfig (certificate template, statement codes, reading gate). New values apply to attempts started or submitted from now on: past attempts keep their recorded score and pass or fail, and a learner who already used more attempts than a lowered limit cannot start another. Returns the quiz's settings after the call (the quiz_settings_get shape) plus changed, the fields that actually changed (empty when nothing did). An invalid value is rejected with the field and its allowed range, and an id that is not a graded quiz in the current content is a not-found error.

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": {
      "courseId": "<courseId>",
      "quizBlockId": "<quizBlockId>"
    },
    "name": "quiz_settings_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
authorIdNoUser recorded as the new content version's author; must belong to this site. Defaults to the connection's owning user.
courseIdYesCourse id, as returned by course_list.
maxAttemptsNoHow many times each learner may take this quiz: a whole number 1 or more, or 0 or null for unlimited.
quizBlockIdYesThe quiz block's `id` from course_content_get (a block of type "quiz").
passMarkPercentNoScore in percent a learner needs to pass this quiz: a whole number from 0 to 100 (new quizzes start at 80).
completeOnlyOnPassNoCourse-wide, not just this quiz. true makes the course complete (and certify, when it issues a certificate) once the learner has passed every graded quiz in it, even with other content unfinished; the course needs a quiz inside a unit (under an H3 header). false turns that rule back to the default, where all content must be complete; a progress-percentage rule is kept. Leave it out to keep the current rule.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / authorId / description
      Previous value: -"User recorded as the new content version's author; must belong to this site. Defaults to the site's first admin."New value: +"User recorded as the new content version's author; must belong to this site. Defaults to the connection's owning user."
  2. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=false and destructiveHint=true, yet the description adds substantial non-obvious behavior: it writes exactly ONE new content version containing only this quiz's two settings, rebuilds the change on a concurrent save rather than applying to an older version, confines completeOnlyOnPass to the course completion rule while preserving certificate template/statement codes/reading gate, and applies new values only to attempts started or submitted from now on while past attempts and over-limit learners keep their state.

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?

The critical routing sentence and the at-least-one rule come first, and the density is high with little filler. It is nonetheless one very long block with some near-repetition ("values already in place change nothing" versus "changed ... empty when nothing did"), and the missing backtick around certificateConfig is a small blemish.

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?

There is no output schema, so the description carries the return contract and does so (the quiz_settings_get shape plus `changed`), and it also covers error behavior (invalid value rejected with field and allowed range; non-graded or non-current id is not-found). For a mutation with versioning and concurrency implications, nothing an agent needs to call it safely is missing.

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 100%, so the baseline is 3, but the description adds a real constraint absent from the schema: at least one of passMarkPercent, maxAttempts, completeOnlyOnPass must be supplied, and omitted fields retain current values. It also explains that completeOnlyOnPass is course-wide rather than quiz-scoped, which meaningfully disambiguates a parameter sitting next to two quiz-scoped ones; it does not add much beyond the schema for authorId.

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?

States a specific verb (change) over a specific resource (one graded quiz's pass mark, attempt limit, and the course completion rule) and explicitly distinguishes itself from the two siblings that would otherwise do the same job, course_content_set and course_update. An agent can tell exactly what this tool touches and what it avoids.

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

Usage Guidelines5/5

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

Names the alternatives and the reason to prefer this one ("without resending the course: the safe alternative to rewriting the lessons with course_content_set or the whole certificateConfig with course_update"), and gives the invocation precondition "Send at least one of passMarkPercent, maxAttempts and completeOnlyOnPass" plus omit-to-keep-current semantics.

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