Skip to main content
Glama

Link Guest Account to Email

horizon_link_email
Destructive

Converts a signed-in guest player into a password-protected email account, preserving the same user ID and sending a verification email.

Instructions

Converts a signed-in guest player into an email account while keeping the same user ID. Use when: a guest player explicitly chooses to secure the account with an email and password. Not for: new players (use horizon_signup_email), existing email accounts (use horizon_signin_email) and accounts that are not guests. Requires: a signed-in guest player: the userId and current accessToken from horizon_signup_anonymous or horizon_signin_anonymous. Side effects: turns the guest into an EMAIL account with the same userId and sends the verification email. The current session keeps working and the guest anonymous token is deleted on the server, so horizon_signin_anonymous no longer works for this player. Returns: 200 with userId, email, isAnonymous: false, isVerified: false and authStatus: USER_NOT_VERIFIED. Use horizon_verify_email, then horizon_signin_email. Errors: 409 when the email already belongs to another account or the account is not a guest: do not retry, ask the player. 401 for an invalid session: sign in again. 400 for invalid input. 404 or 403 for other failures. Needs HORIZON_API_KEY. Every failure returns an error result (isError) with the HTTP status and body: a 401 that horizon_test_connection also returns means HORIZON_API_KEY is wrong, 429 means the account's per-minute rate limit was reached (wait a minute, then retry).

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": {
      "userId": "<userId>",
      "sessionToken": "<sessionToken>",
      "email": "<email>",
      "password": "<password>"
    },
    "name": "horizon_link_email"
  }
}

Input Schema

NameRequiredDescriptionDefault
emailYesPlayer email address (valid format, max 40 characters); must not be registered yet
userIdYesPlayer user ID (UUID) from the result of horizon_signup_* or horizon_signin_*
passwordYesPassword, 8 to 128 characters; common passwords are rejected. Sent to the API only, never returned
sessionTokenYesPlayer accessToken from signup, signin or refresh-session, passed as sessionToken (max 256 characters)
preferredLanguageNoOptional language code for the account, such as en or de (max 10 characters)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.12.0

TDQS

A4.7/5.0
Behavior5/5

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

Goes far beyond the annotations (destructiveHint=true is honored, not contradicted) by disclosing that the guest anonymous token is deleted server-side so horizon_signin_anonymous stops working, that the current session survives, and that a verification email is sent. It also documents the full error taxonomy (409/401/400/404/403), the no-retry rule for 409, rate limiting on 429, and the HORIZON_API_KEY requirement.

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

Conciseness5/5

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

Densely packed but front-loaded and clearly labeled by purpose, usage, prerequisites, side effects, returns, and errors. Given the destructive multi-step auth flow, every sentence carries actionable information with no filler.

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?

With no output schema, the description supplies the return contract (userId, email, isAnonymous: false, isVerified: false, authStatus: USER_NOT_VERIFIED) and the required next steps via horizon_verify_email and horizon_signin_email. Nothing an agent needs to invoke and follow up correctly is missing.

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%, so the schema already documents all five parameters, including formats, lengths, and password rules. The description only restates where userId/sessionToken come from, adding little semantic detail beyond the structured fields, so the baseline of 3 applies.

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?

States a precise verb and resource: converts a signed-in guest player into an email account while keeping the same user ID. It explicitly separates itself from horizon_signup_email and horizon_signin_email, so an agent can distinguish this from siblings without opening a 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?

Provides an explicit 'Use when' condition (guest explicitly chooses to secure the account) and a 'Not for' clause naming the correct alternatives for new players, existing email accounts, and non-guest accounts. Prerequisite auth source is named.

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

Deploy Server

Other Tools