Skip to main content
Glama
FortiManager MCP Server

FortiManager MCP Server

by rstierli

add_ips_sensor_signature_override

Add a signature filter or override entry to an IPS sensor, targeting specific signatures by name or a broad severity-based filter to control block, pass, and log actions.

Instructions

Add a signature filter/override entry to an IPS sensor.

FortiManager exposes an IPS sensor's "entries" list as its own addressable nested collection (its own add/get/set/update/delete/move endpoints under .../sensor/{sensor}/entries), so this calls that sub-resource's ADD endpoint directly rather than reading the whole sensor, splicing the list in Python, and writing it back -- unlike update_device_wtp_profile_radio's device-DB radio field, which has no such sub-resource and must be read-modify-written as a whole object.

Pass rule with explicit signature names to override specific signatures (e.g. ["trojan.generic"]); omit it and use severity / default_action / default_status to add a broad filter entry instead (matches every signature meeting those criteria).

Args: adom: ADOM name sensor: IPS sensor name (must already exist -- see create_ips_sensor) rule: Specific signature names to override (optional; omit for a broad filter entry) entry_id: Explicit entry ID (0-4294967295). If omitted, FortiManager assigns the next available ID. status: Status of the entry ("disable", "enable", or "default"; default: "enable") action: Action for matched traffic ("pass", "block", "reset", or "default"; default: "default") log: Enable/disable logging for this entry ("enable" or "disable") log_packet: Enable/disable packet logging for this entry ("enable" or "disable") severity: Signature severities to match (e.g. ["critical", "high"]) default_action: Broad-filter action filter ("block", "pass", or "all") default_status: Broad-filter status filter ("disable", "enable", or "all")

Returns: dict: Add result with keys: - status: "success" or "error" - sensor: Sensor name - message: Status or error message

Example: >>> # Override a specific signature to block+log >>> result = await add_ips_sensor_signature_override( ... adom="root", ... sensor="Custom-IPS", ... rule=["trojan.generic"], ... status="enable", ... action="block", ... log="enable", ... )

>>> # Add a broad "block all critical signatures" filter
>>> result = await add_ips_sensor_signature_override(
...     adom="root",
...     sensor="Custom-IPS",
...     severity=["critical"],
...     default_action="block",
...     status="enable",
...     action="block",
... )

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>",
      "sensor": "<sensor>"
    },
    "name": "add_ips_sensor_signature_override"
  }
}

Input Schema

NameRequiredDescriptionDefault
logNo
adomYes
ruleNo
actionNodefault
sensorYes
statusNoenable
entry_idNo
severityNo
log_packetNo
default_actionNo
default_statusNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.12.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 full burden and does well: it discloses that this calls the sub-resource ADD endpoint, that FortiManager auto-assigns entry_id when omitted, and that entries are appended to an existing sensor's entries list. It stops short of stating auth/permission requirements, duplicate-entry behavior, or whether a commit_adom is required for changes to take effect.

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 purpose, then usage semantics, then Args/Returns/Examples – well structured for an 11-parameter tool. The paragraph contrasting the nested sub-resource with update_device_wtp_profile_radio's read-modify-write is interesting rationale but does not help an agent decide or invoke, and the examples partly restate the Args docs.

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 11-param mutation tool with no annotations, the definition covers inputs, return shape, and the two usage patterns thoroughly. Missing only secondary but real facts: whether a subsequent commit_adom is needed, and what happens on conflicting/duplicate entries for the same signature.

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%, so the description must compensate and it does: every one of the 11 params is documented with meaning, allowed values ('pass', 'block', 'reset', 'default'), defaults, and the entry_id range (0-4294967295). This adds substantial meaning the bare schema does not provide.

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 ('Add a signature filter/override entry to an IPS sensor') and explains it writes to the nested 'entries' sub-collection of the sensor. The distinction from create_ips_sensor, list_ips_sensor_signature_overrides and remove_ips_sensor_signature_override is implied clearly, and differentiates from update_device_wtp_profile_radio by mechanism.

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?

Explicitly gives the two mutually exclusive usage modes: pass `rule` for specific signature overrides, or omit it and use `severity`/`default_action`/`default_status` for a broad filter entry with concrete examples of both. It also states the precondition that the sensor must already exist and points to create_ips_sensor.

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