macro_generate_tool
Create tool definitions for OPNSense MCP Server by generating them from macros, enabling automation and configuration of firewall rules, VLANs, and network interfaces.
Instructions
Generate an MCP tool definition from a macro
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": {
"id": "<id>"
},
"name": "macro_generate_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Macro ID | |
| save | No | Save the generated tool to a file |