Skip to main content
Glama

Get quiz

moodle_get_quiz
Read-only

Retrieve a Moodle quiz’s structure, slot details, totals, editability, and main settings by course module ID to inspect or manage its questions and configuration.

Instructions

Quiz structure (slots with slot id, page, question id, name, type, mark), totals, editability, plus the main settings.

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

Input Schema

NameRequiredDescriptionDefault
cmidYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.6/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 the safety profile is covered. In the absence of an output schema, describing the returned shape (slot structure, totals, editability) adds real value, but nothing is said about capability requirements (teacher vs student visibility), handling of hidden questions, or what happens when cmid is invalid or inaccessible.

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

Conciseness3/5

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

It is short and front-loads the returned payload, with no filler sentences. However, the parenthetical list is dense and the trailing 'plus the main settings' is vague and dilutes the precision of the rest.

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 single-parameter, no-output-schema tool the description should at minimum define cmid and disambiguate from moodle_get_quiz_settings. It partially compensates by sketching the return payload, but the parameter gap and the settings overlap leave an agent under-informed.

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?

There is one required parameter with 0% schema description coverage, so the description carries the full burden — yet it never mentions cmid or clarifies that it is a course module id rather than a quiz instance id. This is a meaningful ambiguity for an agent that has just listed quizzes.

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

Purpose3/5

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

The description enumerates what the tool returns (slots with slot id, page, question id, name, type, mark; totals; editability; main settings), so the resource is identifiable. But it is a noun-phrase fragment with no verb, and 'plus the main settings' overlaps directly with the sibling moodle_get_quiz_settings, leaving the agent unsure which tool to pick for settings.

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 statement of when to use this tool versus moodle_get_quiz_settings, moodle_get_quiz_grades, or moodle_get_quiz_responses, all of which are close neighbours. The agent must infer the boundary purely from the returned-field list.

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