Skip to main content
Glama

Get the referral link, badge and earnings

get_referral
Idempotent

The user's referral program: their link (whoever signs up through it earns them 25% of every payment, for life), a ready HTML link, the "Stats by Bearing" badge HTML (it carries the code), what they earned month by month, their referred customers (anonymous: only when they joined and their status), and where the visits they send come from (arrivals on Bearing through their link or badge over the last 90 days, by site of origin: counts only).

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"
  }
}

Input Schema

NameRequiredDescriptionDefault
localeNoLanguage of the link and badge. Default en.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations declare readOnlyHint=false, idempotentHint=true, destructiveHint=false, which is a non-obvious profile for a 'get' tool — yet the description never explains the side effect (likely that the referral link/badge is generated on first access). It does add genuine behavioral context the annotations cannot: 25% lifetime commission terms, anonymity of referred customers (join date and status only), the 90-day window and counts-only traffic data. That is real value, but the mutation question is left unaddressed.

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

Conciseness3/5

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

The key item (the referral link and its 25% lifetime payout) is front-loaded, and every clause conveys real information. However, it is delivered as one sprawling ~65-word sentence with nested parentheticals, which makes the return shape harder to scan than a short bulleted or semicolon-separated enumeration would be.

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?

With no output schema, the description must carry the return-value burden, and it does so thoroughly — all six payload areas are named with their scoping caveats. What is missing is any note on why a read-shaped tool is flagged non-read-only, but for a single optional parameter this is close to 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% with a single enum-documented 'locale' parameter, so the structured fields already carry the semantics; the description adds nothing about locale and does not say the locale affects both link and badge beyond what the schema states. Baseline 3 applies.

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 names a specific resource (the user's referral program) and then enumerates its concrete contents: link, HTML snippet, badge HTML, monthly earnings, referred customers and 90-day traffic origin. An agent knows exactly what data comes back. It stops short of differentiating from sibling analytics tools such as get_mrr or get_stats, so it is clear but not sibling-aware.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use, when-not, or alternative guidance at all — the text is purely a content inventory. An agent must infer from the name alone that this is the referral-program counterpart to the revenue/analytics siblings. No prerequisites or prerequisites-about-account-state are given.

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