Skip to main content
Glama

moodle_quiz_submit_attempt

Destructive

Finish a Moodle quiz attempt for grading when the user requests submission, saving supplied answers first. Confirm the quiz name and review the summary because finishing is usually irreversible.

Instructions

Finish an attempt for grading when the user requests submission. Read the summary first. Finishing cannot usually be undone; confirm_name must identify the quiz. Saves any supplied answer fields before finishing.

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

Input Schema

NameRequiredDescriptionDefault
dataNo
siteNo
quizidYes
attemptidYes
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

A4/5.0
Behavior4/5

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

Beyond the destructive annotation, it discloses that finishing usually cannot be undone and that confirm_name must identify the quiz. It also clarifies that supplied answer fields are saved before finishing, which is useful behavioral context for a submit operation.

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

Conciseness5/5

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

The description is four short sentences with the action and warning front-loaded. Every sentence adds useful operational context without redundancy.

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 destructive, external quiz submission with six parameters, it covers the critical safety warning and confirmation requirement. However, it leaves several parameters unexplained and provides no sense of the submission result, which is a meaningful gap given the low schema coverage.

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 only 17%, so the description needs to compensate for undocumented parameters. It explains confirm_name and partially explains data answers, but attemptid, quizid, site, and preflightdata are not meaningfully clarified.

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

Purpose5/5

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

The description states a specific verb and resource: finish an attempt for grading. It clearly scopes the action to user-requested submission and distinguishes it from starting, reviewing, or merely saving an attempt.

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?

It gives a clear trigger for use: when the user requests submission. It also gives the prerequisite to read the summary first. It does not explicitly name save_answers as an alternative, but the finishing behavior is sufficiently scoped.

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