Skip to main content
Glama

inspect_state

Debug Pyxel game objects by reading their attributes at specific frames. Capture the App instance and dump attributes as JSON, with support for single frames or multi-frame timeline diffs.

Instructions

Read game object attributes at specific frames for debugging.

Captures the App instance (the class that calls pyxel.run()) and dumps its attributes as JSON. Supports single frame or comma-separated multi-frame timeline with automatic diff between frames.

Args: script_path: Absolute path to the .py script to run. frames: Frame number(s) to inspect, comma-separated (default: "60"). Use multiple frames for timeline diff: "10,30,60" attributes: Comma-separated attribute names to inspect (default: all). timeout: Maximum seconds to wait for the script (default: 10).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
script_pathYes
framesNo60
attributesNo
timeoutNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations provided, the description carries the full burden. It discloses behavioral traits such as capturing the App instance, dumping attributes as JSON, supporting single/multi-frame inspection with automatic diff, and having a timeout. However, it does not mention permissions, rate limits, or error handling, leaving some gaps for a debugging tool.

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 appropriately sized and front-loaded, starting with the core purpose. The Args section is well-structured but slightly verbose. Every sentence adds value, though it could be more streamlined by integrating the parameter explanations more seamlessly.

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?

Given the complexity (debugging tool with 4 parameters) and no annotations, the description is fairly complete. It explains the tool's behavior, parameters, and has an output schema (implied by 'dumps its attributes as JSON'), reducing the need to detail return values. However, it could better address error cases or prerequisites.

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 description coverage is 0%, so the description must compensate. It adds meaning beyond the schema by explaining each parameter's purpose: 'script_path' as the absolute path to run, 'frames' for frame numbers with examples, 'attributes' for attribute names, and 'timeout' as maximum wait seconds. This covers all parameters effectively, though not exhaustively.

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 tool's purpose with specific verbs ('Read', 'Captures', 'dumps') and resources ('game object attributes', 'App instance', 'attributes as JSON'). It distinguishes from siblings by focusing on debugging through attribute inspection rather than visual capture or other inspections like 'inspect_bank' or 'inspect_sprite'.

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 for debugging and mentions multi-frame timeline diff, but does not explicitly state when to use this tool versus alternatives like 'capture_frames' or 'compare_frames'. It provides some context but lacks clear exclusions or named alternatives.

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