Skip to main content
Glama

get_affiliates

Read-onlyIdempotent

Retrieve the complete list of school affiliates, newest first, 20 per page. Use this read-only lookup to view affiliate records for reporting without modifying data.

Instructions

๐ŸŸข READ-ONLY ยท GET /v2/affiliates

Get affiliates. Returns a list with all the affiliates of the school. The affiliates are in sorted order, with the most recently created affiliate appearing first, and the list is paginated, with a limit of 20 affiliates per page.

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. Parameters: results are paged โ€” walk them with page. 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 Affiliates tools: get_affiliate_payments, get_completed_affiliate_payouts, get_customers_per_affiliate, get_due_affiliate_payouts, get_leads_per_affiliate.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNoFilter by the page number. In case page number is higher than the maximum one, the results of last page will be returned

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 establish read-only/idempotent safety, and the description meaningfully goes beyond them: auth is injected server-side, calls are throttled to LearnWorlds' 30-per-10s cap and retried on 429/5xx, responses are paginated at 20 per page, and non-2xx behavior is specified with status codes and error payloads. This is substantial behavioral context.

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 front-loaded with the method and read-only nature, then flows clearly through behavior, auth, parameters, return values, errors, and usage. Every section carries distinct operational information, and the structured labels make it easy to scan without being bloated.

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?

With no output schema, the description compensates well by explaining the HTTP status plus JSON response, error semantics for auth/permissions/not-found/invalid input, pagination mechanics, and ordering. It also places the tool among related affiliate siblings, giving an agent enough context to invoke it correctly.

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?

The only parameter, page, is already fully documented in the schema with a default and behavior. The description adds the practical guidance to 'walk them with page' and states the 20-per-page limit, which clarifies how to paginate beyond the schema's basic default-value note.

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 read operation (GET /v2/affiliates) that returns the school's affiliates, with ordering and pagination details. It is clearly distinct from sibling tools like get_affiliate_payments or get_leads_per_affiliate because those focus on per-affiliate derived data rather than the core affiliate list.

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 says when to use it: 'safe to call speculatively for lookups and reporting.' It also says when not to use it โ€” 'Not for changing anything โ€” use the matching ๐ŸŸก write tool' โ€” and lists related Affiliate tools, helping an agent route correctly among 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