Skip to main content
Glama

Set question mark in quiz

moodle_set_slot_mark

Set the maximum mark for a single quiz slot in Moodle so teachers can control how many points each question is worth.

Instructions

Sets the maximum mark of one quiz slot.

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>",
      "slot_id": "<slot_id>",
      "mark": "<mark>"
    },
    "name": "moodle_set_slot_mark"
  }
}

Input Schema

NameRequiredDescriptionDefault
cmidYes
markYes
slot_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/5.0
Behavior2/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 safety profile is covered. Beyond that, the description says nothing about permission requirements, whether lowering a mark after grading is allowed, or how existing grades are affected.

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 clean, front-loaded sentence with no redundant wording. It is efficient, though its brevity reflects under-specification rather than tight editing of rich content.

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?

For a three-parameter mutation tool with zero schema descriptions and no output schema, the description is far too thin — an agent must guess the identity format of cmid and slot_id and the numeric constraints on mark.

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 all three required parameters (cmid, slot_id, mark) carry no documented meaning. The description only obliquely clarifies that 'mark' is the slot's maximum mark; cmid and slot_id are left entirely unexplained.

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 states a specific verb and resource: 'Sets the maximum mark of one quiz slot.' The phrase 'one quiz slot' distinguishes it from course-level siblings such as moodle_set_quiz_max_grade, though it does not name that alternative directly.

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 guidance on when to use this tool versus moodle_set_quiz_max_grade or the slot-manipulation siblings, and no prerequisites such as required capabilities or the quiz state needed for a slot to be editable.

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