List services
list_servicesRetrieve FortiGate firewall service objects with protocols and ports; filter by name and page through large tables.
Instructions
List firewall service objects with their protocols and ports.
Compare count against total_available before concluding anything
about the whole table. When truncated is present this is one page.
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_services"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vdom | No | Virtual domain to read. Defaults to the one configured for this target. The `vdom` field in the response names the one actually read. | |
| limit | No | Maximum services to return. Defaults to 200, capped at 1000. | |
| offset | No | Index to start from, for paging through a large table. | |
| target | No | Which FortiGate to query. Optional when only one is configured. | |
| name_contains | No | Case-insensitive substring filter on the service name. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||