Skip to main content
Glama
ry-ops

fortigate-mcp-server

by ry-ops

get_logs

Read FortiGate logs newest first to inspect traffic, app control, system events, IPS, and web filtering; filter by IP, policy, or hostname and page results.

Instructions

Read FortiGate logs, newest first. Useful types: traffic/forward (sessions through policies, with app identification), app-ctrl (per-connection application and, with certificate inspection, the HTTPS hostname), event/system (admin and config events), ips, webfilter. FortiGate-VMs without a log disk only keep logs in memory, which is lost on reboot.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rowsNoRows to return (default 50, max 1000)
vdomNoVDOM (default: FORTIGATE_VDOM, usually root)
startNoOffset for paging (default 0)
fieldsNoOnly return these fields per row, e.g. [date, time, srcip, dstip, hostname, app, action]
filterNoFortiOS log filter, e.g. srcip==192.168.150.10 or policyid==1 or hostname=@github
sourceNomemory (default), disk, fortianalyzer or forticloud
log_typeYesOne of: traffic/forward, traffic/local, traffic/multicast, traffic/sniffer, event/system, event/user, event/router, event/vpn, event/wad, event/endpoint, event/ha, event/security-rating, event/fortiextender, event/connector, app-ctrl, ips, virus, webfilter, dns, ssl, ssh, file-filter, anomaly, waf, emailfilter, dlp, voip, gtp, icap, virtual-patch
resolve_vmsNoLabel IPs/MACs with the Proxmox VM that owns them (needs PROXMOX_*)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.1

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 full burden and does disclose real behavioral traits: results are ordered newest-first, and FortiGate-VMs without a log disk hold logs only in memory, lost on reboot. It omits auth/permission requirements and any rate-limit behavior, keeping it short of a 5.

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?

Front-loaded with the core action and ordering, then a compact type breakdown, then the operational caveat. Every sentence carries information and none repeats the schema.

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 an 8-parameter read tool with no output schema and no annotations, the description supplies ordering, log-type semantics, and the memory-volatility caveat. It leaves the shape of returned rows and any permission requirements unstated, but the fields/rows parameters imply row-level output.

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 100%, so the baseline is 3, but the description goes further by explaining what several log_type values actually contain (traffic/forward = sessions through policies with app ID; app-ctrl = per-connection app and, with cert inspection, HTTPS hostname), adding semantics beyond the schema's flat enumeration.

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 ('Read FortiGate logs') plus a scoping trait ('newest first'), which clearly separates it from siblings like list_sessions, get_top_traffic and get_policy_stats that surface derived rather than raw log data.

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?

The 'Useful types' list implicitly guides which log_type to pick and what each contains, but there is no explicit when-to-use/when-not-to-use guidance and no named alternative (e.g. list_sessions for live session state vs. get_logs for historical records).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.