Skip to main content
Glama
rstierli

FortiManager MCP Server

by rstierli

create_device_group

Creates a device group in a FortiManager ADOM to organize managed devices and nested groups for bulk operations such as policy installation.

Instructions

Create a device group in FortiManager's device manager database.

Device groups organize managed devices (and other groups) for bulk operations like policy installation. This is a dvmdb object -- creation does not touch any live device.

Args: adom: ADOM name where the group will be created name: Group name (dvmdb group.name, master key) os_type: Device platform family the group targets (default: "unknown"). One of: unknown, fos, fsw, foc, fml, faz, fwb, fch, fct, log, fmg, fsa, fdd, fac, fpx, fna, ffw, fsr, fad, fdc, fap, fxt, fts, fai, fwc, fis, fed, fpa, fca, ftc, fss, fra, sim, fdt. description: Optional group description

Returns: dict: Create result with keys: - status: "success" or "error" - group: Created group name/adom - message: Status or error message

Example: >>> result = await create_device_group( ... adom="root", ... name="Branch-Firewalls", ... os_type="fos", ... description="All branch FortiGates", ... )

Input Schema

NameRequiredDescriptionDefault
adomYes
nameYes
os_typeNounknown
descriptionNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.12.0

TDQS

A4/5.0
Behavior3/5

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

No annotations exist, so the description carries the full load; it does well to disclose that this writes only to the dvmdb and doesn't touch live devices, plus the default os_type='unknown'. It omits risks an agent needs: behavior when the group name already exists, whether an ADOM lock is required (lock_adom is a sibling), and permission requirements.

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 the purpose and safety scope, then systematically covers args, returns, and an example. The long os_type enumeration is bulky but earns its place because the schema declares no enum; the Returns block is mildly redundant given 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 4-parameter mutation tool with no annotations, it supplies purpose, scope, all parameter semantics, return shape, and a worked example. The remaining gap is edge-case behavior (duplicate name handling, ADOM lock expectations) which an agent would want before calling.

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 description coverage is 0%, yet the description defines all four parameters, including the meaning of adom and name as the group master key, the default for os_type, and the full 33-value os_type enumeration that is absent from the schema. That is meaningful compensation well beyond the structured fields.

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+resource ('Create a device group in FortiManager's device manager database') and immediately scopes it as a dvmdb metadata object that does not touch live devices. That scope statement separates it from siblings like add_device_to_group or execute_script_on_device_group without the agent opening a schema.

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?

It gives context for why groups exist ('bulk operations like policy installation') and clarifies the operation is metadata-only, which implies when to reach for it. However, it never names the complementary siblings (add_device_to_group, add_group_to_group, add_devices_to_group_bulk) or states prerequisites, so the agent must infer the boundary between creating a group and populating one.

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