Skip to main content
Glama

Manage Mangle Rule

manage_mangle_rule
DestructiveIdempotent

Add, remove, enable, or disable firewall mangle rules with idempotent comments and dry-run support for safe network traffic marking.

Instructions

Add, remove, enable, or disable a firewall mangle rule. Uses comment as idempotency key. Supports dry-run mode.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chainNoMangle chain (required on add): prerouting, input, forward, output, postrouting
actionYesAction to perform
dryRunNoPreview changes without applying.
commentYesIdempotency key — uniquely identifies this mangle rule
dstPortNoDestination port or range
srcPortNoSource port or range
protocolNoProtocol to match (e.g. tcp, udp)
routerIdNoRouter ID; omit to use the default router.
dstAddressNoDestination IP/CIDR to match
srcAddressNoSource IP/CIDR to match
inInterfaceNoIncoming interface to match
passthroughNoWhether to continue matching subsequent rules
newDscpValueNoDSCP value to set (0–63)
outInterfaceNoOutgoing interface to match
dstAddressListNoDestination address list name to match
newRoutingMarkNoRouting mark to set
srcAddressListNoSource address list name to match
confirmationTokenNoToken from a prior APPROVAL_REQUIRED response. Re-submit the identical call with this token to confirm the destructive action.
newConnectionMarkNoConnection mark to set
Behavior4/5

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

Annotations already provide destructiveHint=true and idempotentHint=true. The description adds value by mentioning the idempotency key and dry-run mode, disclosing key behaviors beyond the annotations. However, it does not elaborate on the confirmationToken or immediate effects of destructive actions.

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?

Two sentences, front-loaded with the core action and key features. No wasted words. Efficient and clear.

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?

For a tool with 19 parameters and no output schema, the description covers the essential behavioral aspects (actions, idempotency, dry-run). The schema covers parameter details. Completeness is adequate but could mention how match criteria parameters relate to 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?

Schema description coverage is 100%, so baseline is 3. The description adds no additional meaning beyond the schema; it mentions 'comment' and 'dryRun' but these are already documented. No new parameter insights.

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 ('Add, remove, enable, or disable') and resource ('firewall mangle rule'), distinguishing it from siblings like 'list_mangle_rules' or 'manage_firewall_rule'. It also mentions key features (idempotency key, dry-run mode).

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 does not explicitly guide when to use this tool versus alternatives. It mentions idempotency and dry-run but lacks comparisons with sibling tools like 'list_mangle_rules' or 'manage_firewall_rule'. Usage is implied but not clarified.

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/AliKarami/MikroMCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server