Skip to main content
Glama

Sign In with Email

horizon_signin_email

Sign in an existing verified email account with email and password to start a player session and get an access token for score submission, cloud saves, gift code redemption, and profile tools.

Instructions

Signs in an existing email account with email and password and starts a player session (accessToken). Use when: a registered, verified player logs in, before any tool that needs sessionToken (submit score, cloud save, gift code redeem, profile, validated runs). Not for: guest accounts (use horizon_signin_anonymous), new players (use horizon_signup_email) or checking an existing token (use horizon_check_auth). Side effects: creates a new session on every call; older sessions stay valid. Returns: {userId, username, email, accessToken, authStatus, message}, with refreshToken and both expiry timestamps only when explicitly opted in. Pass accessToken as sessionToken. Access sessions have a one-hour sliding lifetime; refresh tokens rotate and expire after 30 days. Errors: 401 INVALID_CREDENTIALS for wrong credentials. 403 USER_NOT_VERIFIED requires horizon_verify_email first. Use horizon_forgot_password only when the player requests recovery. 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": {
      "email": "<email>",
      "password": "<password>"
    },
    "name": "horizon_signin_email"
  }
}

Input Schema

NameRequiredDescriptionDefault
emailYesEmail address the account was registered with (max 40 characters)
passwordYesAccount password (max 128 characters); sent to the API only, never returned
includeRefreshTokenNoExplicit opt-in to a rotating 30-day refresh session; omitted or false preserves access-only behavior. Store refresh tokens in platform secure storage

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.11.1
    • addedInput schema / properties / includeRefreshToken
      Added value: +{
      +  "description": "Explicit opt-in to a rotating 30-day refresh session; omitted or false preserves access-only behavior. Store refresh tokens in platform secure storage",
      +  "type": "boolean"
      +}
  2. Changed5 schema fields changedv1.6.0
    • changedInput schema / properties / email / description
      Previous value: -"Email address"New value: +"Email address the account was registered with (max 40 characters)"
    • addedInput schema / properties / email / maxLength
      Added value: +40
    • changedInput schema / properties / password / description
      Previous value: -"Password"New value: +"Account password (max 128 characters); sent to the API only, never returned"
    • addedInput schema / properties / password / maxLength
      Added value: +128
    • addedInput schema / properties / password / minLength
      Added value: +1
  3. First observedv1.5.4

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond annotations by disclosing that every call creates a new session while older sessions remain valid, that access sessions have a one-hour sliding lifetime, and that refresh tokens rotate and expire after 30 days. It also enumerates error semantics (401 INVALID_CREDENTIALS, 403 USER_NOT_VERIFIED, 429 per-minute rate limit) and the HORIZON_API_KEY requirement, including how to disambiguate a bad API key using horizon_test_connection.

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?

Front-loaded with the core action and organized under explicit labels (Use when, Not for, Side effects, Returns, Errors), so an agent can scan to the needed part. It is on the long side, and the error-handling sentence packs several distinct troubleshooting rules together, but little is genuinely redundant.

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?

There is no output schema, and the description compensates by naming the return fields, the conditional refreshToken and expiry timestamps, and the full failure surface including isError payload shape. For an authentication tool with session side effects, nothing an agent needs to call it correctly is missing.

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 100%, so the baseline is 3; the description earns above that by explaining the downstream role of one parameter ('Pass accessToken as sessionToken') and the opt-in semantics of includeRefreshToken plus the storage requirement for refresh tokens. It stops short of adding format constraints beyond the schema's own patterns and lengths.

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 specific verb and resource ('Signs in an existing email account with email and password') plus the concrete outcome ('starts a player session (accessToken)'). This is immediately distinguishable from sibling sign-in paths such as horizon_signin_anonymous and horizon_signin_apple.

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 tied to prerequisites ('registered, verified player', 'before any tool that needs sessionToken') and a 'Not for' clause that names the alternative for each excluded case: guest, new player, token check. No inference required.

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