mcp_gpio_scan
Scans all GPIO pins on a remote agent and returns each pin’s level, type, pull resistor, name, and logical state for reversed pins, helping inspect hardware pin status.
Instructions
Scan all hardware GPIO pins on agent and return each pin's level (the physical state), type, pull resistor and name; a reversed pin also reports value (its logical state) and reversed. Pins: BCM 2-27 on a Raspberry Pi, GP0-GP28 (minus the WiFi-reserved GP23/24/25/29) on a Pico, and every usable pin of the chip on an ESP32 (flash, PSRAM and USB pins are left out).
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": {
"agent": "<agent>"
},
"name": "mcp_gpio_scan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent | Yes |