Skip to main content
Glama

update_user_group

Idempotent

Modify an existing LearnWorlds user group by sending updated fields like title, products, managers, and enrollment rules. Apply changes to a current group record without creating a new one.

Instructions

🟡 WRITE · updates data · PUT /v2/user_groups/{id}

Updates a user group. The endpoint response is the updated user group resource.

Behavior: replaces the fields you send on an existing record in the live school. Idempotent: repeating it leaves the same state. Auth (admin API token + Lw-Client id) is injected server-side, never by the model; calls are throttled to stay under LearnWorlds' 30-per-10s cap and retried on 429/5xx. Parameters: the whole JSON payload goes in the single body argument, forwarded verbatim (the spec leaves body optional, but this endpoint expects one). Returns: HTTP <status> followed by the LearnWorlds JSON response body. A non-2xx reply surfaces as a tool error with that status and the API error payload — 401 bad/expired token, 403 not permitted, 404 no such record, 422 rejected input. Use when: only when the user asked to change an existing record. Read it first so you overwrite just the fields you mean to; use the create tool if it does not exist yet. Related User groups tools: add_user_user_group, deletes_user_group, get_user_group, get_users_user_group, remove_user_user_group.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesThe unique identifier of the user group
bodyNoRequest body (application/json).

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.0.0

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already provide idempotentHint, readOnlyHint, openWorldHint, and destructiveHint. The description adds substantial behavioral context: it replaces only the fields sent, is idempotent, has server-side auth injection, is throttled and retried on 429/5xx, and returns HTTP status plus JSON body with specific error mappings for 401/403/404/422. This goes far beyond the annotations and gives the agent a clear operational mental model.

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 well-organized into labeled sections (Behavior, Parameters, Returns, Use when) and every sentence carries actionable information. The front-line declaration of WRITE/PUT and the concise update statement make the tool's purpose immediately clear. No filler or repetition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a write operation with no output schema, the description covers everything an agent needs: auth requirements, rate limiting and retry behavior, response format, error semantics, idempotency, the body requirement, and when to route to the create tool instead. The absence of an output schema is compensated by the explicit 'Returns' section.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3. The description adds a crucial nuance: the schema marks `body` optional, but the endpoint actually expects a body, and the whole payload should be forwarded verbatim into the single `body` argument. This is valuable practical guidance that prevents invocation failures.

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 uses a specific verb and resource ('Updates a user group'), states the HTTP method and path (PUT /v2/user_groups/{id}), and clarifies it modifies an existing record. This cleanly distinguishes it from sibling tools like create_user_group, deletes_user_group, and get_user_group.

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

Usage Guidelines5/5

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

The 'Use when' section explicitly says to use this only when the user asked to change an existing record, tells the model to read the record first to avoid overwriting unintended fields, and says to use the create tool if the record does not exist. It also names related sibling tools, making the routing decision unambiguous.

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/ohneben/Learnworlds-MCP'

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