Skip to main content
Glama

Grade a question in an attempt

moodle_grade_attempt_question

Sets the mark and optional comment for one question in a student Moodle quiz attempt, enabling manual grading of essay or open responses.

Instructions

Manually sets the mark (and optional comment) of one question in a student attempt, e.g. essay questions.

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": {
      "attempt_id": "<attempt_id>",
      "slot": "<slot>",
      "mark": "<mark>"
    },
    "name": "moodle_grade_attempt_question"
  }
}

Input Schema

NameRequiredDescriptionDefault
markYes
slotYes
commentNo
attempt_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnly=false, destructive=false and openWorld=true, so the mutation/safety profile is covered. The description adds context the annotations do not: that grading is manual, scoped to a single question, and optionally carries a comment. It omits behaviorally important facts — whether re-grading overwrites a prior mark, whether the mark is bounded by the slot's maximum grade, and what permissions are required.

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?

A single well-formed sentence with the action and scope front-loaded and no wasted wording. It is efficient, though its brevity is part of why parameter and permission details are absent.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a mutating grading tool with no output schema and zero schema-level parameter documentation, so the description carries most of the explanatory burden. It covers the what but not the permission requirements, mark constraints, overwrite behavior, or the meaning of slot and attempt_id, leaving meaningful gaps for a write operation.

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 0%, so the description must carry parameter meaning and largely does not. It explains mark and comment, but says nothing about attempt_id (which attempt) or slot (the question position within the quiz), leaving two of four parameters — including the one most likely to be misused — undocumented anywhere.

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 — manually setting the mark and optional comment for one question within a student attempt — and adds the clarifying example of essay questions. It is not explicitly differentiated from siblings such as moodle_set_slot_mark (which edits slot maxima rather than student grades), but the 'of one question in a student attempt' scoping is distinctive enough for an agent to distinguish it in practice.

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?

Use is implied rather than stated: 'Manually sets' plus 'e.g. essay questions' signals this is for questions that cannot be auto-graded, which is useful. However, there is no explicit when-not or named alternative, and no mention of prerequisites such as the attempt needing to exist or the caller holding grading capability.

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