Skip to main content
Glama

Quiz responses

moodle_get_quiz_responses
Read-only

Retrieve each student's answer to each Moodle quiz question, with optional correct answers and question text, to review quiz responses and support grading.

Instructions

Responses report: the answer each student gave to each question (optionally with the right answer and question text).

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

Input Schema

NameRequiredDescriptionDefault
cmidYes
attemptsNoWhich users/attempts to include (default enrolled_with = enrolled users who attempted)
include_right_answerNo
include_question_textNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.8/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 does add one piece of behavioral context by disclosing what the report contains and that right answers and question text are opt-in, but it says nothing about scope (course-module level retrieval), volume, or pagination for a potentially large per-question result set.

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?

Short and free of padding, but it is a sentence fragment that front-loads the return payload rather than the action, and the parenthetical carries all the parameter-relevant information. It is terse without being well structured.

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?

With no output schema, the description correctly takes on the return-value burden and does so briefly. However, for a 4-parameter tool whose required identifier is undocumented and whose default attempt-scope behavior is unstated, it leaves the agent guessing on the inputs needed to call it correctly.

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 only 25%: only the attempts enum is documented, while cmid, include_right_answer, and include_question_text have no schema descriptions. The description partially compensates by explaining the two include_* toggles in prose, but the required cmid parameter and the attempts enum semantics are never addressed.

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 identifies the resource (student answers per question) but never states an action verb such as "get" or "list"; it reads as a return-value summary rather than a statement of what the tool does. Combined with the name and title an agent can infer it fetches quiz attempt responses, but nothing distinguishes it from siblings like moodle_get_attempt_review or moodle_get_quiz_grades.

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?

No when-to-use guidance is given and no alternative is named, even though moodle_get_attempt_review and moodle_get_quiz_grades sit in the same family. The agent must infer from the name alone which of these to call for a given reporting need.

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