Skip to main content
Glama

Update firewall policy (safe)

fortigate_update_policy
Idempotent

Update a firewall policy safely by reading current settings and using dry-run mode to verify changes before applying.

Instructions

Safely update a firewall policy. Reads the current policy first and defaults to dry_run=true.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
policyidYesExisting firewall policy ID
nameNoOptional new firewall policy name
srcintfNo
dstintfNo
srcaddrNo
dstaddrNo
serviceNo
statusNoDefaults to enable on create.
actionNoDefaults to accept on create.
scheduleNoDefaults to always on create.
commentsNoOptional FortiGate comment
natNoDefaults to enable on create.
utm-statusNoEnable or disable UTM profiles.
logtrafficNoDefaults to all on create.
logtraffic-startNo
internet-serviceNoEnable FortiGuard Internet Service destination matching.
internet-service-nameNoInternet Service names when internet-service is enabled
internet-service-groupNoInternet Service group names when internet-service is enabled
ssl-ssh-profileNoOptional SSL/SSH inspection profile
av-profileNoOptional antivirus profile
webfilter-profileNoOptional web filter profile
dnsfilter-profileNoOptional DNS filter profile
ips-sensorNoOptional IPS sensor
application-listNoOptional application control list
profile-protocol-optionsNoOptional protocol options profile
dry_runNoDefaults to true (plan only). Set false to apply a real change.
confirmNoRequired only when dry_run=false; must equal exactly 'APPLY FORTIGATE CHANGE'.
Behavior4/5

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

Annotations already indicate non-readonly, non-destructive, idempotent, and open-world. Description adds valuable behavioral context: reads current policy first and defaults to dry_run=true. No contradiction with annotations.

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?

One short sentence efficiently conveys two key behaviors. Front-loaded with verb and safety qualifier. Could be slightly more structured but is already concise.

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

Completeness2/5

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

Tool has 27 parameters and no output schema; description is very brief. Does not explain return format, behavior after dry_run, or how to apply changes. For a complex tool, this is incomplete.

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 coverage is 78% (high), so baseline is 3. Description adds no additional parameter meaning beyond what the schema already provides. Does not explain any of the 27 parameters.

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?

Description clearly states 'update a firewall policy', distinguishing it from create tools. Verb 'update' and resource 'firewall policy' are specific. Sibling tools include create_policy, so purpose is unambiguous.

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?

Implies usage for safe updates via 'reads current policy first' and 'defaults to dry_run=true', but does not explicitly state when to use this vs. create_policy or other update tools. Lacks direct when-not guidance.

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/PeerapolSelanon/fortigate-mcp'

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