Skip to main content
Glama

klyo games: publish HTML5 browser games

Play your game on your own device

klyo_game_play

Really play your game and see it: you send input steps, you get screenshots (image content) and the game state. It runs on the OWNER'S device, never on the klyo server: the owner opens the klyo studio (https://dev.klyo.pl/) on a computer or phone and clicks "Allow" under "Your assistant wants to play …" (your call puts that request on the studio, also on one opened within 10 minutes); they see every move and can stop it. Real graphics card, real screen, so 3D games work. Target: slug or upload_id; you play the same version klyo_game_files reads (the waiting version or package under its preview, otherwise the version players have). The first call opens the game, next calls continue it, restart reloads it, close ends the session. steps run on one timeline of at most 3000 ms: each step starts when the previous one ends, or at at_ms to run in parallel (run + turn the camera + jump). Types: key (key like KeyW, ArrowUp, Space, Enter, hold_ms), click (x, y, button, count), tap (x, y), drag (x, y, to_x, to_y, ms, pointer), move (relative mouse dx, dy, ms, for a mouse-look camera), wheel (dy), wait (ms), screenshot. Coordinates are fractions 0 to 1 of the game view. Up to 40 steps and 4 screenshots per call (screenshots adds them at the end, default 1). Input is synthetic (not trusted events): pointer lock is simulated for mouse-look games. request_id makes a retry return the same result without playing twice. stan: ok | brak_urzadzenia (ask the owner to open the studio and click "Allow", then call again) | karta_w_tle (the studio tab is hidden and the browser pauses the game) | urzadzenie_nie_odpowiada | zatrzymane (the owner stopped it) | w_toku. Errors from this session: klyo_game_diagnostics with sesja = sesja.znacznik. Evidence: a play of a waiting version or package in which the game drew at least 10 frames on a hardware graphics card is saved for those exact files (dowod_urzadzenia in the answer); klyo_game_diagnostics then lists it under bramka.sprawdzono_na_urzadzeniu instead of NIESPRAWDZONA, until the files change.

Examples: • Play klyo-blocks: walk forward for a second, look right and take a screenshot • Tap the start button in the middle of my game and show me the first level • Open the waiting version of slice-rush on my phone and swipe left twice

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
slugNoYour game's address (from klyo_my_games). Give this or `upload_id`.
closeNoEnd the session and close the game on the owner's device.
stepsNoInput on one timeline of at most 3000 ms. Without `at_ms` a step starts when the previous one ends.
deviceNoWhich of the owner's devices (`urzadzenie.id` from an earlier answer); default: the most recently switched on.
screenNoSize of the game view on the owner's device (default: the whole device screen).
restartNoReload the game before the steps.
upload_idNoA waiting-room package, when there is no game yet.
request_idNoYour id for this call: a retry with the same id returns the same result without playing again.
screenshotsNoScreenshots taken after the steps (default 1 when there is no screenshot step).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

With annotations already declaring readOnly=false/openWorld=false/idempotent=false, the description adds substantial context beyond them: execution happens on the owner's device, the owner must click 'Allow' in the studio, they can watch and stop it, input is synthetic (not trusted events), pointer lock is simulated, and `request_id` makes retries idempotent. It also enumerates the `stan` status codes (brak_urzadzenia, karta_w_tle, zatrzymane, etc.) and the evidence/dowod_urzadzenia outcome.

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 opening sentence front-loads the purpose and the target/session model follows logically. It is dense and long, with a status-code list and evidence paragraph that tax readability, but for a 9-parameter tool with a nested step timeline most sentences carry real information.

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 must carry the return-value burden — and it does: screenshots as image content, game state, `stan` codes, `dowod_urzadzenia` evidence, and how klyo_game_diagnostics surfaces it. Combined with the permission/Allow prerequisite and session lifecycle, an agent has everything needed to invoke it correctly.

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, but the description meaningfully complements it by explaining the step grammar: steps run on one timeline of at most 3000 ms, each starts when the previous ends or at `at_ms` for parallelism, coordinates are fractions 0-1, up to 40 steps and 4 screenshots, and it lists the fields per step type. This composition semantics goes beyond the per-field schema text.

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?

The description names a specific verb+resource ('Really play your game and see it: you send input steps, you get screenshots (image content) and the game state') and explicitly frames the mode as remote-on-owner's-device. It also distinguishes itself from siblings by tying its target to 'the same version klyo_game_files reads' and routing failures to klyo_game_diagnostics.

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?

The session lifecycle is spelled out clearly ('The first call opens the game, next calls continue it, `restart` reloads it, `close` ends the session'), and the error path names an alternative ('Errors from this session: klyo_game_diagnostics with `sesja` = `sesja.znacznik`'). It does not state explicit when-NOT-to-use conditions versus siblings like klyo_game_files, so it stops short of a 5.

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.