create_service
Create custom TCP or UDP services on FortiGate firewalls by defining a service name and optional port ranges.
Instructions
Create a custom TCP/UDP service.
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": {
"name": "<name>"
},
"name": "create_service"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Service name | |
| vdom | No | VDOM (default: FORTIGATE_VDOM, usually root) | |
| extra | No | Extra FortiOS attributes merged into the request body as-is (hyphenated keys) | |
| comment | No | Comment | |
| tcp_portrange | No | TCP ports, e.g. '6443' or '8000-8080 9000' | |
| udp_portrange | No | UDP ports |