Skip to main content
Glama
mdemirn

FortiGate MCP Server

by mdemirn

cmdb_list

Lists objects from any FortiOS CMDB table as a fallback for tables without dedicated tools. Use filters, pagination, or field selection to narrow large or sensitive responses.

Instructions

List every object of any FortiOS configuration table (GET /api/v2/cmdb/{path}).

The escape hatch for tables that have no dedicated tool. Examples of path: "firewall/policy", "system/interface", "vpn.ipsec/phase1-interface", "router/static", "user/local", "wireless-controller/vap", "system/sdwan". Secret-looking fields (passwords, PSKs, keys) are redacted; large responses are truncated, so narrow them with filter_expr, count or format_fields.

Parameters:

  • device_id: Identifier of the FortiGate device

  • path: cmdb table path without the /api/v2/cmdb/ prefix

  • filter_expr: Optional FortiOS filter, e.g. "status==enable" or "name=@vlan" ("&" joins several)

  • start, count: Optional pagination

  • format_fields: Optional "|"-separated field list to return, e.g. "policyid|name|action"

  • vdom: Virtual Domain name (optional)

Returns:

  • The raw JSON response (results plus metadata)

Input Schema

NameRequiredDescriptionDefault
pathYescmdb table path, e.g. firewall/policy
vdomNoVirtual Domain
countNoMaximum objects to return
startNoPagination offset
device_idYesFortiGate device identifier
filter_exprNoFortiOS filter expression(s), '&'-joined
format_fieldsNo'|'-separated fields to return

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden and does disclose that this is a GET/read operation, that secret-looking fields are redacted, and that large responses are truncated. It does not discuss authentication/permissions or error behavior, so it falls short of fully comprehensive disclosure.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with purpose and escape-hatch role, then caveats, parameters, and returns. The parameter list repeats schema names but earns its place by adding examples and syntax, and there is no filler.

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 7-parameter generic read tool with no annotations or output schema, the description explains read semantics, redaction/truncation, parameter narrowing, and that the return is raw JSON with results plus metadata. The exact response envelope remains lightly specified, which leaves a small gap without an output schema.

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 100%, so the baseline is 3, but the description adds useful meaning beyond the schema: path examples, filter syntax such as 'status==enable' and 'name=@vlan' with '&' joining, and a pipe-separated format_fields example. This materially improves parameter usage guidance.

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?

States a specific verb and resource: list every object of any FortiOS configuration table, including the underlying endpoint GET /api/v2/cmdb/{path}. It explicitly positions itself as the escape hatch for tables without a dedicated tool, which distinguishes it from cmdb_get and the many dedicated list_* siblings.

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?

The phrase 'escape hatch for tables that have no dedicated tool' gives clear when-to-use and when-not-to-use guidance, with the alternative being the dedicated tool class. It also tells the agent to narrow large responses with filter_expr, count, or format_fields, and gives concrete path examples.

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