Skip to main content
Glama
flipper-mcp
by jamiew

gpio_write

Set a GPIO pin high (1) or low (0) on a Flipper Zero. Configure the pin's output mode separately before writing a value.

Instructions

Set a GPIO pin high (1) or low (0); configure output mode separately.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "pin": "<pin>",
      "value": "<value>"
    },
    "name": "gpio_write"
  }
}

Input Schema

NameRequiredDescriptionDefault
pinYes
valueYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.3

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds the useful prerequisite that mode configuration is a separate call, but says nothing about error behavior on unconfigured pins, whether the level persists after the call, or any hardware side effects. With annotations carrying the safety burden this is adequate but thin.

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 tight sentence with the action front-loaded and the prerequisite trailing after a semicolon. No filler, nothing to trim.

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 two-parameter tool with annotations and an output schema, the definition covers the core action and the key prerequisite. The remaining gap is pin identifier format and failure behavior, which is a minor omission rather than a blocking one given the output schema exists.

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 0%, so the description must compensate; it does decode 'value' as high (1) / low (0), though that largely restates the schema's min/max of 0-1. The 'pin' parameter gets no format guidance at all (e.g. numeric string vs. board-labeled identifier), leaving half the parameters underspecified.

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?

States a specific verb and resource ('Set a GPIO pin high (1) or low (0)') and immediately distinguishes itself from gpio_mode by noting output mode is configured separately. An agent can tell this apart from gpio_read and gpio_mode without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The clause 'configure output mode separately' effectively routes the agent to gpio_mode as a prerequisite step before writing. It stops short of stating failure conditions (e.g. what happens if the pin is still an input) or explicit when-not-to-use guidance, so it is clear but not exhaustive.

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