Skip to main content
Glama

List quizzes of a course

moodle_list_quizzes
Read-only

Lists all quizzes in a Moodle course, returning each quiz's course module ID, visibility, and section so teachers can locate and manage course assessments.

Instructions

All quizzes in a course with cmid, visibility and section.

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>"
    },
    "name": "moodle_list_quizzes"
  }
}

Input Schema

NameRequiredDescriptionDefault
courseidYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/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. The description adds that the result carries cmid, visibility and section fields, which hints that hidden quizzes are included and that cmid is the key for follow-up calls. It says nothing about ordering, pagination, or whether quizzes from other courses could leak in.

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?

One telegraphic sentence with zero filler, and the field list is front-loaded. It is borderline too terse — a verb like 'Lists' would make it read as a capability statement rather than a fragment.

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 read-only, single-parameter listing tool with no output schema, the description covers the essentials: what comes back and at what granularity. Gaps remain on ordering, empty-course behavior, and whether archived/hidden quizzes are included, which an agent would want before calling it for visibility-sensitive work.

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

Parameters3/5

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

Schema description coverage is 0%, but there is only one required parameter whose name (courseid) is self-explanatory, and the phrase 'in a course' confirms its meaning. The description adds no format, validation, or example detail beyond that, so the single-parameter simplicity keeps this at an adequate middle score.

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 states the resource (quizzes) and scope (in a course) plus the fields returned (cmid, visibility, section), so an agent can tell it lists rather than fetches one quiz. It stops short of naming the sibling it contrasts with, such as moodle_get_quiz for a single quiz, and it is a noun fragment with no explicit verb.

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 and no mention of alternatives, even though siblings like moodle_get_quiz (single quiz detail) and moodle_get_quiz_settings clearly overlap. The agent must infer from the name alone that this is the bulk discovery call for a course.

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