Skip to main content
Glama
gensecaihq

pfSense MCP Server

by gensecaihq

create_nat_port_forward

Set up a NAT port forwarding rule on pfSense to redirect incoming traffic on a specified interface and port to an internal host, with options for NAT reflection and automatic firewall rules.

Instructions

Create a NAT port forwarding rule

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sourceNoSource address filter (default: "any")any
targetYesInternal host IP address or alias to forward to
disabledNoWhether the rule starts disabled
protocolYesProtocol (tcp, udp, tcp/udp)
interfaceYesInterface for the rule (typically "wan")
local_portYesSingle port (80), range (8080-8090), or alias name
descriptionNoOptional rule description
destinationYesExternal address (e.g., "wanip", "any", or specific IP/alias)
nat_reflectionNoNAT reflection mode (enable, disable, purenat)
destination_portYesSingle port (80), range (8080-8090), or alias name. Do NOT pass multiple space/comma-separated ports — create a port alias first instead.
apply_immediatelyNoWhether to apply changes immediately
create_associated_ruleNoWhether to create an associated firewall pass rule

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior2/5

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

Annotations already indicate a non-read-only, non-destructive mutation. The description adds no behavioral details beyond the action itself, such as immediate application or associated firewall rule creation, which are only present in schema parameter descriptions.

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 concise sentence with no redundancy. It is appropriately sized for a tool whose schema carries the detailed information, and it is front-loaded with the action and resource.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Despite a rich schema and annotations, the one-sentence description fails to explain the tool's role in NAT configuration or distinguish it from related NAT creation tools. Given 12 parameters and sibling tools, more context would be needed for an agent to confidently select and invoke this tool correctly.

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 schema covers all 12 parameters with descriptions, including advanced notes (e.g., destination_port restriction). The description contributes no additional parameter semantics, so the baseline of 3 applies due to high schema coverage.

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 clearly states the verb 'Create' and the resource 'NAT port forwarding rule', which precisely identifies the tool's function and differentiates it from update/delete/search siblings with the same resource type.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives like update_nat_port_forward or create_nat_onetoone_mapping. It lacks context about inbound forwarding use cases, prerequisites, or exclusions, leaving the agent to infer from the tool name alone.

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