Skip to main content
Glama
AstralVoidZ
by AstralVoidZ

ppsspp_press_button

Simulate a single PSP button press for a specified duration to automate input in PPSSPP emulator sessions.

Instructions

PURPOSE: Simulate a single PSP button press for a duration.

USAGE: session_id + button required; duration optional (default 1 frame). Valid button names: cross / circle / triangle / square / up / down / left / right / start / select / ltrigger / rtrigger.

BEHAVIOR: STATE-CHANGE. Sends input events to PPSSPP. Button state returns to released after the duration elapses.

RETURNS: {button, duration}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
buttonYesButton name. Valid: cross / circle / triangle / square / up / down / left / right / start / select / ltrigger / rtrigger.
durationNoPress duration in frames (default 1; 60fps wall-clock, cap 18000 ≈ 300s — values above are rejected). duration=0 is accepted and is a no-op (the button is pressed and released in the same frame). The call blocks for the duration.
session_idYesActive session ID.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
buttonYesButton name pressed.
durationYesPress duration in frames.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.7
    • changedInput schema / properties / duration / description
      Previous value: -"Press duration in frames (default 1; 60fps wall-clock, cap 18000 ≈ 300s — values above are rejected). The call blocks for the duration."New value: +"Press duration in frames (default 1; 60fps wall-clock, cap 18000 ≈ 300s — values above are rejected). duration=0 is accepted and is a no-op (the button is pressed and released in the same frame). The call blocks for the duration."
  2. Changed1 schema field changedv0.1.6
    • changedInput schema / properties / duration / description
      Previous value: -"Press duration in frames (default 1)."New value: +"Press duration in frames (default 1; 60fps wall-clock, cap 18000 ≈ 300s — values above are rejected). The call blocks for the duration."
  3. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare it is a non-readonly, non-idempotent, non-destructive mutation. The description adds genuine behavioral context beyond that: it labels itself 'STATE-CHANGE', explains that the button returns to released after the duration, and the schema notes the call blocks and the 18000-frame cap. It stops short of noting anything about concurrent input or failure modes.

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 PURPOSE/USAGE/BEHAVIOR/RETURNS structure front-loads the essentials and is easy to scan. The button enumeration is duplicated from the schema, which is mild redundancy, but overall there is little waste.

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 3-param input tool with an output schema, annotations, and full schema coverage, the description covers purpose, required inputs, mutation semantics, and duration behavior. The extra RETURNS line is redundant against the output schema, but nothing critical is missing.

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 all three parameters (including button names, duration default/cap, and blocking behavior) thoroughly. The description largely repeats the button list and default already in the schema, adding no format or syntax detail beyond it. Baseline 3 applies.

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?

States a specific verb+resource: 'Simulate a single PSP button press for a duration.' An agent immediately knows what it does. However, it does not distinguish itself from the sibling ppsspp_hold_buttons or ppsspp_send_analog, which are plausibly related input-simulation tools, 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?

It clearly states the required parameters (session_id + button) and that duration is optional with a default, which is useful invocation guidance. But it gives no when-to-use guidance relative to alternatives like hold_buttons or send_analog, nor any prereq like requiring an active session. Usage is implied rather than routed.

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