list_firewall_policies
Retrieve firewall policies from a FortiManager policy package with optional field filtering, pagination, and limit controls.
Instructions
List firewall policies in a policy package.
Args: adom: ADOM name package: Policy package name fields: Specific fields to return (optional) limit: Maximum number of policies to return (optional) offset: Starting position for pagination (default: 0)
Returns: dict: Policy list with keys: - status: "success" or "error" - count: Number of policies returned - total: Total number of policies in package - policies: List of policy objects - message: Error message if failed
Example: >>> # Get all policies >>> result = await list_firewall_policies("root", "default")
>>> # Get first 10 policies with specific fields
>>> result = await list_firewall_policies(
... adom="root",
... package="default",
... fields=["policyid", "name", "srcaddr", "dstaddr", "action"],
... limit=10
... )
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>",
"package": "<package>"
},
"name": "list_firewall_policies"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| adom | Yes | ||
| limit | No | ||
| fields | No | ||
| offset | No | ||
| package | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||