Skip to main content
Glama

List configured static routes

list_static_routes
Read-onlyIdempotent

List manually configured static routes on a FortiGate. Use this to audit operator-defined routes; for actual forwarding paths use get_routing_table instead.

Instructions

List configured static routes.

These are the routes an operator configured, which is not the same as the routes in use. A DHCP-assigned default route never appears here because it was never configured. Use get_routing_table for what the appliance is actually forwarding on.

A route whose destination is a named address object is resolved to the underlying CIDR where possible, with the object name kept alongside it.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
vdomNoVirtual domain to read. Defaults to the one configured for this target. Routes are per-vdom, so this changes the answer on a multi-VDOM appliance. The `vdom` field names the one actually read.
limitNoMaximum rows to return. Defaults to 200, capped at 1000.
offsetNoIndex to start from, for paging through a large table.
targetNoWhich FortiGate to query. Optional when only one is configured.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

The annotations already declare readOnlyHint=true, idempotentHint=true, openWorldHint=true, and destructiveHint=false, covering the safety profile. The description adds useful behavioral context beyond that: configured routes are not necessarily routes in use, DHCP default routes never appear, and named address objects are resolved to CIDRs with the object name preserved. It does not discuss authentication or rate limits, but for a read-only list operation the added data-scoping behavior is substantial.

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 description is front-loaded with the core purpose, then adds the distinction from get_routing_table and the object-resolution behavior in a logical order. Every sentence carries useful information without redundancy or filler.

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

Completeness5/5

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

With an output schema, full schema descriptions for all four optional parameters, and annotations covering safety and idempotency, the description only needs to add context that the structured fields cannot convey. It does so by clarifying the configured-vs-in-use distinction, the DHCP exclusion, and the address-object resolution behavior, leaving no essential gap for an agent to call the tool correctly.

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 100%, so the schema already documents vdom, limit, offset, and target thoroughly. The description adds no parameter-level meaning beyond what the schema provides, which makes the baseline score of 3 appropriate.

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?

The description gives a specific verb and resource ('List configured static routes') and immediately distinguishes it from the sibling get_routing_table by explaining the configured-vs-in-use difference. It also excludes DHCP-assigned default routes, so an agent can tell exactly what this tool returns versus what it does not.

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?

It explicitly names the alternative tool and the condition that selects it: 'Use get_routing_table for what the appliance is actually forwarding on.' It further clarifies when a route will not appear here (DHCP-assigned default routes), which is a clear when-not-to-use signal.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.