Skip to main content
Glama
AstralVoidZ
by AstralVoidZ

ppsspp_wait_frames

Idempotent

Wait a specified number of frames to let the PPSSPP emulator advance, using a configurable interval to control synchronization.

Instructions

PURPOSE: Wait N frames (wall-clock sleep at 60 FPS by default) to let the emulator advance.

USAGE: session_id + frames required; interval optional (default 1/60 s).

BEHAVIOR: STATE-CHANGE. Sleeps the caller; emulator advances N frames. Session must be alive (validated before sleep).

RETURNS: {frames, elapsed_s}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
framesYesNumber of frames to wait (at 60 FPS, frames/60 seconds).
intervalNoPer-frame interval in seconds (default 1/60). Total wait = frames * interval.
session_idYesActive session ID.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
framesYesNumber of frames waited.
elapsed_sYesWall-clock seconds elapsed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior1/5

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

The description explicitly says 'STATE-CHANGE' and that the emulator 'advances N frames,' while annotations declare idempotentHint=true. Repeatedly waiting N frames advances emulator state cumulatively, so this is an Annotation Contradiction.

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 tightly structured with labeled PURPOSE, USAGE, BEHAVIOR, and RETURNS sections, front-loading the key purpose and call contract. Every sentence is informative and there is no filler.

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?

For a simple three-parameter tool with an output schema, the description covers purpose, call requirements, behavioral effect, session validation, and return shape. It is nearly complete, but the unresolved idempotency contradiction could confuse an agent about repeated-call semantics.

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 the schema already documents frames, interval, and session_id. The description restates required fields and the default 1/60 s interval but adds no substantial meaning beyond the schema, meeting only the baseline for fully documented parameters.

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?

PURPOSE states a specific operation—'Wait N frames'—with timing semantics ('wall-clock sleep at 60 FPS by default') and the intended effect ('let the emulator advance'). This clearly identifies the tool's role and distinguishes it from sibling stepping or breakpoint-wait operations.

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?

USAGE specifies the required arguments ('session_id + frames required; interval optional') and the default interval, which tells an agent how to invoke it. However, it does not explain when to prefer this tool over siblings like ppsspp_step, ppsspp_batch_step, or ppsspp_wait_breakpoint, nor does it state any exclusions or alternatives.

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