Skip to main content
Glama

run_and_capture

Execute a Pyxel game script and capture a screenshot after specified frames for visual verification of game behavior.

Instructions

Run a Pyxel script and capture a screenshot after N frames.

Args: script_path: Absolute path to the .py script to run. frames: Number of frames to render before capturing (default: 60). scale: Screenshot scale multiplier (default: 1). timeout: Maximum seconds to wait for the script (default: 10).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
script_pathYes
framesNo
scaleNo
timeoutNo
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. It mentions the action (run script, capture screenshot) and timeout behavior, but doesn't address critical aspects like error handling, what happens if the script crashes, whether it requires specific permissions, or what the output format is. For a tool with 4 parameters and no annotations, this leaves significant behavioral gaps.

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

Conciseness5/5

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

The description is perfectly structured with a clear purpose statement followed by a well-organized Args section. Every sentence earns its place, with no redundant information. The front-loaded purpose statement immediately communicates the tool's function.

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?

Given 4 parameters, no annotations, and no output schema, the description provides adequate parameter semantics but lacks information about return values, error conditions, and behavioral constraints. For a tool that executes scripts and captures output, more context about what gets returned and potential failure modes would be beneficial.

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?

With 0% schema description coverage, the description provides essential semantic context for all 4 parameters: script_path requires absolute path to .py file, frames controls rendering before capture, scale is a screenshot multiplier, and timeout limits execution. This compensates well for the schema's lack of descriptions, though it doesn't specify value ranges or constraints.

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 clearly states the specific action ('Run a Pyxel script and capture a screenshot') with precise resource targeting ('.py script'), and distinguishes it from sibling tools like 'play_and_capture' by specifying it captures after N frames rather than during playback. The verb+resource combination is explicit and unambiguous.

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

Usage Guidelines3/5

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

The description implies usage context through parameter defaults (frames=60, scale=1, timeout=10) but doesn't explicitly state when to use this tool versus alternatives like 'play_and_capture' or 'capture_frames'. It provides basic operational context but lacks comparative guidance or exclusion criteria.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/kitao/pyxel-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server