Skip to main content
Glama

suspend_user

Idempotent

Suspend a user's LearnWorlds account to block login access and prevent creating another account, updating the existing user record.

Instructions

🟡 WRITE · updates data · PUT /v2/users/{id}/suspend

Suspends a user from loging in or creating another account. The endpoint response is the suspended User 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. 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 Users tools: enroll_user_product, get_courses_enrollments_user, get_products_user, get_seat_offerings_that_user_is_member, get_user.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesUser id or email (encoded string)

Schema Changelog

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

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior4/5

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

Goes well beyond annotations by disclosing server-side auth injection, throttling under the 30-per-10s cap, retries on 429/5xx, return format (HTTP status plus JSON body), and detailed error mapping for 401/403/404/422. The inaccurate 'replaces the fields you send' statement for a suspend operation is a notable blemish, but the overall behavioral disclosure is rich and useful.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

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

The description is front-loaded with a method badge and purpose, then organized into labeled sections. However, it contains generic update-tool boilerplate ('replaces the fields you send', 'Read it first so you overwrite just the fields you mean to') that is irrelevant and potentially misleading for suspend_user, so not every sentence earns its place.

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?

Given a minimal schema and no output schema, the description covers the full call experience: endpoint, idempotency, auth, rate limiting, retry behavior, return payload, and error statuses. It also provides usage context and related tools. The mismatched 'replace fields' text is the main reason it is not a 5.

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?

The input schema already covers the only parameter (id) with a description ('User id or email (encoded string)'), so the baseline is 3. The tool description adds no further parameter-level meaning; it only restates the operation itself.

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 verb and resource: 'Suspends a user from loging in or creating another account.' This inherently differentiates it from the sibling unsuspend_user and other user-related tools. The additional update boilerplate adds some noise, but the core purpose is unmistakable.

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 an explicit 'Use when' condition ('only when the user asked to change an existing record'), advises reading the record first, and points to the create tool if the record doesn't exist. It also lists related Users tools. However, the 'overwrite just the fields you mean to' guidance is mismatched with suspend_user's single-id schema, making part of the guidance off-target.

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