opnsense_dns_list_forwards
Lists all DNS-over-TLS forwarding servers configured in Unbound. Retrieve current forwarder settings for review or auditing.
Instructions
List all DNS-over-TLS forwarding servers configured in Unbound
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": "opnsense_dns_list_forwards"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/dns.ts:319-322 (handler)Handler that executes the tool by calling GET /api/unbound/settings/searchDot on the OPNsense API and returning the JSON result.
case "opnsense_dns_list_forwards": { const result = await client.get("/unbound/settings/searchDot"); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] }; } - src/tools/dns.ts:116-119 (schema)Schema/definition for the tool: no input parameters required, lists all DNS-over-TLS forwarding servers.
{ name: "opnsense_dns_list_forwards", description: "List all DNS-over-TLS forwarding servers configured in Unbound", inputSchema: { type: "object" as const, properties: {} }, - src/index.ts:40-40 (registration)The tool definition is spread into allToolDefinitions used for ListTools.
...dnsToolDefinitions, - src/index.ts:59-59 (registration)Registration: maps 'opnsense_dns_list_forwards' to handleDnsTool in the toolHandlers map.
for (const def of dnsToolDefinitions) toolHandlers.set(def.name, handleDnsTool);