Skip to main content
Glama

Sign In Anonymously

horizon_signin_anonymous

Signs in a returning anonymous guest with a stored anonymousToken and starts a player session, returning an accessToken to use as sessionToken.

Instructions

Signs in an anonymous (guest) account with its stored anonymousToken and starts a player session (accessToken). Use when: a returning guest opens the game, or right after horizon_signup_anonymous, before any tool that needs sessionToken. Not for: email accounts (use horizon_signin_email) or creating a guest (use horizon_signup_anonymous). Requires: the anonymousToken returned by horizon_signup_anonymous for this account. Side effects: creates a new session on every call; older sessions stay valid. Returns: {userId, username, accessToken, authStatus, message}, plus refreshToken and both expiry timestamps only when explicitly opted in. Pass accessToken as sessionToken. Store recovery and refresh tokens in platform secure storage, never logs or general preferences. Errors: 404 USER_NOT_FOUND means this token cannot restore the account: confirm the stored token and offer horizon_signup_anonymous only after the player chooses a new account. 429 may also be the configured project/IP or project/token limiter: honor Retry-After instead of assuming fixed limits. 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": {
      "anonymousToken": "<anonymousToken>"
    },
    "name": "horizon_signin_anonymous"
  }
}

Input Schema

NameRequiredDescriptionDefault
anonymousTokenYesanonymousToken returned by horizon_signup_anonymous (exactly 32 characters: letters, digits, _ and -)
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. Changed3 schema fields changedv1.6.0
    • changedInput schema / properties / anonymousToken / description
      Previous value: -"anonymousToken returned by horizon_signup_anonymous (max 32 characters)"New value: +"anonymousToken returned by horizon_signup_anonymous (exactly 32 characters: letters, digits, _ and -)"
    • addedInput schema / properties / anonymousToken / minLength
      Added value: +32
    • addedInput schema / properties / anonymousToken / pattern
      Added value: +"^[A-Za-z0-9_-]+$"
  3. Changed1 schema field changedv1.5.5
    • changedInput schema / properties / anonymousToken / description
      Previous value: -"Anonymous token (max 32 characters)"New value: +"anonymousToken returned by horizon_signup_anonymous (max 32 characters)"
  4. First observedv1.5.4

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, idempotentHint=false, openWorldHint=true and destructiveHint=false; the description goes further by explaining why non-idempotency matters (a new session is created on every call, older sessions stay valid) plus the HORIZON_API_KEY requirement and that failures return isError with status and body. The 404 USER_NOT_FOUND recovery path is concrete. It loses a point because the two 429 passages conflict in emphasis: one says 429 'may also' be the project/IP or project/token limiter and to honor Retry-After, while the closing sentence asserts 429 means the per-minute account limit and to wait a minute.

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?

The labeled structure (Use when / Not for / Requires / Side effects / Returns / Errors) front-loads the routing decision and makes scanning easy. However, the error section is dense and partly duplicative, restating the 429 handling twice with different guidance and repeating secure-storage advice already implied by the includeRefreshToken parameter.

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 enumerating the return shape (userId, username, accessToken, authStatus, message, conditional refreshToken and expiries) and by telling the agent to pass accessToken as sessionToken. For a session-minting auth tool with two parameters, nothing an agent needs to call it or handle failures 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 both parameters are already documented in structured form; the description nevertheless adds operational meaning by tying anonymousToken back to its issuer and framing includeRefreshToken as an explicit opt-in that must be stored in platform secure storage, never logs or general preferences. It does not add format or validation detail beyond the schema, so it stays near the baseline rather than above it.

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 anonymous guest account using its stored anonymousToken and starts a player session (accessToken). It also distinguishes itself from horizon_signin_email (email accounts) and horizon_signup_anonymous (creating a guest), so an agent can route correctly without opening any 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' (returning guest opens the game, or immediately after horizon_signup_anonymous, before any tool needing sessionToken) and an explicit 'Not for' naming both alternatives. Prerequisite (anonymousToken from signup) and downstream ordering are stated outright.

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