Skip to main content
Glama

gpio_write

Configure a Cynthion pin as a push-pull output and drive it high or low; requires Facedancer mode.

Instructions

Configure a pin as push-pull output and drive it high or low. Requires facedancer mode.

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
pinYesPin name, e.g. 'A1'.
valueYesOutput level.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare it as a non-read-only, non-destructive local operation, so the bar is lower, and the description still adds two non-obvious facts: the write reconfigures the pin as push-pull output (a persistent state change beyond merely setting a level) and it only works in facedancer mode. It does not describe the response or failure behavior, which keeps it below 5.

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?

Two short sentences, front-loaded with the action and followed by the prerequisite. No filler, though the mode requirement could have been woven into the first sentence for tighter structure.

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?

An output schema and annotations carry the return shape and safety profile, and the facedancer-mode prerequisite is stated. What remains missing is what happens when not in facedancer mode and whether the push-pull configuration persists, which matters for a state-changing pin tool.

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 coverage is 100% with both parameters fully documented, including an example pin name and the meaning of value. The description adds only the "high or low" framing, which is already implicit in the boolean schema, so the baseline of 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 and resource: configure a pin as push-pull output and drive it high or low. The write semantics are unmistakable, and an agent can distinguish this from gpio_read/gpio_list by implication, though no sibling is named explicitly.

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?

Provides a real precondition ("Requires facedancer mode"), which is useful usage context. It gives no explicit when-not guidance or pointer to alternatives such as gpio_read for verifying the level after writing.

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