Skip to main content
Glama

Run the autotest locally

gamealia_run_autotest
Idempotent

Builds and runs a local headless Chromium autotest for Gamealia games on desktop and mobile to verify SDK lifecycle, rendering, input, ads, console errors, and security before upload.

Instructions

Builds (unless build:false) and runs the full Gamealia autotest locally in headless Chromium, desktop 1280x720 and mobile 390x844, the same checks as the server: SDK lifecycle, blank screen, input response, ads (mock), console errors, static security analysis. Run it before gamealia_upload_version, which repeats it on the server. No login; writes screenshots and report.json to a temp folder; takes a while (progress notifications). Returns pass/warn/fail, the failed checks with fixes, the screenshot paths and key screenshots as images.

Input Schema

NameRequiredDescriptionDefault
dirYesProject folder (absolute, or relative to the server's working directory)
buildNoRun the build command first when the project has one (default true)
imagesNoHow many screenshots to return as images, 0-6 (default 3); all paths are listed anyway
backendHostsNoYour own servers the game may call, as in the listing, e.g. ["mp.example.com"]; other external hosts are flagged

Output Schema

NameRequiredDescriptionDefault
nextYes
statusYes
problemsYes
outputDirYes
reportPathYes
screenshotsYes
failedRequiredYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.1.18
    • changedInput schema / properties / backendHosts / description
      Previous value: -"Your own servers (as in the listing)"New value: +"Your own servers the game may call, as in the listing, e.g. [\"mp.example.com\"]; other external hosts are flagged"
    • changedInput schema / properties / images / description
      Previous value: -"How many screenshots to return as images (default 3)"New value: +"How many screenshots to return as images, 0-6 (default 3); all paths are listed anyway"
  2. First observedv0.1.17

TDQS

A4.4/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations: file side effects ('writes screenshots and report.json to a temp folder'), a duration warning with progress notifications ('takes a while'), a no-login auth note, and the shape of the result (pass/warn/fail plus failed checks with fixes). The write-to-temp-folder detail is consistent with readOnlyHint=false and non-destructive, and the no-progress-fast caveat is exactly the kind of operational context annotations cannot convey.

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 action and scope, and every clause carries information: checks, viewports, ordering advice, side effects, duration, return shape. It is a single dense run-on paragraph heavy with parentheticals and semicolons, which costs a bit of scannability, but there is no filler to cut.

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?

For a multi-step local test runner with four params, an output schema and annotations, the description covers the prerequisites (none/login), side effects, latency, and result interpretation that an agent needs to call it correctly, and it correctly does not re-document the return schema in detail. Nothing material is left to inference.

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 description coverage is 100%, so all four parameters (dir, build, images, backendHosts) are already documented at the schema level, which sets the baseline at 3. The description reinforces only one of them ('unless build:false') and alludes to images via 'key screenshots as images', adding no syntax or edge-case meaning beyond the schema.

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+resource ('Builds ... and runs the full Gamealia autotest locally') plus scope detail that separates it from siblings: headless Chromium, desktop 1280x720 and mobile 390x844, and the enumerated check list (SDK lifecycle, blank screen, input response, ads, console errors, static security analysis). An agent can distinguish it from gamealia_build, gamealia_check_integration and gamealia_upload_version 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 Guidelines4/5

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

Explicitly routes ordering: 'Run it before gamealia_upload_version, which repeats it on the server,' which both names the alternative and explains the redundancy, plus 'No login' tells the agent no auth step is needed first. It stops short of stating when NOT to run it (e.g. skip after a successful local run) or pointing to gamealia_build/check_integration for partial checks, so it is strong but not fully exhaustive.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.