Skip to main content
Glama
gensecaihq

pfSense MCP Server

by gensecaihq

apply_firewall_changes

Idempotent

Apply pending firewall changes and recompile the pf ruleset to ensure the compiled ruleset matches your configuration. Use after any firewall config change to verify consistency.

Instructions

Force apply pending firewall changes and recompile the pf ruleset.

Use this after any firewall config change to ensure the compiled ruleset (/tmp/rules.debug) matches the configuration. The apply_immediately parameter on other tools doesn't always trigger full recompilation.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

Annotations already declare idempotentHint=true and destructiveHint=false, and the description adds context by mentioning the specific file (/tmp/rules.debug) and the recompilation behavior. It clarifies that this tool forces a full recompile, going beyond the basic schema. It does not describe potential side effects (e.g., network interruption), but the added context is valuable.

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 three sentences with a clear front-loaded main statement, followed by usage guidance. Every sentence adds value, and there is no redundancy or padding. It is appropriately concise for a tool with no parameters.

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

Completeness5/5

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

Given the zero-parameter schema, the description is fully complete for the agent to decide when and how to use it. It covers purpose, usage timing, and the specific file affected, and there is no missing information about parameters or return values (output schema exists).

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool has zero parameters, so there are no parameter semantics to explain. The schema covers everything (100% coverage). The description does not need to add parameter details, and the mention of 'apply_immediately parameter on other tools' is context, not this tool's parameters. Baseline 4 is appropriate for empty parameter lists.

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 tool's function: 'Force apply pending firewall changes and recompile the pf ruleset.' It specifies the exact resource (firewall changes/pf ruleset) and action (apply and recompile), distinguishing it from sibling apply_* tools by focusing on the firewall/pf context.

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

Usage Guidelines5/5

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

Explicitly tells when to use: 'Use this after any firewall config change to ensure the compiled ruleset matches the configuration.' It also contrasts with other tools by noting that 'apply_immediately parameter on other tools doesn't always trigger full recompilation,' guiding the agent to prefer this tool when full recompilation is needed.

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