Skip to main content
Glama
putervision
by putervision

generate_game_inputs

Read-onlyIdempotent

Translate 3D game state into Playwright MCP actions (WASD, mouse-look, clicks) or map world coordinates to screen pixels and back, enabling automated game interactions from spatial data.

Instructions

Generate Playwright MCP automation inputs (WASD, mouse-look, clicks) or project/unproject 3D entity coordinates and screen pixels.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionNoAction to perform (default: generate_inputs)
cameraNoCamera state for projection / click-to-move
projectNoOptional project identifier
screen_xNoScreen pixel X coordinate for screen_to_world unprojection
screen_yNoScreen pixel Y coordinate for screen_to_world unprojection
viewportNoBrowser viewport dimensions
directionNoProjection direction for projection mode
entity_idNoPlayer or target entity ID
waypointsNoOptional intermediate navigation waypoints
output_formatNoOutput format (default: playwright_mcp)
world_positionNo3D world position for projection or starting point
control_profileNoGame control key bindings and physical parameters
target_positionNoDestination 3D coordinates
current_positionNoStarting 3D coordinates (auto-resolved from entity_id if omitted)
ground_elevationNoGround plane elevation Y for raycast intercept (default: 0)
target_entity_idNoTarget destination entity ID
current_orientationNoStarting orientation angles

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint/idempotentHint and destructiveHint=false, and the description does not contradict them. It adds modest context that outputs target Playwright MCP automation or projections, but it stops short of stating that no game state is modified or that the tool only produces action payloads rather than executing them.

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 description is a single sentence with no filler and is front-loaded with the primary generation purpose. However, for a tool with 17 parameters and three action modes, the compressed wording may sacrifice clarity by omitting mode-specific context.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The schema is richly documented, but the description provides no walkthrough of the three action modes, no required parameter combinations, and—since there is no output schema—no indication of what the returned Playwright inputs look like. It is adequate only because the schema descriptions fill most gaps.

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?

With 100% schema description coverage, the input schema already documents all 17 parameters and their defaults. The description adds only a coarse map to parameter groups (WASD/mouse-look/clicks to control_profile, coordinates to projection parameters), which is useful but not enough to add much value beyond the schema.

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 names a concrete operation ('Generate Playwright MCP automation inputs') plus a second coordinate-conversion mode ('project/unproject 3D entity coordinates and screen pixels'). It is specific about the resource and output medium, but it does not explicitly differentiate from siblings such as simulate_movement or get_expected_view, and the two modes are folded into one sentence.

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

Usage Guidelines2/5

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

No guidance is given about when to choose generate_game_inputs over simulate_movement or get_expected_view, nor about when to use generate_inputs vs project_screen vs unproject_ray. The tool's role is only implied by the verb 'generate', so an agent must infer selection criteria from the schema.

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