Skip to main content
Glama
FortiManager MCP Server

FortiManager MCP Server

by rstierli

list_scripts

Lists CLI scripts in a FortiManager ADOM. Use filters for script type and target, and set a limit to review available scripts.

Instructions

List CLI scripts in an ADOM.

Args: adom: ADOM name (default: from DEFAULT_ADOM env var, or "root") script_type: Filter by type (cli, tcl, cligrp, tclgrp, jinja) target: Filter by target (device_database, remote_device, adom_database) limit: Maximum number of scripts to return (default: 100, minimum: 1)

Returns: List of scripts with name, type, target, and description. count is the number returned and total the number before limit: if total is larger the list was cut, raise limit for the rest.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_scripts"
  }
}

Input Schema

NameRequiredDescriptionDefault
adomNo
limitNo
targetNo
script_typeNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/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 real work: it discloses the default ADOM resolution chain (env var DEFAULT_ADOM, then 'root'), the default and minimum for limit, and — most valuable — the truncation semantics via count vs total with advice to raise limit. It never explicitly states the operation is read-only, but 'List' plus the truncation contract makes that clear.

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 one-line purpose followed by compact Args/Returns blocks; every line conveys usable information. Slightly formulaic but 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 4-optional-param listing tool with an output schema present, this covers argument defaults, filter values, and the pagination contract. An agent can call it correctly without further information; only permissions/scope caveats are absent.

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 entirely, and it does: all four params get meaning, including the enumerated values for script_type (cli, tcl, cligrp, tclgrp, jinja) and target (device_database, remote_device, adom_database) that appear nowhere in the schema, plus defaults and a minimum for limit.

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?

Opens with a specific verb+resource: 'List CLI scripts in an ADOM', which distinguishes it from the other list_* siblings by naming the resource type (CLI scripts) rather than just 'scripts'. It stops short of naming a sibling it is not, but the resource is unambiguous.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance, and no routing to alternatives such as list_cli_templates or list_cli_template_groups. The filtering args hint at use cases but the agent must infer them.

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