Skip to main content
Glama

List questions in a category

moodle_list_questions
Read-only

Lists questions in a Moodle question category with ID, name, type, status, version, and usage count, so you can review a quiz or course question bank before building or grading a quiz.

Instructions

Questions of one category: id, name, type, status, version, usage count.

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_list_questions"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/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 the safety profile is covered. The description adds value by enumerating the returned fields (id, name, type, status, version, usage count), which substitutes for a missing output schema, but says nothing about ordering, pagination, or empty results.

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?

It is a single front-loaded fragment with zero filler, and the field list is compact and scannable. It is arguably too terse rather than bloated, but nothing is wasted.

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 three-parameter read tool with no output schema, listing return fields is the right move and covers the main gap. However, how the optional cmid/courseid interact with the required category_id, and whether results are scoped or paginated, are left unaddressed.

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 coverage is 67%, and the schema itself explains cmid ('use the quiz's own question bank') and courseid ('use the course question bank'). The description only implies that category_id selects the single category and adds no syntax or relationship detail beyond the schema, so baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description is a noun fragment ('Questions of one category') with no verb; the listing action is only inferable from the title 'List questions in a category'. It does name the scope (one category) and the returned fields, which separates it somewhat from moodle_get_question, but an agent must lean on the title for the operation itself.

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, no mention of siblings such as moodle_get_question or moodle_list_question_categories, and no statement about choosing between category_id, courseid, and cmid scoping. Any such context lives in the schema field descriptions, not in the tool description.

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