Skip to main content
Glama

Use an invite code

use_invite_code
Destructive

Uses a friend's LFG referral code for the person: it records who brought them in and makes them friends on LFG. For a referral code (LFG-…); a link's address or code is joined, not used here. Once per account and never their own code; it cannot be undone. The welcome gift opens for both when the person's first alarm rings. A code that is not one returns an error.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "code": "<code>"
    },
    "name": "use_invite_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesThe referral code, "LFG-AB12C", or an invite link (lfg.gm/i/...).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

The annotations already declare a non-idempotent, destructive, open-world write, so the bar is lower, yet the description still adds meaningful behavior: the operation is irreversible, it creates a mutual friendship, and the welcome gift is unlocked later when the person's first alarm rings. It also states the failure mode for an unrecognized code, though it omits what the error or success payload looks like.

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 definition is dense and front-loads the main effect, which is good, but several clauses are compressed to the point of being unclear ('for the person', 'a link's address or code is joined'). The link-handling sentence in particular costs space without conveying an actionable rule.

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 single-parameter mutation with no output schema and full annotation coverage, the description covers effect, side effects, idempotency constraint, irreversibility, and error behavior. The main gap is the ambiguity about whether a link URL is accepted, which contradicts the schema and could cause a correct call to be avoided.

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 coverage is 100%, so the parameter is already documented, and the description adds little beyond restating that this takes a referral code. Worse, the phrase 'For a referral code (LFG-…); a link's address or code is joined, not used here' sits in tension with the schema, which explicitly accepts an invite link such as lfg.gm/i/... as the code value.

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 clause gives a concrete verb and effect: it redeems a friend's LFG referral code and, as a result, records the referrer and creates a friendship. That is specific enough to separate it from the code-producing siblings. The follow-up clause about link addresses is garbled and slightly muddies which input form this tool actually takes, keeping it short of a 5.

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?

It does give real preconditions — once per account, never your own code, irreversible — which tell the agent when a call is legal. However, it never names a sibling as the right alternative (e.g. getting or issuing a code instead of redeeming one), and the 'a link's address or code is joined, not used here' routing statement is too ambiguous to act on.

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.