Skip to main content
Glama

Get referral link

get_referral_link
Read-onlyIdempotent

Referral link for a code (?ref=, 30-day first-referrer attribution). This tool is read-only. Pass code for a known public referral code — no auth needed; the link is deterministic. Omit code and sign in (or send an API key) to get or create your own code — no payout address required to activate; earnings accrue until you set one. Earn $0.60 per .com you refer, $0.51 per .xyz, paid weekly in USDC. 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_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeNoExisting public referral code. Required when you are not signed in.

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.",
      +  "type": "string"
      +}
  2. Added

TDQS

A4.2/5.0
Behavior5/5

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

Beyond the annotations (readOnly, idempotent, non-destructive), the description discloses auth requirements per mode, that the link is deterministic, that no payout address is needed to activate, that earnings accrue until one is set, the earnings rates and payout cadence/currency, and which MCP endpoints expose the tool. That is exactly the kind of behavioral context annotations cannot convey.

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 returned artifact and the auth branch before the commercial detail, and each sentence carries information an agent may need. It is dense in places (per-TLD rates, payout cadence) but nothing is pure filler, and the endpoint-availability note is genuinely selection-relevant.

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?

For a one-optional-parameter tool with no output schema, the definition covers the return concept, auth branching, activation prerequisites, and monetization outcomes adequately. It could be tighter about what the returned value actually looks like (bare URL versus object), which is the one gap given there is no output schema.

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?

Schema coverage is already 100%, so the baseline is 3; the description adds value by framing code as an opt-in path for unauthenticated callers and by showing how the code is consumed (?ref=<code>) with 30-day first-referrer attribution semantics. The added meaning is real but partially restates the schema's own description.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with the concrete artifact returned ('Referral link for a code (?ref=<code>, 30-day first-referrer attribution)'), which tells an agent exactly what resource is produced and how attribution works. It is a noun phrase rather than a verb+resource construction, and nothing distinguishes it from the sibling get_referral_stats, so it falls short of the top mark.

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?

It gives two explicit operating modes: pass a known public code with no auth for a deterministic link, or omit code and sign in / send an API key to get or create your own. That is clear when-to-use context, but it never names the nearby alternatives (e.g. getting stats versus creating a code) so an agent must still infer the boundary from sibling names.

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