Skip to main content
Glama
flipper-mcp
by jamiew

gpio_mode

Configures a GPIO pin as input or output, setting its direction so connected hardware can be read or driven correctly.

Instructions

Configure a GPIO pin's direction/mode.

mode: input (0) or output (1).

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>",
      "mode": "<mode>"
    },
    "name": "gpio_mode"
  }
}

Input Schema

NameRequiredDescriptionDefault
pinYes
modeYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.3

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false, so the description does not need to restate the safety profile. It adds that the call changes pin direction/mode, but it does not describe side effects, required pin state, or error behavior. For a simple configuration helper with annotations, this is adequate but not rich.

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 two short lines, front-loaded with the action, and the mode encoding is grouped clearly. No sentence is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool is simple, has annotations and an output schema, and the description covers the core configuration action and mode values. However, it leaves the pin parameter undocumented and offers no usage context, so an agent still needs outside knowledge to invoke it confidently.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/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 carry parameter meaning. It clarifies the mode values (input/output with 0/1 mapping) but says nothing about the required pin string's format or expected identifier.

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 gives a specific verb and resource: configure a GPIO pin's direction/mode. That clearly separates mode configuration from sibling value operations like gpio_read and gpio_write, though it does not explicitly name or contrast those alternatives.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no prerequisites, and no mention of alternatives. An agent is left to infer that this should be called before reading or writing a pin, rather than being told so.

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