Skip to main content
Glama
FortiManager MCP Server

FortiManager MCP Server

by rstierli

list_metadata_variables

Lists an ADOM's metadata variables, their defaults, and per-device mappings; add a device name to see each variable's effective value and whether it comes from the device or the ADOM default.

Instructions

List an ADOM's metadata variables and their per-device values.

Metadata variables are what templates reference as $(name); a model device import (add_model_device with meta_variables) stores its values as per-device mappings. Password-type values are redacted.

Args: adom: ADOM name device: Optional device name; when given, device_values holds every variable's value for that device and where it comes from ("device" mapping or ADOM "default"). A device mapping lists each of its scopes in scopes; value is None when they differ.

Returns: dict: status, count, variables (name, type, description, default, mappings[{device, vdom, value}]) and, with device, device_values

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

Input Schema

NameRequiredDescriptionDefault
adomYes
deviceNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.13.1

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does well: it discloses that password-type values are redacted, that values come from either a device mapping or the ADOM default, and that 'value' is None when a device mapping's scopes disagree. These are non-obvious behavioral traits an agent could not get from the schema. It omits permission/auth requirements and any pagination or size expectations.

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 purpose is front-loaded in a single sentence, followed by a short definitional note and clearly separated Args/Returns blocks that map onto the schema. Every line adds usable information; nothing is 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 two-parameter read tool this is nearly complete: the core concept, the optional filter's semantics, data provenance, redaction, and the return shape are all covered. Since an output schema already exists, restating the Returns block is somewhat redundant, and auth/prerequisite information is absent, so it falls just short of fully complete.

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 largely does for 'device': its effect on the result, the shape of device_values, the scopes list, and the None-when-differing rule. 'adom' is only glossed as 'ADOM name', adding little beyond the parameter name, which is the one remaining gap.

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 first sentence gives a specific verb and resource ('List an ADOM's metadata variables') plus the scope ('per-device values'), and the second sentence defines what a metadata variable actually is (what templates reference as $(name)). It does not explicitly separate itself from the similar-sounding sibling check_device_variables, which keeps it from 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 implied rather than stated: the 'device' argument's behavior is described conditionally ('when given, device_values holds...'), which tells an agent how to use the optional filter, and add_model_device is named as the writer of this data. There is no explicit when-to-use / when-not guidance and no routing to or away from check_device_variables or set_metadata_variable.

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