Skip to main content
Glama
FortiManager MCP Server

FortiManager MCP Server

by rstierli

list_policy_block_policies

List firewall policies stored in a policy block by ADOM and block name, with optional field selection and pagination.

Instructions

List the firewall policies held in a policy block.

Args: adom: ADOM name block: Policy block name (see list_policy_blocks, or the _policy_block field of a package entry). A block that does not exist answers "No permission for the resource" (FMG -11), not "not found" (measured on 8.0.2) fields: Specific fields to return (optional) limit: Maximum number of policies to return (optional) offset: Starting position for pagination (default: 0)

Returns: dict: status, count, policies, or message on failure

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>",
      "block": "<block>"
    },
    "name": "list_policy_block_policies"
  }
}

Input Schema

NameRequiredDescriptionDefault
adomYes
blockYes
limitNo
fieldsNo
offsetNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.13.1

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses a non-obvious error semantic (nonexistent block yields FMG -11 'No permission for the resource' rather than 'not found'), plus pagination defaults and the return shape. It does not state read-only/ordering behavior, but 'List' plus the return fields make the safety profile evident.

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?

Purpose is front-loaded in one sentence, with args and returns cleanly separated. The Args section largely mirrors the schema, but with 0% schema coverage that restatement is doing real work rather than wasting space.

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 five-parameter list tool with no annotations, the definition covers prerequisite discovery, error semantics, pagination, and return keys, and an output schema exists so return values need not be expanded. Only ordering/sort behavior and default limit are unaddressed.

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, and it documents all five parameters including offset's default and fields' purpose. The adom entry ('ADOM name') is thin, but block gets substantial added meaning that the schema does not provide.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: list firewall policies scoped to a policy block. That scope ('held in a policy block') is enough to separate it from the broader list_firewall_policies sibling, though the description never names that alternative explicitly.

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

Usage Guidelines4/5

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

Gives clear prerequisite guidance by telling the agent where block names come from (list_policy_blocks, or the _policy_block field of a package entry). It stops short of explicit when-not routing against list_firewall_policies, so no exclusion is stated.

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