Skip to main content
Glama

learnworlds

Add a user to a user group

learnworlds_add_user_to_group
Destructive

WRITE: add an existing user to a user group (which may enroll them in the group's products). LearnWorlds: POST /v2/user_groups/{id}/users/{uid}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
userYesThe user's id, or their email address.
group_idYesThe user group id (from learnworlds_list_user_groups).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations only declare destructiveHint=true, so the description's 'may enroll them in the group's products' adds real behavioral context about the side effect of this write. It stops short of describing reversibility, permissions, or idempotency.

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 tight sentences: the WRITE label and core action are front-loaded, and the endpoint reference is a compact optional detail. No padding.

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 the mutation nature and its side effect adequately. It omits error behavior (e.g., what happens if the user is already in the group) and any permission requirements, but nothing essential to invoking it 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 100% with only two parameters, so the schema already documents group_id (with a pointer to list_user_groups) and user. The description adds no format or syntax detail beyond the schema, so the baseline of 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 ('add an existing user to a user group') and even cites the underlying endpoint. It doesn't explicitly distinguish itself from the sibling learnworlds_enroll_user, which is the closest competing action, so it falls short of a 5.

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?

The word 'existing' implies the user must already be created (use learnworlds_create_user otherwise), which is useful implied guidance. However there is no explicit when-to-use/when-not statement or named alternative, leaving the enroll_user vs add-to-group choice to inference.

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.