Skip to main content
Glama

moodle_quiz_attempt_data

Read-only

Read one page of an active Moodle quiz attempt and return question HTML with input names, values, and sequencecheck fields needed to save answers.

Instructions

Read one page of an active attempt. question.html contains the exact input names, values and sequencecheck fields needed to save answers. Follow nextpage until -1; respect sequential navigation.

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

Input Schema

NameRequiredDescriptionDefault
pageNo
siteNo
attemptidYes
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.7/5.0
Behavior4/5

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

Beyond the readOnly/openWorld annotations, it discloses that question.html carries the exact input names, values and sequencecheck fields required for saving answers, and that navigation may be sequential and must be paged until -1. These are non-obvious behavioral constraints that materially affect correct use; it does not state what happens if pages are fetched out of order.

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?

Three short sentences, front-loaded with the core action, then the payload detail, then the iteration rule. No filler and nothing repeated.

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?

No output schema exists, so the description carries the return-shape burden; it names question.html and nextpage but does not sketch the rest of the response or the failure modes when an attempt is submitted or expired. Adequate for a 4-param read tool but leaves gaps an agent would hit in practice.

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 coverage is only 25%, so the description must compensate. 'One page' and 'nextpage until -1' give real meaning to the page parameter, but attemptid and site are never explained, and the linkage of preflightdata to login/session requirements is only covered inside the schema.

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 gives a specific verb and resource: 'Read one page of an active attempt.' It scopes the operation to a single page of an in-progress attempt, which distinguishes it from review/summary-style tools, though it never names those siblings explicitly.

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

Usage Guidelines3/5

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

It gives procedural guidance ('Follow nextpage until -1; respect sequential navigation'), which tells the agent how to iterate, but it offers no explicit when-to-use vs alternative guidance (e.g. review vs summary vs start) nor prerequisites such as needing an existing attempt.

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