Skip to main content
Glama

Get Chat Limits

horizon_get_chat_limits
Read-onlyIdempotent

Read five-tier chat limits, moderation status, and hosted capabilities for a signed-in player before explicit hosted chat actions.

Instructions

Reads five-tier bounds, current moderation and hosted capabilities. Use when: explicit hosted chat actions after reading horizon://docs/chat. Not for: automatic sends, repeated polling, rich-text rendering or exposing moderation credentials. Use horizon_get_chat_operation to reconcile original sends, then horizon_send_chat_message only for the explicit identical replay. Requires: userId and the player's session: sign in with horizon_signin_email or horizon_signin_anonymous and pass its accessToken as sessionToken. Side effects: Read only, including during FREE/mute/ban. No polling timer. Returns: {limits,capabilities,moderation,serverTime} Errors: 404 hides private/missing/expired channels or source messages. 409 OPERATION_CONFLICT/OPERATION_EXPIRED or STATE_CONFLICT requires explicit original-intent reconciliation. Never replace an unknown send UUID/time/text. 429 does not schedule a retry. CHAT_MUTED/CHAT_BANNED restrict current chat access. 501 NOT_SUPPORTED means simpleServer has no chat or polling fallback. 401 means the session is missing or expired: sign in again and retry with the new accessToken. 403 for a session means the token belongs to another user: pass the userId that signed in. 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).

Input Schema

NameRequiredDescriptionDefault
userIdYesActive player matching the current session and project
sessionTokenYesPlayer accessToken sent only as Bearer

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.9.1

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already cover readOnly/idempotent/non-destructive, and the description still adds real behavioral context: read-only even under FREE/mute/ban, no polling timer, and a full error contract (404 channel hiding, 409 reconciliation requirement, 429 no auto-retry, 501 NOT_SUPPORTED, 401 re-auth, 403 userId mismatch). The rule "Never replace an unknown send UUID/time/text" is a genuine safety constraint not derivable from structured fields.

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 when/when-not/auth/returns blocks are front-loaded and scannable, but the error paragraph sprawls into one dense run-on covering 404/409/429/501/401/403/API-key/rate-limit cases. Several clauses (the horizon_test_connection cross-reference, the restated 429 meaning) repeat earlier statements and dilute the signal for a read-only introspection tool.

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?

No output schema exists, so the description carries the return shape itself ({limits,capabilities,moderation,serverTime}), the auth prerequisite chain, and the failure semantics. Nothing an agent needs to call this correctly on the first attempt 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 goes further by explaining provenance — sign in via horizon_signin_email/anonymous and pass the resulting accessToken as sessionToken, with userId matching that signer. That is meaningfully more than the schema's "Player accessToken sent only as Bearer".

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?

"Reads five-tier bounds, current moderation and hosted capabilities" gives a specific verb and a concrete set of resources, and the Returns line enumerates the payload. The phrase "five-tier bounds" is a bit of internal jargon, but combined with the return keys the agent can tell this is a limits/capability introspection call, distinct from horizon_send_chat_message and horizon_get_chat_operation.

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?

Explicit "Use when" / "Not for" structure with concrete exclusions (automatic sends, repeated polling, rich-text rendering, exposing moderation credentials). It names the alternatives and the ordering: horizon_get_chat_operation to reconcile an original send, then horizon_send_chat_message for the identical replay only.

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