Skip to main content
Glama
gensecaihq

pfSense MCP Server

by gensecaihq

create_ipsec_phase2

Create an IPsec Phase 2 (Child SA) entry on pfSense, linking it to a parent Phase 1 IKE ID and defining tunnel mode and network selectors.

Instructions

Create an IPsec Phase 2 (Child SA / tunnel) entry

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeYesTunnel mode (tunnel, transport, vti)
descrNoDescription for this Phase 2 entry
ikeidYesParent Phase 1 IKE ID to associate this Phase 2 with
lifetimeNoSA lifetime in seconds (default is typically 3600)
protocolNoIPsec protocol (esp, ah)
localid_typeYesLocal network type (address, network, lan, none)
remoteid_typeNoRemote network type (address, network, none)
localid_addressNoLocal network address (required when localid_type is address or network)
localid_netbitsNoLocal network prefix length (e.g., 24 for /24; required when localid_type is network)
remoteid_addressNoRemote network address (required when remoteid_type is address or network)
remoteid_netbitsNoRemote network prefix length (e.g., 24; required when remoteid_type is network)
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 indicate readOnlyHint=false and destructiveHint=false. The description adds no behavioral details beyond the annotations, such as whether changes take effect immediately, whether the tool creates a pending configuration, or whether an apply step is required. Given that this is a creation tool with no annotation coverage of such side effects, the description should have provided more context.

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 sentence, directly front-loaded with the action and resource. It contains no extraneous words and is highly concise.

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?

Although the schema and annotations are rich, the description is too terse for a 12-parameter creation tool. It lacks context about the IPsec workflow, the dependency on a Phase 1, and the need to potentially apply changes. It does not mention relationship to sibling tools like apply_ipsec_changes, making the overall tool definition incomplete.

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?

Schema description coverage is 100%, so all 12 parameters are thoroughly documented in the schema itself. The description does not add any additional parameter semantics, but the baseline of 3 is appropriate since the schema carries the full burden.

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 is explicit: 'Create an IPsec Phase 2 (Child SA / tunnel) entry'. It clearly states the action (create), the resource (IPsec Phase 2), and clarifies the resource with a parenthetical. This distinguishes it from sibling tools like create_ipsec_phase1 or create_ipsec_phase2_encryption.

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_ipsec_phase2 or delete_ipsec_phase2. It also does not mention prerequisites (e.g., the need for an existing Phase 1) or any follow-up actions such as apply_ipsec_changes, which are important in an IPsec workflow.

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