Skip to main content
Glama

Enroll a user in a learning path

axislms_enroll_user_in_learningpath

WRITE: enroll an active user in a learning path. The user must not already be enrolled. POST /learningpaths/enrollments/{learningpath_id}/users/{user_id}/.

Input Schema

NameRequiredDescriptionDefault
user_idYes
learningpath_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly=false, idempotent=false, destructive=false, and openWorld=true, so the safety profile is covered. The description adds real value beyond that: the explicit 'WRITE' marker, the 'must not already be enrolled' precondition (which explains why the call fails on repeat), and the requirement that the user be active. It does not describe the response or error behavior, keeping 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?

Three short, information-dense sentences with the operation type and action front-loaded and zero filler. Every sentence adds a distinct fact (write type, precondition, endpoint).

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?

For a two-parameter write tool with no output schema, the description covers operation type, preconditions, and endpoint. It lacks any statement about failure behavior (e.g., what error occurs if already enrolled) or confirmation response, which would fully close the loop, but nothing essential for correct invocation is missing.

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 carries the burden of explaining the two parameters. It partially compensates by embedding the endpoint template POST /learningpaths/enrollments/{learningpath_id}/users/{user_id}/, which implies the role of each path parameter, and the names are self-explanatory. However, no format or constraint detail is added beyond the template.

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?

States a specific verb and resource (enroll a user in a learning path) with the 'WRITE:' tag making the operation type immediately clear. The resource name distinguishes it from the sibling enroll_user_in_course and enroll_user_in_ilt_session tools without further explanation.

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?

Provides clear preconditions: the user must be active and must not already be enrolled, which tells the agent when the call is valid. It does not explicitly route to alternatives (e.g., unenroll_user_from_learningpath or the course/session enrollment siblings), so it falls short of a 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.