Skip to main content
Glama
FortiManager MCP Server

FortiManager MCP Server

by rstierli

list_template_groups

List template groups in a FortiManager ADOM to view device-assignment packages and check count versus total when limiting results.

Instructions

List template groups in an ADOM.

Template groups combine multiple templates (system, CLI, SD-WAN, etc.) into a single package for device assignment.

Args: adom: ADOM name (default: from DEFAULT_ADOM env var, or "root") limit: Maximum number to return (default: 100, minimum: 1)

Returns: List of template groups. 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_template_groups"
  }
}

Input Schema

NameRequiredDescriptionDefault
adomNo
limitNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose two useful behaviors: the adom fallback to an environment variable or 'root', and the truncation semantics via count/total. It does not state that the operation is read-only, whether results are paginated beyond limit, or what permissions ADOM scope requires, so the disclosure is partial.

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?

The purpose sentence is front-loaded and the Args/Returns sections are compact and scannable. The Returns block is slightly redundant given that an output schema exists, but it clarifies the count-vs-total distinction rather than restating field names.

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 simple two-parameter list tool with an output schema, the definition covers scope, parameter defaults, and truncation behavior adequately. The remaining gap is guidance on when to choose this tool versus its siblings, which is a usage concern rather than a completeness failure.

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 does: adom is explained with its default source, and limit with its default of 100 and minimum of 1. Both parameters gain meaning (especially the env-var fallback) that the bare schema does not convey.

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?

The description opens with a specific verb and resource, 'List template groups in an ADOM', and then explains what a template group is (a package combining system, CLI, SD-WAN templates). That definition implicitly separates it from list_cli_template_groups and list_system-related siblings, though no sibling is named explicitly, which keeps it short of a 5.

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?

Usage is only implied by the word 'List'; there is no statement of when to prefer this over get_template_group, list_cli_template_groups, or the assign_* tools. An agent can infer a read-only enumeration, but nothing tells it when this tool is the wrong choice.

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