Skip to main content
Glama

read_material

Read the text of one course material in pages using offset and max_chars to retrieve long Moodle content in manageable sections.

Instructions

Read the text of one course material, paged by offset/max_chars.

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": {
      "account": "<account>",
      "course_id": "<course_id>",
      "path": "<path>"
    },
    "name": "read_material"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
offsetNo
accountYes
course_idYes
max_charsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior3/5

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

With no annotations, the description carries the full load, and it does disclose the paging behavior, which is a genuine operational trait. It says nothing about permissions, whether truncated content is signaled, what happens for non-text or binary materials, or failure modes for a bad path.

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?

One short sentence with the core action front-loaded and the paging mechanism trailing as supporting detail; nothing is wasted. It is arguably too terse for a five-parameter tool, but it is well structured rather than padded.

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?

No annotations and no output schema mean the description should compensate more than it does. For a five-parameter read tool, it omits return shape, truncation/pagination termination behavior, and the identity parameters, leaving several gaps an agent must discover by trial.

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% across five parameters, and the description only clarifies two of them (offset and max_chars) as paging controls. The meaning of account, course_id, and especially path (file path vs. material identifier) is left entirely undocumented in a low-coverage schema.

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: 'Read the text of one course material', and 'text' implicitly sets it apart from the download_* siblings that fetch files. It never names an alternative explicitly, so an agent must infer the read-vs-download boundary on its own.

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?

'paged by offset/max_chars' implies this is the tool for extracting readable content, likely when a material is large. However, there is no explicit statement of when to prefer this over download_course_materials or download_module, and no prerequisites or exclusions are given.

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