Skip to main content
Glama

Repaginate quiz

moodle_repaginate_quiz

Set how many questions appear per page in a Moodle quiz; use 0 to put all questions on one page.

Instructions

Re-paginates the quiz with N questions per page (0 = all on one page).

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

Input Schema

NameRequiredDescriptionDefault
cmidYes
questions_per_pageYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/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 description only needs to add context. It adds none: no statement about whether existing pagination is overwritten, whether the change is reversible, or whether in-progress attempts are affected by a repagination.

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 compact sentence that front-loads the action and parenthetically documents the special zero value. Nothing is wasted, though the extreme brevity leaves behavioral questions unaddressed rather than using space efficiently.

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

Completeness4/5

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

For a two-parameter mutation with annotations covering the safety profile and no output schema, the description covers the core action and the tricky parameter value. The gap is the undocumented cmid and the absence of any note on side effects to existing quiz structure.

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 description coverage is 0%, so the description must carry the load, and it does explain the non-obvious semantics of questions_per_page (N per page, 0 meaning all questions on one page). However, cmid is never explained, leaving one of two parameters defined only by its name.

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 ("Re-paginates the quiz") plus the pagination parameter's effect, so the operation is immediately understandable. It does not distinguish itself from adjacent siblings such as moodle_update_quiz_settings, which could plausibly also touch layout.

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 and no mention of an alternative tool for changing quiz layout. The agent must infer that this is the pagination-specific route rather than a general quiz settings update.

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