Skip to main content
Glama

apply_changes

Destructive

Commit staged firewall configuration to make rule edits live, with lockout checks that block changes cutting management access. Use dry-run first.

Instructions

[WRITE][risk=high] Commit staged firewall config — makes edits live.

This is the "make it live" step after staged edits (e.g. toggle_rule).

Reads the staged rule set first and REFUSES when committing it would provably cut the endpoint this tool manages the firewall through — disabling the 'pass' rule that permits management access, or enabling a 'block' rule that covers it, locks out this tool and the undo that would reverse it. Uncertain cases (alias destinations, 'any', interface groups) warn and proceed.

dry_run=True returns the full staged change set and its assessment, not just an acknowledgement — use it before every apply.

Args: dry_run: If True, return the staged change set + lockout assessment without applying. override: Proceed despite a certain lockout finding. Only for operators with console / out-of-band access who mean it. target: Firewall target name from config; omit for the default.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
targetNo
dry_runNo
overrideNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.8.0

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the destructive/not-idempotent annotations: it discloses the lockout self-protection logic, the exact refuse-vs-warn boundary (alias destinations, 'any', interface groups warn), that dry_run returns the full change set and assessment, and that override should only be used with console access. This is exactly the behavioral context annotations cannot carry.

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 tags and the one-line purpose, then justification, then Args. Every sentence earns its place, though dry_run is explained twice (body and Args), a minor redundancy that keeps it from a 5.

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?

For a destructive, non-idempotent mutation tool with no output schema, the description covers purpose, safety preconditions, the preview path, and the escape hatch. Nothing an agent needs to call it safely is missing.

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?

Schema coverage is 0% and there are 3 optional params, so the description carries full burden — and it does: dry_run's return semantics, override's meaning and audience, and target as a config name defaulting when omitted. All three params are explained with meaning beyond the bare 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?

States a specific verb and resource — commit the staged firewall config — and pins its role in the workflow as the 'make it live' step after staging via toggle_rule. An agent can tell it apart from staging siblings like toggle_rule immediately.

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?

Clearly positions itself as the commit step following staged edits (naming toggle_rule), prescribes dry_run before every apply, and restricts override to operators with out-of-band access. It stops short of pointing at pending_changes or undo_apply as the inspection/reversal alternatives, so 4 rather than 5.

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