Skip to main content
Glama

firewall_rule_remove

Destructive

Remove a server-created firewall rule by section ID or name; preview UCI changes first, then apply with confirm and automatic rollback if the router check fails.

Instructions

Remove a firewall rule, by section id or name. Only ones this server created unless force=true. Without confirm=true this only returns a preview of the UCI changes and changes nothing. With confirm=true it applies them with the router's rollback timer, checks the router still answers, and confirms; if the check fails, the router restores the old config by itself.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "firewall_rule_remove"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
forceNo
confirmNo
sectionNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Goes well beyond the destructiveHint=true annotation by explaining the preview-then-apply flow, the router's rollback timer, the post-apply reachability check, and the automatic restore of old config on failure. This is exactly the extra behavioral context a destructive tool needs. It stops short of stating what the preview output looks like or how long the rollback window lasts.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the action and target, then the mode/safety semantics. Every clause earns its place, though the final sentence chains several operations (apply, check, confirm, restore) and could be broken for readability.

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

Completeness4/5

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

An output schema exists, so return values need not be explained, and the description covers the destructive-path behavior thoroughly. The remaining gap is the identifier contract: with zero required parameters, an agent is not told whether name or section is mandatory or which wins if both are given.

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

Parameters5/5

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

With 0% schema description coverage, the description carries the full burden and does so: name/section identify the target rule, force lifts the server-created-only restriction, and confirm switches between preview and real application. Meaning is added for every one of the four parameters, though the name-vs-section precedence is not stated.

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?

States a specific verb and resource ("Remove a firewall rule") plus the two accepted identifiers ("by section id or name"), which cleanly separates it from firewall_rule_add and the other *_remove siblings.

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

Usage Guidelines4/5

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

Explicitly describes the two operating modes: without confirm=true it is a preview that changes nothing, with confirm=true it applies the changes. It also states the precondition for touching rules the server did not create (force=true). What is missing is guidance on choosing between the name and section identifiers, or what to do when neither is supplied.

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