Skip to main content
Glama

get_user

Read-onlyIdempotent

Fetch a user's profile by ID or email from your LearnWorlds school for safe lookups and reporting. Read-only operation that creates, changes, or deletes nothing.

Instructions

🟢 READ-ONLY · GET /v2/users/{id}

Get a user. Returns the user specified by the provided user id.

Behavior: read-only lookup against the live school; creates, changes and deletes nothing. 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: safe to call speculatively for lookups and reporting. Not for changing anything — use the matching 🟡 write tool. Related Users tools: enroll_user_product, get_courses_enrollments_user, get_products_user, get_seat_offerings_that_user_is_member, get_user_groups_that_user_is_member.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesUser Id or email (encoded string)
include_suspendedNoFilter by include_suspended flag. The default value is false.

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?

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false. The description goes well beyond these by revealing auth injection is server-side, calls are throttled under a 30-per-10s cap with retry on 429/5xx, and non-2xx responses map to specific error statuses. It also clarifies the return format since there is no output schema. There is no contradiction with the annotations.

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-structured with labeled sections: purpose, behavior, returns, and usage guidance. It is longer than minimal but every sentence adds value—auth, rate limits, error handling, and alternatives are all relevant for correct invocation. The key read-only and GET details are front-loaded.

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?

Given the tool has only 2 parameters, full schema coverage, and rich annotations, the description covers everything an agent needs: what it does, return format, error semantics, auth behavior, rate limits, and when to use it versus alternatives. There is no output schema, but the description explicitly explains the response structure, making the definition complete.

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%: the schema already documents both `id` (User Id or email) and `include_suspended` (filter flag with default false). The description does not add parameter-specific meaning beyond saying 'by the provided user id,' so it stays at the baseline 3 for high coverage.

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 states a specific verb and resource: 'Get a user. Returns the user specified by the provided user id.' Combined with the read-only indicator and GET path, it is unmistakable what this tool does. It further distinguishes itself from sibling tools by explicitly noting it is not for changing anything and listing related Users tools.

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 states when to call it: 'safe to call speculatively for lookups and reporting.' It also provides a clear exclusion: 'Not for changing anything — use the matching 🟡 write tool.' It names related Users tools, giving concrete alternatives for user-specific data, so an agent can decide between this and siblings.

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