Skip to main content
Glama
AstralVoidZ
by AstralVoidZ

ppsspp_wait_frames

Idempotent

Waits a specified number of frames to advance the PPSSPP emulator. Pauses the caller until the emulator progresses, requiring an active session.

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). MUST be >= 1 — frames=0 is rejected (it would be a silent no-op returning elapsed_s=0 without advancing the emulator).
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. Changed1 schema field changedv0.1.7
    • changedInput schema / properties / frames / description
      Previous value: -"Number of frames to wait (at 60 FPS, frames/60 seconds)."New value: +"Number of frames to wait (at 60 FPS, frames/60 seconds). MUST be >= 1 — frames=0 is rejected (it would be a silent no-op returning elapsed_s=0 without advancing the emulator)."
  2. First observedv0.1.0

TDQS

B3.2/5.0
Behavior1/5

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

Annotations declare idempotentHint=true, but the description states 'STATE-CHANGE. Sleeps the caller; emulator advances N frames.' This implies each call advances the emulator, so repeated calls with the same arguments would have additional effect, directly contradicting idempotentHint=true. Per the rules, this is an annotation contradiction, so score 1.

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 organized into PURPOSE, USAGE, BEHAVIOR, and RETURNS sections. It is front-loaded with the purpose and every sentence is concise and informative, with no wasted words.

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?

With annotations, a full output schema, and 100% schema coverage, the description supplies the core operational context (state-change, session validation, return shape). It is adequate for invocation, though it lacks sibling differentiation, which is more properly a purpose/usage concern.

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%, and the schema already documents frames, interval, and session_id in detail. The description only restates that session_id and frames are required and interval is optional, adding no extra semantics beyond the schema. Baseline 3 applies when the schema does the heavy lifting.

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 states a specific verb and resource: 'Wait N frames ... to let the emulator advance.' It is clear what the tool does, but it does not name or differentiate from siblings like ppsspp_step or ppsspp_batch_step, so it falls short of a 5.

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 lists required parameters (session_id + frames) and optional interval, but gives no explicit guidance on when to prefer this tool over alternatives such as ppsspp_step or ppsspp_batch_step. Usage context is implied by the purpose, but there are no when/when-not conditions or alternatives named.

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