Skip to main content
Glama
FortiManager MCP Server

FortiManager MCP Server

by rstierli

get_script_log_latest

Retrieve the script execution log for an ADOM, optionally filtered by device, returning its content and execution time or null if none has run.

Instructions

Get the latest script execution log.

Args: adom: ADOM name device: Optional device name to filter logs

Returns: Latest script execution log with content and execution time, under "log". "log" is null when no script has run in that scope.

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": "get_script_log_latest"
  }
}

Input Schema

NameRequiredDescriptionDefault
adomYes
deviceNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose the important null semantics ('log' is null when no script has run in that scope) and that content and execution time are returned, but it says nothing about permissions, whether execution logs are retained/pruned, or how large the returned content may be.

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 Args/Returns structure is front-loaded and easy to scan, with no filler sentences. The Returns block partially duplicates the existing output schema, but the null-case clarification is worth the space.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so the return-value explanation is bonus rather than necessity, and both parameters are at least named. The definition is nonetheless incomplete about how this log view relates to the three sibling script-log tools and about what 'scope' means (ADOM vs device), which matters for correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/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 document both parameters in the Args block. However, 'adom: ADOM name' only restates the parameter name without explaining what an ADOM is or how to discover one, and 'device' is explained as an optional filter but not what happens if the device name is invalid or the device is in another ADOM.

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 states a specific verb and resource (retrieve the latest script execution log) and the 'latest' qualifier is meaningful. It does not differentiate itself from the closely named siblings get_script_log_output and get_script_log_summary, so an agent must guess which log view it needs.

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 guidance and no mention of the sibling log tools that clearly overlap in scope. The only implicit signal is the word 'latest', which hints at recency but never says when to prefer this over the output or summary variants.

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