Skip to main content
Glama
gensecaihq

pfSense MCP Server

by gensecaihq

update_nat_port_forward

Idempotent

Update an existing NAT port forwarding rule by its ID to modify source, target, ports, protocol, interface, or NAT reflection settings. Apply changes immediately if needed.

Instructions

Update an existing NAT port forwarding rule by ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sourceNoSource address filter
targetNoInternal host IP address or alias
disabledNoWhether the rule is disabled
protocolNoProtocol (tcp, udp, tcp/udp)
interfaceNoInterface for the rule (wan, lan, etc.)
local_portNoSingle port (80), range (8080-8090), or alias name
descriptionNoRule description
destinationNoExternal address (e.g., "wanip", "any", or specific IP/alias)
nat_reflectionNoNAT reflection mode (enable, disable, purenat)
port_forward_idYesPort forward rule ID (array index from search_nat_port_forwards)
destination_portNoSingle port (80), range (8080-8090), or alias name
apply_immediatelyNoWhether to apply changes immediately

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, and destructiveHint=false, covering the safety profile. The description adds 'by ID' as a targeting detail but does not disclose partial update semantics or the role of apply_immediately. It does not contradict the annotations, but it adds little beyond them.

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 a single, focused sentence of 7 words: 'Update an existing NAT port forwarding rule by ID'. It is front-loaded with the action and resource, contains no redundancy, and every word earns its place.

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 has 12 parameters and a mutation operation, but the description is extremely terse. It lacks context on when to use it versus alternatives and does not mention that only specified fields are updated or that apply_immediately controls whether changes take effect immediately. The rich schema and annotations compensate for parameter and safety details, but the description remains minimally viable.

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?

The description itself contains no parameter information, but the input schema has descriptive text for all 12 parameters, including crucial context like port_forward_id being an array index from search_nat_port_forwards. With 100% schema coverage, the description need not add more.

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 description uses a specific verb ('Update') and identifies the resource ('NAT port forwarding rule') with an identifier ('by ID'). This clearly distinguishes it from sibling tools like create_nat_port_forward and delete_nat_port_forward through the word 'existing' and the targeting mechanism.

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?

The phrase 'existing' implies this tool is for modifying already-created rules, but the description provides no explicit guidance on when to use it versus alternatives (e.g., create, delete, or apply_nat_changes). It does not mention prerequisites such as obtaining the port_forward_id from search_nat_port_forwards, though the schema hints at this.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/gensecaihq/pfsense-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server