Skip to main content
Glama

Export a question category

moodle_export_questions
Read-only

Exports every question in a Moodle question category as GIFT or Moodle XML, enabling backup, reuse, or migration of quiz content.

Instructions

Exports all questions of a category in GIFT (compact, readable) or Moodle XML (complete).

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": {
      "category_id": "<category_id>"
    },
    "name": "moodle_export_questions"
  }
}

Input Schema

NameRequiredDescriptionDefault
cmidNoQuiz cmid: use the quiz's own question bank instead of the course one
formatNo
courseidNoCourse id: use the course question bank
category_idYes
include_filesNo

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=true and openWorldHint=true, so safety is covered. The description adds useful semantics for the format choice ('compact, readable' vs 'complete'), but says nothing about what the operation returns, whether a file is written, or how include_files affects the result.

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 tight sentence with the resource front-loaded and the format trade-off parenthetically attached. No filler, no restatement of the title.

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 an export tool with no output schema, an agent needs to know the shape of the result (inline content, file path, or base64) and how the three location parameters interact; none of that is present. The description is complete only for the narrowest question of purpose.

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 coverage is only 40%, so the description must pick up the slack, and it only clarifies one parameter: the gift/xml enum is given qualitative meaning. category_id (the required parameter), courseid, cmid, and include_files are left with no explanation beyond their bare schema names, and the scoping relationship between course/category/cmid is never addressed.

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?

States a specific verb and resource ('Exports all questions of a category') plus the output formats, so an agent can distinguish it from moodle_import_questions and moodle_list_questions. It stops short of naming a sibling to redirect to, which keeps it from a 5.

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 implied rather than stated: the agent can infer this is the bulk-dump counterpart to list/get tools and that GIFT is for readable transfer while XML is lossless. There is no explicit when-to-use, when-not-to-use, or alternative routing.

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