Skip to main content
Glama

Reorder quiz question

moodle_move_quiz_slot

Reorders a quiz slot by moving it after another specified slot or to the beginning when the target slot ID is omitted.

Instructions

Moves a slot after another slot (after_slot_id) or to the beginning (after_slot_id omitted).

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

Input Schema

NameRequiredDescriptionDefault
cmidYes
pageNo
slot_idYes
after_slot_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false, so the mutation profile is covered. The description adds a useful default-behavior note (omitting after_slot_id puts the slot first), but omits whether the move can fail on invalid slot ids, whether it requires quiz-editing capability, or how existing slots are renumbered.

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?

A single front-loaded sentence with the preconditions and the default immediately visible; every clause earns its place and there is no filler.

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 four-parameter mutation tool with no parameter documentation, no output schema, and openWorldHint=true signalling a remote call, the description does far too little. Undefined page semantics and an unexplained response shape leave real ambiguity about how to invoke it correctly.

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 carries the full burden, but it only explains after_slot_id. The cmid, slot_id, and especially page parameters get no meaning from either schema or description, leaving the agent to guess what page controls in an ordering operation.

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 ('Moves a slot') plus the two ordering outcomes, which is enough to distinguish it from siblings like moodle_repaginate_quiz or moodle_remove_quiz_slots. It stops short of naming any sibling explicitly, so there is no positive differentiation.

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?

Usage is only implied: it tells you this reorders a question slot and that omitting after_slot_id moves it to the beginning, which is a genuine use-case signal. It says nothing about prerequisites, when to prefer it over reordering via other tools, or what happens on failure.

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