Skip to main content
Glama

klyo games: publish HTML5 browser games

Why players leave: game analytics

klyo_game_analytics
Read-onlyIdempotent

Game analytics for the developer, read _najpierw first: one verdict (wyrok, en.verdict) and the top tasks with a reason and a fix (dlaczego/jak, en.why/en.how). Then: lejek = the session funnel the klyo kit records with NO code in the game (wejscie = opened the game page, start = pressed Play, gotowa = klyo.ready() with average load ms for phone and computer, ruch = first real move, gra30 = 30 s of visible play, koniec = round finished (with or without a score), dalej = went on to the next game from the end screen, wynik = reached a score), each step with sesji, telefon, komputer and odpada (sessions lost at this step, the answer to WHERE players leave); poziomy from klyo.level(n, "start"|"complete"|"fail") with start, koniec (completed) and porazka (fail) per level; zdarzenia from klyo.event(name, value) with count and sum; mapa = click map on a 24 × 16 grid of the game screen (komorki = [cell index, clicks], index = row × 24 + column, separate portrait and landscape) collected by the kit with no code; sesje = the latest sessions WITHOUT any person (country, phone or computer, time, play seconds, rounds, score, returning; the player tag is stable only within this game); kraje and rozklad (how long sessions lasted); testy = what REAL testers from the developer's test links hit in the last 48 h (recordings): dead taps and rage clicks with the element under the finger and the screen position, JavaScript errors, the screen where they quit, each with evidence (tester and second of the recording the developer opens in the studio) and dla_ai, the same as plain text; its tasks come first in _najpierw. Fix what _najpierw says (klyo_fix_game, klyo_game_patch, a new version) and ask again after the next players. Read-only.

Examples: • Why do players leave my game? • On which level do people quit lantern-thief? • Where do players click in my game, and how long does it load on phones?

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": {
      "slug": "<slug>"
    },
    "name": "klyo_game_analytics"
  }
}

Input Schema

NameRequiredDescriptionDefault
dniNoHow many days of the daily series (default 30).
slugYesGame address in the catalogue, for example lantern-thief (from klyo_my_games).
sprawdz_googleNoAsk Google about this game's pages now (URL Inspection), at most once an hour per game. Each page then carries `sprawdzono` (when we asked) and `odwiedziny` (Google's last crawl). Google has no API to request indexing of an ordinary page: the sitemap already submits it, and the Request indexing button lives in Search Console.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already cover the read-only, idempotent, non-destructive profile, and the description goes further by disclosing data provenance and freshness: no-code instrumentation for funnel and click map, `testy` limited to the last 48 h from test links, `sesje` stripped of any personal identity with player tags stable only within this game, and the 24×16 grid encoding. The once-per-hour Google URL Inspection limit lives in the schema rather than the description, and the trailing 'Read-only' merely repeats the annotation.

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

Conciseness2/5

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

The body is a single sprawling semicolon-chained paragraph that mixes Polish field names, English glosses, and metric definitions with no structural separation. The verdict comes first, which is good front-loading, but the funnel/levels/events/map/sessions/tests material would read far better as a list, and several clauses (e.g. explaining what `koniec` and `wynik` mean) could be tightened without losing information.

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?

With no output schema and roughly ten distinct data sections returned, the description correctly takes on the burden of explaining return values, defining each funnel step and grid encoding and noting the en.* aliases. Coverage is close to complete for an agent to interpret the payload; the main gap is that freshness/aggregation windows for `poziomy`, `zdarzenia`, and `kraje` are never stated.

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 all three parameters (slug, dni, sprawdz_google) are already documented, including the hourly URL Inspection cap. The description adds nothing about parameter meaning beyond the slug example being echoed in the schema, so the baseline 3 applies.

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 description states a specific verb-and-resource ('Game analytics' with a verdict plus funnel, levels, events, click map, sessions, tests), and the title 'Why players leave' anchors the intent. It is clearly a read/analysis tool and example questions reinforce it. It does not, however, distinguish itself from plausible siblings such as klyo_game_stats or klyo_game_diagnostics, so an agent cannot fully disambiguate from names alone.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives explicit workflow guidance: read `_najpierw` first, then fix what it says via klyo_fix_game / klyo_game_patch / a new version, and re-run after the next batch of players. Three concrete example questions show the intended contexts. What is missing is any exclusion or comparison against the other analytics-flavoured siblings.

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.