naftiko: 1.0.0-alpha2 info: label: RouterOS REST API — DNS description: 'RouterOS REST API — DNS. 2 operations. Lead operation: Get DNS Settings. Self-contained Naftiko capability covering one Routeros business surface.' tags: - Routeros - DNS created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: ROUTEROS_API_KEY: ROUTEROS_API_KEY capability: consumes: - type: http namespace: rest-dns baseUri: https://{routerIP}/rest description: RouterOS REST API — DNS business capability. Self-contained, no shared references. resources: - name: ip-dns path: /ip/dns operations: - name: getdnssettings method: GET description: Get DNS Settings outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updatednssettings method: PATCH description: Update DNS Settings outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true authentication: type: basic username: '{{env.ROUTEROS_USER}}' password: '{{env.ROUTEROS_PASS}}' exposes: - type: rest namespace: rest-dns-rest port: 8080 description: REST adapter for RouterOS REST API — DNS. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/ip/dns name: ip-dns description: REST surface for ip-dns. operations: - method: GET name: getdnssettings description: Get DNS Settings call: rest-dns.getdnssettings outputParameters: - type: object mapping: $. - method: PATCH name: updatednssettings description: Update DNS Settings call: rest-dns.updatednssettings with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: rest-dns-mcp port: 9090 transport: http description: MCP adapter for RouterOS REST API — DNS. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-dns-settings description: Get DNS Settings hints: readOnly: true destructive: false idempotent: true call: rest-dns.getdnssettings outputParameters: - type: object mapping: $. - name: update-dns-settings description: Update DNS Settings hints: readOnly: false destructive: false idempotent: true call: rest-dns.updatednssettings with: body: tools.body outputParameters: - type: object mapping: $.