Skip to main content
Glama
gensecaihq

pfSense MCP Server

by gensecaihq

update_nat_onetoone_mapping

Idempotent

Update an existing 1:1 NAT mapping in pfSense by specifying its ID and new parameters, with optional immediate application.

Instructions

Update an existing 1:1 NAT mapping by ID

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
typeNoNAT type (e.g., "binat")
descrNoDescription
sourceNoInternal source network/address
disabledNoWhether the mapping is disabled
externalNoExternal subnet
interfaceNoInterface for the mapping
mapping_idYesMapping ID (from search_nat_onetoone_mappings)
destinationNoDestination filter
apply_immediatelyNoWhether to apply changes immediately

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior2/5

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

Annotations already declare readOnly=false, idempotent=true, and destructive=false. The description adds no additional behavioral context, such as whether changes apply immediately (despite the apply_immediately parameter), whether a separate apply_nat_onetoone_changes call is needed, or any side effects. It does not contradict annotations but provides no extra transparency.

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 (10 words) that is front-loaded with the action and resource. It contains no fluff or repetition of the schema.

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?

Given the complexity of NAT configuration and the existence of a sibling apply_nat_onetoone_changes tool, the description omits important operational context, such as how the update relates to applying changes and whether apply_immediately affects behavior. The tool has 9 parameters, but the description is too minimal to guide an agent on update semantics or follow-up actions.

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 input schema has 100% parameter description coverage, so the baseline is 3. The description does not add any meaning beyond the schema; it merely restates that the update is by ID, which is already clear from the 'mapping_id' parameter.

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 action ('Update'), the resource ('1:1 NAT mapping'), and the identifier ('by ID'). It distinguishes this tool from siblings like create_nat_onetoone_mapping, delete_nat_onetoone_mapping, and search_nat_onetoone_mappings.

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 description implies usage for modifying an existing mapping, but does not explicitly mention when to prefer this over create or delete, or how to obtain the mapping ID (beyond the schema's parameter description). The usage context is only inferred from the verb 'update' and the word 'existing'.

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