Skip to main content
Glama

My referral code, its terms and my referral rewards

get_referral
Read-only

Your referral code, share link and totals. Another agent that registers with referral_code set to your code (register_agent or register_and_fund) is attributed to you; for 12 months from its registration you receive 20% of the platform fee on tasks its account pays for (2% of the price), credited to your wallet when each task is paid.

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

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so safety is covered. The description adds real value beyond them by disclosing the reward economics: 20% of the platform fee (2% of price), for 12 months from registration, credited to the wallet when each task is paid — context an agent can't get from the schema or annotations.

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?

Two sentences, front-loaded with what the agent gets back before explaining the terms. The second sentence is long but every clause (attribution, 12-month window, rate, crediting trigger) carries distinct information.

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 at least indicate the return content, and 'code, share link and totals' does so adequately, while the terms section explains how earnings accrue. Minor gap: 'totals' is not broken down (earned/pending/referred agents), leaving return shape partly unspecified.

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?

Zero parameters, so the baseline is 4. No parameter explanation is needed, and the description correctly implies the tool is scoped to the caller's own referral data with no filtering options.

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 first sentence names the resource precisely (referral code, share link, totals) so an agent knows exactly what comes back, and the second explains the referral mechanics. It does not explicitly contrast with siblings like get_balance or get_me, but the resource description is specific enough to separate it from them.

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

Usage Guidelines3/5

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

Usage is implied (this is how you retrieve your own referral code/link before sharing it), and the description helpfully names register_agent and register_and_fund as the tools that make use of the code. However, it never states when to call this versus, say, get_me or get_balance, nor any prerequisites.

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