Write a value to a GPIO pin on the FarmBot. Sets a pin to a specific value. Use digital mode (0 or 1) for on/off control of peripherals like the water valve or vacuum pump. Use analog mode (0-255) for variable output like LED brightness.
AI agents use farmbot_write_pin to create or update resources in Farmbot Agent — usually the action step of a workflow, after the agent has gathered context. Every call changes real data in your Farmbot Agent environment.
This tool modifies hardware state by writing values to GPIO pins, which is a reversible operation (a pin can be set to a different value). It does not delete data (Destructive), execute arbitrary code (Execute), or move money (Financial).
From the tool's definition Tool name 'farmbot_write_pin' and description 'Write a value to a GPIO pin' and 'Sets a pin to a specific value.' These phrases directly indicate data/state modification of hardware pins.
Attacks that exploit this kind of access
Write a value to a GPIO pin on the FarmBot. Sets a pin to a specific value. Use digital mode (0 or 1) for on/off control of peripherals like the water valve or vacuum pump. Use analog mode (0-255) for variable output like LED brightness. It is categorised as a Write tool in the Farmbot Agent MCP Server, which means it can create or modify data. Consider rate limits to prevent runaway writes.
Register the Farmbot Agent MCP server in PolicyLayer and add a rule for farmbot_write_pin: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Farmbot Agent. Nothing to install.
farmbot_write_pin is a Write tool with medium risk. Write tools should be rate-limited to prevent accidental bulk modifications.
Yes. Add a rate_limit block to the farmbot_write_pin rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for farmbot_write_pin. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
farmbot_write_pin is provided by the Farmbot Agent MCP server (kieranklaassen/farmbot-agent-cli-mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
Every MCP server has a record like this.
Type a name, get the same breakdown: verified identity, auth posture, risk grade, capabilities, recommended policy.
Teams ship this data inside their own products. See what a licence covers →