Skip to main content
Glama

Get referral stats

get_referral_stats
Read-onlyIdempotent

Referral stats (read-only). Pass code for public aggregate-safe counts on a known code (clicks, sales, referred users; no payout address or earnings ledger) — no auth needed. Omit code and sign in (or send an API key) for your own full dashboard including earnings and payouts. Stats follow the account and API key that own the widget or referral code — use that owner key, not a guest/secondary key. Programme terms: https://stabledomains.net/affiliates.json. Available on the full MCP and the read-only discover MCP (/api/mcp/discover).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_referral_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeNoExisting public referral code. Required when you are not signed in; returns public counts only.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / code
      Added value: +{
      +  "description": "Existing public referral code. Required when you are not signed in; returns public counts only.",
      +  "type": "string"
      +}
  2. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare read-only, idempotent, non-destructive, closed-world behavior, but the description adds substantial context beyond them: public counts exclude payout address and earnings ledger, authenticated mode includes earnings and payouts, and auth requirements differ by mode. It also clarifies which account/API key owns the stats and where the tool is available.

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

Conciseness4/5

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

The description is front-loaded with the core purpose and then covers modes, auth, ownership, terms, and availability. It is fairly dense but every sentence is relevant; the only minor cost is that a simple one-parameter tool gets a long paragraph.

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 read-only stats tool with no output schema, the description explains both public and authenticated return scopes, auth requirements, ownership constraints, and availability. An agent has enough information to choose the correct mode and call the tool correctly.

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%, and the schema already explains that code is an existing public referral code required when not signed in and returns public counts only. The description reinforces this and adds what the public counts include, but it does not add much new meaning specifically about the parameter beyond the schema.

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: referral stats, read-only. It also distinguishes two modes (public aggregate counts with a code vs. full authenticated dashboard), so the agent can tell what data it returns without opening the schema.

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?

It gives explicit conditions: pass code for public counts without auth; omit code and sign in or send an API key for the full dashboard. It also warns to use the owner account/API key rather than a guest or secondary key.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources