Skip to main content
Glama

Get quiz settings

moodle_get_quiz_settings
Read-only

Retrieve all settings for a Moodle quiz by course module ID, including timing, attempts, grading, layout, behaviour, review options, and visibility; set include_raw to return every raw form field.

Instructions

All quiz settings (timing, attempts, grading, layout, behaviour, review options, visibility). include_raw=true also returns every raw form field.

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_get_quiz_settings"
  }
}

Input Schema

NameRequiredDescriptionDefault
cmidYes
include_rawNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so safety is covered. The description adds useful behavioral detail about return scope and the include_raw switch, but says nothing about permissions/authentication needed for a quiz's settings or about size of the raw payload, which matters for a read of this kind.

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 tight sentences with the returned content group front-loaded and the optional flag second; nothing is wasted. The fragmentary, verbless phrasing costs a little clarity but keeps it short.

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

Completeness3/5

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

For a simple two-parameter read with no output schema, the description covers the return shape reasonably via the settings enumeration. It stops short of explaining the required cmid identifier or any caveats about the raw form dump, which leaves a gap for a tool whose only required input is unexplained.

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?

Schema description coverage is 0%, so the description must carry parameter meaning and it only half does: include_raw=true is explained as returning every raw form field. The required cmid parameter, which is the sole addressing key for the resource, is never explained (course module id) and its type/range in the schema is undocumented.

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?

The description names the resource (quiz settings) and enumerates the setting families returned (timing, attempts, grading, layout, behaviour, review options, visibility), which makes it clearly distinguishable from moodle_update_quiz_settings and from content-oriented siblings like moodle_get_quiz_responses. It lacks an explicit verb, but the intent is unambiguous.

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 when-to-use guidance: nothing says to call this before editing settings with moodle_update_quiz_settings, nor how it differs from moodle_get_quiz or moodle_get_attempt_review. The agent must infer the routing from the tool name alone.

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