Skip to main content
Glama
mdemirn

FortiGate MCP Server

by mdemirn

lookup_policy

Determine which FortiGate firewall policy a hypothetical flow would match, without sending traffic. Identify the matching rule or implicit deny for any source, destination, port and protocol.

Instructions

Ask the FortiGate which firewall policy a hypothetical flow would match (monitor/firewall/policy-lookup), without sending any traffic.

Use it to answer "would host X reach server Y on port Z, and through which rule?".

Parameters:

  • device_id: Identifier of the FortiGate device

  • source_ip: Source IPv4 address

  • destination_ip: Destination IPv4 address

  • destination_port: Destination port

  • protocol: tcp (default), udp, icmp, sctp or a protocol number

  • source_interface: Optional ingress interface name (improves accuracy)

  • source_port: Optional source port

  • vdom: Virtual Domain name (optional)

Returns:

  • Matching policy id/name/action, or "no matching policy" (implicit deny)

Input Schema

NameRequiredDescriptionDefault
vdomNoVirtual Domain
protocolNotcp, udp, icmp, sctp or protocol numbertcp
device_idYesFortiGate device identifier
source_ipYesSource IPv4 address
source_portNoSource port
destination_ipYesDestination IPv4 address
destination_portYesDestination port
source_interfaceNoIngress interface name

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the burden and discloses important behavior: it performs a policy lookup without sending traffic and returns the matching policy or implicit deny. It does not discuss permissions or rate limits, but the core safety-relevant behavior is clear.

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 and appropriately sized for an 8-parameter tool. It moves directly from purpose to use case to parameters to return behavior with no wasted text.

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?

Given no output schema and no annotations, the description fills the important gaps by explaining the return value and the no-traffic behavior. It is nearly complete, though it could mention prerequisites such as the device needing to be known or accessible.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents all parameters. The description restates most parameters and adds a small note that source_interface improves accuracy, but otherwise does not add much beyond the schema.

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 states a specific verb and resource: asking the FortiGate which firewall policy a hypothetical flow would match. It also clarifies the monitoring endpoint and that no traffic is sent, which distinguishes it from policy listing/detail tools and from traffic-sending tools like ping.

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?

The description gives a clear use case: answering whether host X reaches server Y on port Z and through which rule. It does not explicitly name alternatives or when-not-to-use conditions, but the hypothetical/no-traffic framing provides strong implied guidance.

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