Skip to main content
Glama

replace_firewall_rules

Atomically replace the entire firewall rule list in a single transaction. Read current rules, modify them, then write back to apply changes.

Instructions

Atomically replace the entire rule list.

Firegex performs DELETE FROM rules; INSERT ... in one transaction — there is no per-rule CRUD. Read with list_firewall_rules, mutate, then write back.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
policyYes
rulesYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

Discloses atomic transaction behavior and underlying SQL operation, which is important for a destructive write. However, does not mention authentication or rate limits, though those may be assumed. With no annotations, the description carries full burden and does well.

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?

Three sentences efficiently convey purpose, implementation detail, and workflow with no unnecessary information. Front-loaded with purpose.

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?

Covers purpose, usage, and workflow adequately. Given the tool has an output schema (not shown), the lack of return value explanation is acceptable. The complex RuleModel is left to the schema, which is reasonable. Could mention output status, but overall complete.

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

Parameters2/5

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

Schema description coverage is 0%, but the description does not explain the parameters 'policy' and 'rules' beyond the schema titles. It implies they constitute the rule list but adds no detail on allowed values or structure, leaving agents to rely solely on the schema.

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 atomically replaces the entire rule list, using specific verb 'replace'. It distinguishes from siblings like 'list_firewall_rules' and explicitly mentions there is no per-rule CRUD, preventing misuse.

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?

Provides explicit guidance: read with list_firewall_rules, mutate, then write back, implying when to use this tool (for full replacement) and when not to (for individual rule changes). Also names the alternative tool for reading.

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/umbra2728/firegex-mcp'

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