naftiko: 1.0.0-alpha2 info: label: Istio Networking API — DestinationRule description: 'Istio Networking API — DestinationRule. 5 operations. Lead operation: Istio List DestinationRules. Self-contained Naftiko capability covering one Istio business surface.' tags: - Istio - DestinationRule created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: ISTIO_API_KEY: ISTIO_API_KEY capability: consumes: - type: http namespace: networking-destinationrule baseUri: https://{cluster}/apis/networking.istio.io/v1 description: Istio Networking API — DestinationRule business capability. Self-contained, no shared references. resources: - name: namespaces-namespace-destinationrules path: /namespaces/{namespace}/destinationrules operations: - name: listdestinationrules method: GET description: Istio List DestinationRules outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createdestinationrule method: POST description: Istio Create a DestinationRule outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: namespaces-namespace-destinationrules-name path: /namespaces/{namespace}/destinationrules/{name} operations: - name: getdestinationrule method: GET description: Istio Get a DestinationRule outputRawFormat: json outputParameters: - name: result type: object value: $. - name: replacedestinationrule method: PUT description: Istio Replace a DestinationRule outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: deletedestinationrule method: DELETE description: Istio Delete a DestinationRule outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.ISTIO_API_KEY}}' exposes: - type: rest namespace: networking-destinationrule-rest port: 8080 description: REST adapter for Istio Networking API — DestinationRule. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/namespaces/{namespace}/destinationrules name: namespaces-namespace-destinationrules description: REST surface for namespaces-namespace-destinationrules. operations: - method: GET name: listdestinationrules description: Istio List DestinationRules call: networking-destinationrule.listdestinationrules outputParameters: - type: object mapping: $. - method: POST name: createdestinationrule description: Istio Create a DestinationRule call: networking-destinationrule.createdestinationrule with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/namespaces/{namespace}/destinationrules/{name} name: namespaces-namespace-destinationrules-name description: REST surface for namespaces-namespace-destinationrules-name. operations: - method: GET name: getdestinationrule description: Istio Get a DestinationRule call: networking-destinationrule.getdestinationrule outputParameters: - type: object mapping: $. - method: PUT name: replacedestinationrule description: Istio Replace a DestinationRule call: networking-destinationrule.replacedestinationrule with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletedestinationrule description: Istio Delete a DestinationRule call: networking-destinationrule.deletedestinationrule outputParameters: - type: object mapping: $. - type: mcp namespace: networking-destinationrule-mcp port: 9090 transport: http description: MCP adapter for Istio Networking API — DestinationRule. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: istio-list-destinationrules description: Istio List DestinationRules hints: readOnly: true destructive: false idempotent: true call: networking-destinationrule.listdestinationrules outputParameters: - type: object mapping: $. - name: istio-create-destinationrule description: Istio Create a DestinationRule hints: readOnly: false destructive: false idempotent: false call: networking-destinationrule.createdestinationrule with: body: tools.body outputParameters: - type: object mapping: $. - name: istio-get-destinationrule description: Istio Get a DestinationRule hints: readOnly: true destructive: false idempotent: true call: networking-destinationrule.getdestinationrule outputParameters: - type: object mapping: $. - name: istio-replace-destinationrule description: Istio Replace a DestinationRule hints: readOnly: false destructive: false idempotent: true call: networking-destinationrule.replacedestinationrule with: body: tools.body outputParameters: - type: object mapping: $. - name: istio-delete-destinationrule description: Istio Delete a DestinationRule hints: readOnly: false destructive: true idempotent: true call: networking-destinationrule.deletedestinationrule outputParameters: - type: object mapping: $.