Skip to main content
Glama

moodle_quiz_start_attempt

Destructive

Start a Moodle quiz attempt and timer for a specified quiz after confirmation; use an existing attempt ID to resume instead of consuming a new attempt.

Instructions

Start a quiz at the user's request. May consume an attempt and start a timer. Existing attempts should be resumed using their attemptid. Restricted quizzes can be taken through the browser tools.

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": {
      "quizid": "<quizid>",
      "confirm_name": "<confirm_name>"
    },
    "name": "moodle_quiz_start_attempt"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteNo
quizidYes
confirm_nameYes
preflightdataNoAccess declarations required by Moodle. Enter passwords in the browser, never in chat.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.1

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and openWorldHint=true, and the description adds real value on top: an attempt may be consumed and a timer started, which is exactly the cost an agent needs to know before calling. It omits failure behavior (e.g., what happens if the quiz is already open or the timer expires mid-call).

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?

Four short sentences, purpose front-loaded, no filler. The 'at the user's request' qualifier and the resume hint are both load-bearing.

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?

A destructive, timer-starting mutation with no output schema needs more than this: it never says what the call returns (attempt id? timer deadline?) or how confirm_name should be populated, which an agent must guess. The behavioral warnings it does include are appropriate for a destructive tool.

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 coverage is only 25%; only preflightdata carries a description. The description says nothing about confirm_name (a required parameter whose purpose and expected value are non-obvious), quizid, or site, so it fails to compensate for the coverage gap on 3 of 4 parameters.

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?

States a specific verb+resource ('Start a quiz') and implicitly separates this from resuming an existing attempt ('resumed using their attemptid') and from restricted quizzes handled via browser tools. It does not name concrete sibling tools, so routing is clear but not fully explicit.

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

Usage Guidelines4/5

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

Gives clear when-to-use guidance: only 'at the user's request', only when no existing attempt applies, and delegate restricted quizzes to the browser tools. It stops short of naming which tool actually resumes an attempt, leaving that step to inference.

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