Skip to main content
Glama

moodle_open

Read-onlyIdempotent

Open a course item by module ID to retrieve page, label, link, and PDF text, save attachments locally, and paginate long PDFs for continued reading.

Instructions

Open one item from moodle_course by its [module id]: returns the text of pages, labels, links and PDFs, and saves attached files under ~/Downloads/moodle//. Long PDFs come back in parts (about 40,000 characters each); call again with start_page to read the rest. Give course (id or name) to make it faster.

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": {
      "module_id": "<module_id>"
    },
    "name": "moodle_open"
  }
}

Input Schema

NameRequiredDescriptionDefault
courseNo
module_idYes
start_pageNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds behavior those annotations do not capture: attachments are written to ~/Downloads/moodle/<course>/ and long PDFs are returned in ~40,000-character parts requiring repeated calls. It stops short of describing auth requirements or failure behavior, which keeps it below a 5.

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?

Three sentences, front-loaded with the action and its output types, followed by the PDF continuation rule and the optional `course` tip. Every sentence adds information, though the bracketed '[module id]' phrasing is slightly awkward and could be tightened.

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?

An output schema exists, so return-value detail is not strictly required, yet the description still explains that page text is returned and files are saved locally. For a three-parameter tool this covers the essentials; the main remaining gap is not explaining the origin or format of `module_id`.

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 parameter meaning. It usefully explains that `course` accepts an id or name and mainly improves speed, and that `start_page` selects which part of a long PDF to fetch, but `module_id` is only referenced as '[module id]' with no indication of where to obtain it.

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

Purpose5/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 ('Open one item from moodle_course by its [module id]') and immediately enumerates what that yields: text of pages, labels, links and PDFs, plus saving attachments. This clearly separates it from moodle_course, which is referenced as the source of the item, so an agent can distinguish the two without opening either schema.

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 tool is for opening a single item obtained from moodle_course, and the description gives operational guidance for long PDFs ('call again with start_page to read the rest') and a speed tip for supplying `course`. It never states when not to use it or names an alternative tool for other content types, so the routing guidance is only partial.

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