opnsense_vlan_list
List all configured 802.1Q VLAN interfaces on OPNsense, including parent interface, VLAN tag, description, and priority.
Instructions
List all configured 802.1Q VLAN interfaces (parent interface, VLAN tag, description, priority)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/vlan.ts:36-36 (registration)Tool definition/registration for 'opnsense_vlan_list' in the vlanToolDefinitions array
name: "opnsense_vlan_list", - src/tools/vlan.ts:39-39 (schema)Input schema for opnsense_vlan_list — no parameters required (empty object)
inputSchema: { type: "object" as const, properties: {} }, - src/tools/vlan.ts:112-115 (handler)Handler for opnsense_vlan_list: makes a GET request to /interfaces/vlan_settings/searchItem and returns the JSON result
case "opnsense_vlan_list": { const result = await client.get("/interfaces/vlan_settings/searchItem"); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] }; } - src/index.ts:68-68 (registration)Maps the 'opnsense_vlan_list' tool name to its handler function handleVlanTool
for (const def of vlanToolDefinitions) toolHandlers.set(def.name, handleVlanTool); - src/index.ts:49-49 (registration)Spreads vlanToolDefinitions (including opnsense_vlan_list) into the allToolDefinitions list that gets served to MCP clients
...vlanToolDefinitions,