Skip to main content
Glama

remove_user_community_space

DestructiveIdempotent

Remove a user from a community space in LearnWorlds by specifying the space ID and user ID. This permanently deletes their membership.

Instructions

๐Ÿ”ด DESTRUCTIVE ยท deletes ยท DELETE /v2/community/spaces/{id}/users/{uid}

Remove a user from a community space. Removes the user specified by the provided user id from the provide space id.

Behavior: permanently removes the addressed record from the live school โ€” no undo from this server. 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 200/204, with a body that is usually empty on success. 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 after the user confirms the removal. To merely revoke access or deactivate, use the matching ๐ŸŸก update or unenroll tool instead. Related Community tools: add_invite_users_community_space, get_users_community_space, delete_community_space, get_community_space, update_community_space.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesUnique identifier of the community space
uidYesUniquer identifier of the user

Schema Changelog

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

  1. First observedv1.0.0

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the destructiveHint annotation, the description discloses that the action is permanent, that auth is injected server-side and never by the model, that calls are throttled/retried, and exactly what HTTP statuses and error payloads to expect. This goes far beyond the annotations and gives the agent essential expectations for a destructive call.

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 dense but every sentence earns its place: destructive warning, endpoint, behavior, server-side auth, throttling/retry, return semantics, error mapping, and usage guidance. It is front-loaded with the most important warning and contains no filler.

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 two-parameter destructive tool with no output schema, the description is complete: it explains what happens, what the response looks like, what errors mean, how auth works, and when the tool should be used. An agent has enough information to invoke it correctly and anticipate failure modes.

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%, so the schema already documents both parameters. The description only restates that the user is identified by uid and the space by id, adding no extra format, constraints, or behavior beyond what the schema provides. A baseline 3 is appropriate.

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 begins with a clear, specific action: 'Remove a user from a community space', and explicitly names the resource and identifiers involved. It also differentiates itself from sibling tools like remove_user_seat and remove_user_user_group by scoping to community spaces.

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 description explicitly states when to use the tool ('only after the user confirms the removal') and when not to ('To merely revoke access or deactivate, use the matching update or unenroll tool instead'). It also lists related Community tools as context, giving an agent clear routing guidance.

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