Skip to main content
Glama
hardware-tooling-mcp
by Pheem49

ftdi_gpio_control

Reads or writes GPIO pins on FTDI USB bridges such as FT232H/FT2232H, enabling direction-mask setup and digital output or input-state monitoring.

Instructions

Read or write GPIO pins directly on an FTDI USB bridge (e.g. FT232H, FT2232H).

Args: ftdi_url: PyFtdi device URL (default 'ftdi:///1' for first connected FTDI device). direction_mask: 8-bit bitmask where 1 = Output, 0 = Input (e.g., 0xFF = all outputs, 0x01 = pin 0 output). write_value: Optional 8-bit value to drive on output pins (0x00 to 0xFF). Always reads back current pin states.

Input Schema

NameRequiredDescriptionDefault
ftdi_urlNoftdi:///1
write_valueNo
direction_maskNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does disclose a useful behavioral trait ('Always reads back current pin states') and explains the read-vs-write relationship, but it omits critical behaviors: what happens when writing while bits are set to input, whether pin state persists after the call, error modes for invalid URLs, and whether the FTDI device is locked during the operation.

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 core read/write purpose is front-loaded in the first sentence, and the Args block is tightly scoped to one line per parameter. Minor redundancy exists where defaults are restated in both prose and schema, but nothing 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?

An output schema exists, so return values need no explanation, and parameter meaning is well covered. However, for a tool that directly mutates hardware pin states with zero annotations, the missing disclosure of side effects, device exclusivity, and failure modes leaves a meaningful gap.

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?

Schema coverage is 0%, so the description must compensate, and it largely does: it explains ftdi_url's PyFtdi URL format and default, decodes direction_mask as an 8-bit bitmask with 1=Output/0=Input and worked examples (0xFF, 0x01), and gives write_value's range and optionality. It falls short only on edge cases such as an output bit with a null write_value or out-of-range integers.

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?

The first sentence names a specific verb pair and resource: reading or writing GPIO pins on an FTDI USB bridge, with concrete chip examples (FT232H, FT2232H). This clearly separates it from sibling transfer tools like ftdi_spi_transfer and ftdi_i2c_transfer without requiring the schema to be opened.

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?

Usage is implied by the functional description of GPIO access, but it never states when to choose this over sibling tools such as ftdi_spi_transfer or toggle_dtr_rts, nor does it state prerequisites like exclusive device access. The agent must infer the use case from the tool's name and purpose statement.

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