naftiko: 1.0.0-alpha2 info: label: NetBird REST API — DNS Zones description: 'NetBird REST API — DNS Zones. 10 operations. Lead operation: List all DNS Zones. Self-contained Naftiko capability covering one Netbird business surface.' tags: - Netbird - DNS Zones created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: NETBIRD_API_KEY: NETBIRD_API_KEY capability: consumes: - type: http namespace: netbird-dns-zones baseUri: https://api.netbird.io description: NetBird REST API — DNS Zones business capability. Self-contained, no shared references. resources: - name: api-dns-zones path: /api/dns/zones operations: - name: get method: GET description: List all DNS Zones outputRawFormat: json outputParameters: - name: result type: object value: $. - name: post method: POST description: Create a DNS Zone outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false - name: api-dns-zones-zoneId path: /api/dns/zones/{zoneId} operations: - name: get method: GET description: Retrieve a DNS Zone outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: zoneId in: path type: string description: The unique identifier of a zone required: true - name: put method: PUT description: Update a DNS Zone outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: zoneId in: path type: string description: The unique identifier of a zone required: true - name: body in: body type: object description: Request body (JSON). required: false - name: delete method: DELETE description: Delete a DNS Zone outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: zoneId in: path type: string description: The unique identifier of a zone required: true - name: api-dns-zones-zoneId-records path: /api/dns/zones/{zoneId}/records operations: - name: get method: GET description: List all DNS Records outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: zoneId in: path type: string description: The unique identifier of a zone required: true - name: post method: POST description: Create a DNS Record outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: zoneId in: path type: string description: The unique identifier of a zone required: true - name: body in: body type: object description: Request body (JSON). required: false - name: api-dns-zones-zoneId-records-recordId path: /api/dns/zones/{zoneId}/records/{recordId} operations: - name: get method: GET description: Retrieve a DNS Record outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: zoneId in: path type: string description: The unique identifier of a zone required: true - name: recordId in: path type: string description: The unique identifier of a DNS record required: true - name: put method: PUT description: Update a DNS Record outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: zoneId in: path type: string description: The unique identifier of a zone required: true - name: recordId in: path type: string description: The unique identifier of a DNS record required: true - name: body in: body type: object description: Request body (JSON). required: false - name: delete method: DELETE description: Delete a DNS Record outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: zoneId in: path type: string description: The unique identifier of a zone required: true - name: recordId in: path type: string description: The unique identifier of a DNS record required: true authentication: type: bearer token: '{{env.NETBIRD_API_KEY}}' exposes: - type: rest namespace: netbird-dns-zones-rest port: 8080 description: REST adapter for NetBird REST API — DNS Zones. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/api/dns/zones name: api-dns-zones description: REST surface for api-dns-zones. operations: - method: GET name: get description: List all DNS Zones call: netbird-dns-zones.get outputParameters: - type: object mapping: $. - method: POST name: post description: Create a DNS Zone call: netbird-dns-zones.post with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/dns/zones/{zoneid} name: api-dns-zones-zoneid description: REST surface for api-dns-zones-zoneId. operations: - method: GET name: get description: Retrieve a DNS Zone call: netbird-dns-zones.get with: zoneId: rest.zoneId outputParameters: - type: object mapping: $. - method: PUT name: put description: Update a DNS Zone call: netbird-dns-zones.put with: zoneId: rest.zoneId body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: delete description: Delete a DNS Zone call: netbird-dns-zones.delete with: zoneId: rest.zoneId outputParameters: - type: object mapping: $. - path: /v1/api/dns/zones/{zoneid}/records name: api-dns-zones-zoneid-records description: REST surface for api-dns-zones-zoneId-records. operations: - method: GET name: get description: List all DNS Records call: netbird-dns-zones.get with: zoneId: rest.zoneId outputParameters: - type: object mapping: $. - method: POST name: post description: Create a DNS Record call: netbird-dns-zones.post with: zoneId: rest.zoneId body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/dns/zones/{zoneid}/records/{recordid} name: api-dns-zones-zoneid-records-recordid description: REST surface for api-dns-zones-zoneId-records-recordId. operations: - method: GET name: get description: Retrieve a DNS Record call: netbird-dns-zones.get with: zoneId: rest.zoneId recordId: rest.recordId outputParameters: - type: object mapping: $. - method: PUT name: put description: Update a DNS Record call: netbird-dns-zones.put with: zoneId: rest.zoneId recordId: rest.recordId body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: delete description: Delete a DNS Record call: netbird-dns-zones.delete with: zoneId: rest.zoneId recordId: rest.recordId outputParameters: - type: object mapping: $. - type: mcp namespace: netbird-dns-zones-mcp port: 9090 transport: http description: MCP adapter for NetBird REST API — DNS Zones. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-all-dns-zones description: List all DNS Zones hints: readOnly: true destructive: false idempotent: true call: netbird-dns-zones.get outputParameters: - type: object mapping: $. - name: create-dns-zone description: Create a DNS Zone hints: readOnly: false destructive: false idempotent: false call: netbird-dns-zones.post with: body: tools.body outputParameters: - type: object mapping: $. - name: retrieve-dns-zone description: Retrieve a DNS Zone hints: readOnly: true destructive: false idempotent: true call: netbird-dns-zones.get with: zoneId: tools.zoneId outputParameters: - type: object mapping: $. - name: update-dns-zone description: Update a DNS Zone hints: readOnly: false destructive: false idempotent: true call: netbird-dns-zones.put with: zoneId: tools.zoneId body: tools.body outputParameters: - type: object mapping: $. - name: delete-dns-zone description: Delete a DNS Zone hints: readOnly: false destructive: true idempotent: true call: netbird-dns-zones.delete with: zoneId: tools.zoneId outputParameters: - type: object mapping: $. - name: list-all-dns-records description: List all DNS Records hints: readOnly: true destructive: false idempotent: true call: netbird-dns-zones.get with: zoneId: tools.zoneId outputParameters: - type: object mapping: $. - name: create-dns-record description: Create a DNS Record hints: readOnly: false destructive: false idempotent: false call: netbird-dns-zones.post with: zoneId: tools.zoneId body: tools.body outputParameters: - type: object mapping: $. - name: retrieve-dns-record description: Retrieve a DNS Record hints: readOnly: true destructive: false idempotent: true call: netbird-dns-zones.get with: zoneId: tools.zoneId recordId: tools.recordId outputParameters: - type: object mapping: $. - name: update-dns-record description: Update a DNS Record hints: readOnly: false destructive: false idempotent: true call: netbird-dns-zones.put with: zoneId: tools.zoneId recordId: tools.recordId body: tools.body outputParameters: - type: object mapping: $. - name: delete-dns-record description: Delete a DNS Record hints: readOnly: false destructive: true idempotent: true call: netbird-dns-zones.delete with: zoneId: tools.zoneId recordId: tools.recordId outputParameters: - type: object mapping: $.