Skip to main content
Glama

create_filter_rule

Creates a firewall filter rule on a MikroTik router, specifying chain, action, and match criteria such as src/dst address, port, interface, and connection state.

Instructions

Creates a firewall filter rule in the specified chain on the MikroTik device.

Notes: connection_state: comma-separated e.g. "established,related,new,invalid" limit: RouterOS rate/burst string e.g. "10,5:packet" or "10/1s:packet" tcp_flags: RouterOS flag expression e.g. "syn,!ack" place_before: rule number or ID (*N) to insert before e.g. "0" or "*3"

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
logNo
chainYes
limitNo
actionYes
deviceNo
commentNo
disabledNo
dst_portNo
protocolNo
src_portNo
tcp_flagsNo
log_prefixNo
dst_addressNo
src_addressNo
in_interfaceNo
place_beforeNo
out_interfaceNo
connection_stateNo
dst_address_listNo
src_address_listNo
connection_nat_stateNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

Annotations are sparse (only destructiveHint false), so the description carries some burden. It states the core behavior (creates a rule) and adds format notes for certain parameters, but omits behavioral details like default rule placement (e.g., appended to end if place_before is not given) or any validation behavior. This is a partial but incomplete disclosure.

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 purpose sentence followed by a focused bullet list of four parameter notes. There is no filler or redundant repetition; every sentence serves a distinct clarifying purpose.

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

Completeness3/5

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

For a tool with 21 parameters and an output schema, the description covers only four parameter clarifications and does not mention important usage context such as default rule positioning or chain semantics. It is enough for basic invocation but not fully complete for a complex tool, especially considering the large sibling set.

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 0%, so the description must compensate. It explains the less obvious RouterOS-specific formats for connection_state, limit, tcp_flags, and place_before, which adds value. However, it leaves 17 of 21 parameters unexplained, some of which like connection_nat_state or device are not fully self-evident, so the compensation is only partial.

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 immediately states the tool 'Creates a firewall filter rule in the specified chain on the MikroTik device.' This specifies the verb (creates), resource (firewall filter rule), and scope (chain/MikroTik), clearly distinguishing it from siblings like update_filter_rule, remove_filter_rule, and create_nat_rule.

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 creating new filter rules via the verb 'Creates', but it does not explicitly state when to use this tool versus alternatives such as update_filter_rule or remove_filter_rule. There are no exclusions or mention of create_basic_firewall_setup for common setups, so guidance is only inferred.

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/jeff-nasseri/mikrotik-mcp'

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