Skip to main content
Glama

Set quiz maximum grade

moodle_set_quiz_max_grade

Set a Moodle quiz’s maximum grade and rescale the sum of marks to align final scores with the intended grading scale.

Instructions

Sets the maximum grade of the quiz (e.g. 10), rescaling the sum of marks.

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

Input Schema

NameRequiredDescriptionDefault
cmidYes
max_gradeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and openWorldHint=true, so the write nature is covered. The description adds genuinely non-obvious behavior beyond that: setting the max grade 'rescal[es] the sum of marks', warning the agent that existing mark weights shift. It does not say whether already-awarded grades are recalculated or what permissions/role are required, which keeps it below 5.

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 front-loaded sentence with no filler; the purpose is stated before the side effect. The trailing participial phrase 'rescaling the sum of marks' is slightly clipped but still readable and earns its space by conveying the cascade effect.

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 two-parameter configuration mutation with no output schema and no annotations beyond the safety hints, the definition covers what changes and one important side effect. Missing is any identification of the cmid parameter and any note on whether the change affects existing attempt grades or requires teacher-level permissions.

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 both parameters. It partially covers max_grade with an example value but never states the unit or whether fractional values are meaningful, and it never identifies 'cmid' as the course-module id of the quiz at all. The agent must infer the key identifier from context.

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?

Names a specific verb and resource ('Sets the maximum grade of the quiz') and even clarifies the semantics of the value ('e.g. 10'), which separates it from sibling mutations such as moodle_set_slot_mark or moodle_update_quiz_settings. It stops short of explicitly contrasting itself with those siblings, but the purpose is unambiguous.

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?

There is no when-to-use or when-not-to-use guidance. Nothing tells the agent whether this is a per-quiz configuration step performed before grading or a post-hoc adjustment, and no alternative (e.g. moodle_set_slot_mark for individual question marks) is named for cases where the agent only wants to change one slot's weighting.

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