Skip to main content
Glama
FortiManager MCP Server

FortiManager MCP Server

by rstierli

update_local_in_policy

Update specific fields of an existing IPv4 local-in policy in FortiManager, such as action, addresses, services, schedule, or status, while leaving other settings unchanged.

Instructions

Update an existing IPv4 local-in policy.

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

Args: adom: ADOM name package: Policy package name policyid: Local-in policy ID to update action: New action - "accept" or "deny" (optional) intf: New incoming interface(s) (optional) srcaddr: New source addresses (optional) dstaddr: New destination addresses (optional) service: New services (optional) schedule: New schedule (optional) status: New status - "enable" or "disable" (optional) logtraffic: New local-in traffic logging setting (optional) comments: New comments (optional) srcaddr_negate: Match all sources EXCEPT srcaddr (optional) dstaddr_negate: Match all destinations EXCEPT dstaddr (optional) service_negate: Match all services EXCEPT service (optional) ha_mgmt_intf_only: Restrict this policy to the HA management interface only (optional). IPv4-only field. virtual_patch: Enable/disable virtual patching on this policy (optional)

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

Example: >>> # Disable a local-in policy >>> result = await update_local_in_policy( ... adom="root", ... package="default", ... policyid=1, ... status="disable" ... )

Input Schema

NameRequiredDescriptionDefault
adomYes
intfNo
actionNo
statusNo
dstaddrNo
packageYes
serviceNo
srcaddrNo
commentsNo
policyidYes
scheduleNo
logtrafficNo
virtual_patchNo
dstaddr_negateNo
service_negateNo
srcaddr_negateNo
ha_mgmt_intf_onlyNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.12.0

TDQS

A3.7/5.0
Behavior3/5

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

No annotations are provided, so the description carries the burden. It usefully discloses partial-update semantics ('Only the specified fields will be updated') and describes optional fields, but does not mention permissions, ADOM lock/commit requirements, reversibility, or side effects of changing a local-in policy.

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 purpose and partial-update behavior are front-loaded, followed by a structured Args section and a short example. It is appropriately sized for a 17-parameter tool, though the Returns section is somewhat redundant because an output schema exists.

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?

For a complex mutation tool with no annotations, the description covers purpose, all parameters, partial-update behavior, return shape, and an example. It could be more complete by mentioning operational requirements such as ADOM locking or committing changes, but it is otherwise sufficient.

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%, so the description must compensate. It lists all 17 parameters with meaningful labels, marks optionals, gives accepted values for action/status, and explains negate and HA management interface semantics.

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 opens with a specific verb and resource: 'Update an existing IPv4 local-in policy.' The IPv4 qualifier distinguishes it from the IPv6 local-in policy tools, and 'existing' distinguishes it from the create sibling.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It implies use for updating an existing policy and includes a disable example, but gives no explicit when-to-use guidance, exclusions, prerequisites, or alternatives such as get_local_in_policy or update_local_in_policy6.

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

Deploy Server

Other Tools