Skip to main content
Glama

moodle_assignments

Read-only

List a course’s assignments with instructions, due dates, files, submission status, and grades; browser-session mode returns names, due dates, status, and grade only.

Instructions

List a course's assignments with instructions, due dates and attached files. In browser-session mode it lists names, due dates as the site words them, submission status and grade, without instructions or files.

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": {
      "courseid": "<courseid>"
    },
    "name": "moodle_assignments"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteNoSite key or URL. Optional when only one site is logged in.
courseidYesCourse id from moodle_list_courses.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.1

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover read-only and open-world safety, but the description adds a genuinely non-obvious behavioral trait: output degrades in browser-session mode, dropping instructions and files and returning site-worded due dates plus submission status and grade. It does not explain what triggers that mode (no mode parameter exists) or how to force the richer path, which keeps it from 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, zero filler, and the primary behavior is front-loaded ahead of the mode caveat. Nothing is repeated from the schema or annotations.

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?

With only two parameters, no output schema, and a read-only annotation profile, the definition covers what an agent needs: what is returned, and how the return set shrinks in browser-session mode. The one omission is how the session mode is determined, which matters for setting expectations on output shape.

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 100%, with both site and courseid documented in the schema (courseid even points at moodle_list_courses). The description adds no syntax or format detail beyond 'a course's', so baseline 3 applies.

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 ('List a course's assignments') and enumerates the returned fields (instructions, due dates, attached files). It does not name a sibling such as moodle_assignment_status, so an agent must infer the boundary itself, but the purpose itself is unambiguous.

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: call this to enumerate assignments for a known course. The second sentence usefully explains what happens in browser-session mode, but there is no explicit guidance on when to prefer moodle_assignment_status, moodle_deadlines, or this tool.

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