Skip to main content
Glama
rstierli

FortiManager MCP Server

by rstierli

update_firewall_policy

Update an existing firewall policy by specifying only the fields to change, leaving others intact. Modify attributes like source/destination interfaces, addresses, services, action, NAT, log traffic, status, or comments.

Instructions

Update an existing firewall policy.

Only the specified fields will be updated; other fields remain unchanged.

Args: adom: ADOM name package: Policy package name policyid: Policy ID to update name: New policy name (optional) srcintf: New source interfaces (optional) dstintf: New destination interfaces (optional) srcaddr: New source addresses (optional) dstaddr: New destination addresses (optional) service: New services (optional) action: New action - "accept" or "deny" (optional) schedule: New schedule (optional) nat: Enable/disable NAT (optional) logtraffic: New log mode (optional) status: New status (optional) comments: New comments (optional) global_label: Policy section label (optional) global_label_color: Policy section color ID 0-31 (optional)

Returns: dict: Update result with keys: - status: "success" or "error" - policyid: Updated policy ID - message: Status or error message

Example: >>> # Disable a policy >>> result = await update_firewall_policy( ... adom="root", ... package="default", ... policyid=10, ... status="disable" ... )

>>> # Update source addresses
>>> result = await update_firewall_policy(
...     adom="root",
...     package="default",
...     policyid=10,
...     srcaddr=["New-Subnet", "Other-Subnet"]
... )

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
adomYes
packageYes
policyidYes
nameNo
srcintfNo
dstintfNo
srcaddrNo
dstaddrNo
serviceNo
actionNo
scheduleNo
natNo
logtrafficNo
statusNo
commentsNo
global_labelNo
global_label_colorNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

No annotations provided, so description carries full burden. It states partial update behavior and provides return values, but lacks disclosure of side effects (e.g., immediate traffic impact, need for commit, reversibility, dependency on existing objects). Examples help but do not fully cover behavioral traits.

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?

The description is well-structured: opening sentence, parameter list, return values, and examples. It is front-loaded with key behavior. Could be slightly more concise by removing redundant 'New' prefixes, but overall appropriate for the complexity.

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?

Given the tool's complexity (17 parameters, mutation, no annotations, output schema exists), the description covers purpose, partial update, parameter semantics, and return format. However, it lacks context on error conditions, prerequisites (policy must exist), parameter interactions, and scope (adom, package). Examples partially compensate but leave gaps.

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

Parameters4/5

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

Schema description coverage is 0%, but the description includes a list of parameters with brief explanations (e.g., 'New action - "accept" or "deny" (optional)'), adding meaning beyond the schema's parameter names and types. While some explanations are minimal (e.g., 'New log mode'), overall it provides adequate semantics for a tool with 17 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?

The description clearly states it updates an existing firewall policy with partial update semantics ('Only the specified fields will be updated'). The verb 'update' and resource 'firewall policy' are specific, and it distinguishes from sibling tools like create, delete, list, move, and search.

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 state when to use this tool vs. alternatives, nor does it mention prerequisites (e.g., policy must exist). However, the name and context make it clear it's for updating existing policies, and examples provide implicit guidance. Lacks explicit 'when-not' or alternative suggestions.

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/rstierli/fortimanager-mcp'

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