Skip to main content
Glama

Set a Playdate button state

playdate_set_button
Idempotent

Hold or release a button on the Playdate Simulator to produce deterministic, simultaneous input sequences for automated testing.

Instructions

Hold or release one button for deterministic and simultaneous input sequences.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pidNoPositive Playdate Simulator process identifier when more than one is running.
stateYes
buttonYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
signalNo
stderrYes
stdoutYes
commandYes
exitCodeNo
timedOutNo
errorCodeNo
succeededYes
terminationYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.2

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already signal a non-read-only, idempotent, non-destructive action. The description adds behavioral value by clarifying that the operation holds or releases a single button and is designed for building deterministic/simultaneous input sequences. It stops short of explicitly saying the state persists until changed, but no contradiction exists.

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?

A single front-loaded sentence that communicates the action and purpose without filler. Every phrase ('hold or release,' 'one button,' 'deterministic and simultaneous input sequences') earns its place.

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 setter with an output schema and idempotent/destructive annotations, the description covers the operational behavior and use case. The only notable omission is an explicit pointer to playdate_press for momentary taps, but the tool is otherwise callable from the information provided.

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 only 33% schema description coverage, the description compensates by explaining the core relationship: 'hold or release' maps the state enum to persistent down/up semantics, and 'one button' identifies the target. The optional pid is already described in the schema, and the allowed button values are fully enumerated, so the description adds meaning without needing to repeat them.

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 uses the precise verbs 'hold or release' and names the resource 'one button,' going beyond the generic title. It clearly implies a state-setter distinct from momentary-press siblings like playdate_press, though it does not explicitly name any alternative.

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 phrase 'for deterministic and simultaneous input sequences' gives a clear intended context, and 'hold or release' implies a stateful use case rather than a tap. However, it does not state when not to use it or explicitly point to playdate_press or other siblings for momentary actions.

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

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/pvzig/playdate-mcp'

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