Skip to main content
Glama
FortiManager MCP Server

FortiManager MCP Server

by rstierli

install_device_settings

Deploy device-level settings such as interfaces, DNS, and NTP without reinstalling a full policy package; requires a verified preview first.

Instructions

Install device settings only (without policy package).

Deploys device-level configurations like interfaces, DNS, NTP without reinstalling the full policy package.

By default (FMG_INSTALL_SAFETY=strict) this requires a verified preview first, like install_package: run preview_install with package=None for the same ADOM and devices and review its result (on FortiManager builds older than 7.6.7 / 8.0.2, preview_install returns a task: wait_for_task on it and read get_preview_result). Each preview authorizes one install. A package preview does not authorize this install, nor the reverse.

Args: adom: ADOM name devices: Target devices [{"name": "FGT1", "vdom": "root"}, ...] dev_rev_comments: Optional comment for the device revision the install creates (shown in Revision History, max 127 bytes)

Returns: dict: Installation result with keys: - status: "success" or "error" - task_id: Task ID for monitoring - message: Status or error message - warning: Set when FMG_INSTALL_SAFETY=warn let an install without a verified preview through Refused by the gate: status "error", error "preview_required", recommendation "preview_install".

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "adom": "<adom>",
      "devices": "<devices>"
    },
    "name": "install_device_settings"
  }
}

Input Schema

NameRequiredDescriptionDefault
adomYes
devicesYes
dev_rev_commentsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.13.1
    • addedInput schema / properties / dev_rev_comments
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Dev Rev Comments"
      +}
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations, the description carries the full behavioral burden and does: it discloses the FMG_INSTALL_SAFETY=strict gate, the warn-mode bypass and the resulting "warning" key, the one-preview-per-install authorization rule, and the gate refusal shape (status "error", error "preview_required", recommendation "preview_install"). This is unusually rich disclosure of a mutation's safety semantics.

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 critical distinction and the preview requirement are front-loaded ahead of the argument list, which is the right ordering. It loses a little to redundancy: the Args block restates parameters the schema already declares, and the Returns block restates an output schema that already exists.

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 gated mutation that depends on two other tools, the definition supplies everything needed to call it correctly and to recover from a refusal, including the fallback path for older FortiManager builds. The only surplus is the return-value block, which the output schema already covers.

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 coverage is 0%, so the description must compensate, and it largely does: devices is given a concrete element shape ([{"name": "FGT1", "vdom": "root"}]) that the schema's generic additionalProperties: string does not convey, and dev_rev_comments adds purpose (Revision History) and a hard 127-byte limit. The adom entry merely restates "ADOM name", so one of three parameters gets no added meaning.

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?

Opens with a specific verb and resource ("Install device settings only") and immediately scopes it against the sibling it is not: the full policy package via install_package. The second sentence names the concrete config types (interfaces, DNS, NTP), so an agent can distinguish this from install_package without opening either schema.

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?

States the prerequisite chain explicitly: preview_install with package=None for the same ADOM and devices, then review the result, and on older builds wait_for_task followed by get_preview_result. It also names the key exclusion — a package preview does not authorize a device-settings install, nor the reverse — which is exactly the kind of routing rule an agent would otherwise get wrong.

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