Skip to main content
Glama

Update quiz settings

moodle_update_quiz_settings

Update specific Moodle quiz settings by changing only the fields provided, leaving others unchanged, and return the saved settings.

Instructions

Changes quiz settings; only the given fields are modified. Returns the settings after saving.

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": {
      "cmid": "<cmid>"
    },
    "name": "moodle_update_quiz_settings"
  }
}

Input Schema

NameRequiredDescriptionDefault
cmidYes
nameNo
introNoDescription (HTML)
reviewNoReview options: what students see during the attempt, immediately after, later while open, after closing
subnetNo
visibleNoShow the quiz to students
attemptsNoAttempts allowed, 0 = unlimited
timeopenNo"YYYY-MM-DD HH:MM" in the Moodle user timezone; null = no opening date
gradepassNoGrade to pass
navmethodNo
timecloseNo"YYYY-MM-DD HH:MM"; null = no closing date
raw_fieldsNoAdvanced: raw modedit form fields to override (null = unset/uncheck)
grademethodNo
quizpasswordNo
attemptonlastNo
decimalpointsNo
repaginatenowNo
shuffleanswersNo
browsersecurityNo"-" none, "securewindow" full screen popup
overduehandlingNo
showdescriptionNo
canredoquestionsNo
questionsperpageNoNew page every N questions, 0 = all on one page
timelimit_minutesNo0/null = no time limit
preferredbehaviourNodeferredfeedback | interactive | immediatefeedback | adaptive | adaptivenopenalty | deferredcbm | immediatecbm

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already declare the write nature (readOnlyHint=false, destructiveHint=false), so safety is partly covered. The description does add real behavioral value by stating partial-update semantics ("only the given fields are modified") and that saving returns the resulting settings, but it says nothing about permission requirements, whether invalid values are silently ignored, or the effect of the raw_fields override path.

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?

Two short clauses, front-loaded with the action and immediately followed by the key partial-update guarantee. No filler, though the terseness is close to under-specification for a 25-parameter tool.

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

Completeness2/5

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

For a mutation tool with 25 parameters, deep nesting, and no output schema, the description covers only partial-update behavior and the return of saved settings. It omits the meaning of cmid, the advanced raw_fields escape hatch, and any indication of which settings conflict or require specific capabilities, leaving the agent under-equipped to call it correctly.

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

Parameters2/5

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

With 25 parameters and only 48% schema description coverage, the description needed to compensate and adds nothing beyond the schema. Several high-impact fields (grademethod, navmethod, overduehandling, raw_fields, cmid itself) carry no explanation, and the nested review object's semantics are left entirely to the schema's single description string.

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?

"Changes quiz settings" states a specific verb (changes) and resource (quiz settings), and the sibling moodle_get_quiz_settings makes the read/write distinction inferable. It does not explicitly contrast itself with alternatives such as moodle_repaginate_quiz or moodle_set_quiz_max_grade, which also alter quiz configuration, so it falls short of a 5.

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

Usage Guidelines2/5

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

There is no guidance on when to use this tool versus the more targeted mutators in the sibling list (repaginate, set max grade, move slots), nor any prerequisite such as needing the course-module id or edit capability. The agent must infer usage entirely from the name.

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