Skip to main content
Glama

create_group

Create a group inside a Moodle course by providing the course ID and group name. Optionally add a description and ID number for further organization.

Instructions

Create a group inside a course. Use assign_to_group to populate it after.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
idnumberNoOptional stable idnumber. Empty = auto-generated by Moodle.
course_idYes
descriptionNo
Behavior2/5

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

With no annotations provided, the description must carry the full burden of behavioral disclosure. It only states the core action and one follow-up step, but omits details about side effects, permissions, response shape, or nuances like idnumber auto-generation or idempotency. This is a significant gap for a mutation tool.

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?

The description is extremely compact and front-loaded: a single sentence with clear subject and action, plus a brief directional pointer. Every word earns its place, and there is no redundant filler.

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?

Given the lack of annotations and output schema, plus four parameters, the description is too thin. It does not convey prerequisites, return values, error conditions, or the lifecycle of the created group beyond the hint to assign members later. This leaves the agent with insufficient context for correct invocation.

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 only 25% (one property documented), and the description does not compensate. It does not explain the meaning of course_id, name, idnumber, or description beyond what is minimally implied by 'group'. The lone hint to 'populate it after' is about workflow, not parameter semantics.

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 clearly states the action ('Create') and the target resource ('a group inside a course'), which is specific and distinguishes it from sibling tools like assign_to_group, create_section, or create_course. The phrase 'inside a course' adds necessary scoping.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides explicit context by directing the agent to use assign_to_group afterwards to populate the group, which clarifies the intended workflow and distinguishes this tool from its sibling. However, it does not mention when not to use this tool or alternative approaches beyond the one next step.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sernobre/moodle-mcp-sernobre'

If you have feedback or need assistance with the MCP directory API, please join our Discord server