naftiko: 1.0.0-alpha2 info: label: New Relic — Condition description: 'New Relic — Condition. 10 operations. Lead operation: New Relic Put Alerts Conditions. Self-contained Naftiko capability covering one New Relic business surface.' tags: - New Relic - Condition created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: NEW_RELIC_API_KEY: NEW_RELIC_API_KEY capability: consumes: - type: http namespace: new-relic-condition baseUri: https://api.newrelic.com/v2 description: New Relic — Condition business capability. Self-contained, no shared references. resources: - name: alerts_conditions-condition_id}.json path: /alerts_conditions/{condition_id}.json operations: - name: putalertsconditionsconditionid method: PUT description: New Relic Put Alerts Conditions outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: condition_id in: path type: integer description: Alerts condition to update required: true - name: body in: body type: object description: Request body (JSON). required: true - name: deletealertsconditionsconditionid method: DELETE description: New Relic Delete Alerts Conditions outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: condition_id in: path type: integer description: Alerts condition ID required: true - name: alerts_external_service_conditions-condition_id}.json path: /alerts_external_service_conditions/{condition_id}.json operations: - name: putalertsexternalserviceconditionsconditionid method: PUT description: New Relic Put Alerts External Service Conditions outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: condition_id in: path type: integer description: Alerts condition to update required: true - name: body in: body type: object description: Request body (JSON). required: true - name: deletealertsexternalserviceconditionsconditionid method: DELETE description: New Relic Delete Alerts External Service Conditions outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: condition_id in: path type: integer description: Alerts condition ID required: true - name: alerts_location_failure_conditions-condition_id}.json path: /alerts_location_failure_conditions/{condition_id}.json operations: - name: putalertslocationfailureconditionsconditionid method: PUT description: New Relic Put Alerts Location Failure Conditions outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: condition_id in: path type: integer description: Alerts condition to update required: true - name: body in: body type: object description: Request body (JSON). required: true - name: deletealertslocationfailureconditionsconditionid method: DELETE description: New Relic Delete Alerts Location Failure Conditions outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: condition_id in: path type: integer description: Alerts condition ID required: true - name: alerts_nrql_conditions-condition_id}.json path: /alerts_nrql_conditions/{condition_id}.json operations: - name: putalertsnrqlconditionsconditionid method: PUT description: New Relic Put Alerts Nrql Conditions outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: condition_id in: path type: integer description: Alerts condition to update required: true - name: body in: body type: object description: Request body (JSON). required: true - name: deletealertsnrqlconditionsconditionid method: DELETE description: New Relic Delete Alerts Nrql Conditions outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: condition_id in: path type: integer description: Alerts condition ID required: true - name: alerts_synthetics_conditions-condition_id}.json path: /alerts_synthetics_conditions/{condition_id}.json operations: - name: putalertssyntheticsconditionsconditionid method: PUT description: New Relic Put Alerts Synthetics Conditions outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: condition_id in: path type: integer description: Alerts condition to update required: true - name: body in: body type: object description: Request body (JSON). required: true - name: deletealertssyntheticsconditionsconditionid method: DELETE description: New Relic Delete Alerts Synthetics Conditions outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: condition_id in: path type: integer description: Alerts condition ID required: true authentication: type: apikey key: Api-Key value: '{{env.NEW_RELIC_API_KEY}}' placement: header exposes: - type: rest namespace: new-relic-condition-rest port: 8080 description: REST adapter for New Relic — Condition. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/alerts-conditions/condition-id-json name: alerts-conditions-condition-id-json description: REST surface for alerts_conditions-condition_id}.json. operations: - method: PUT name: putalertsconditionsconditionid description: New Relic Put Alerts Conditions call: new-relic-condition.putalertsconditionsconditionid with: condition_id: rest.condition_id body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletealertsconditionsconditionid description: New Relic Delete Alerts Conditions call: new-relic-condition.deletealertsconditionsconditionid with: condition_id: rest.condition_id outputParameters: - type: object mapping: $. - path: /v1/alerts-external-service-conditions/condition-id-json name: alerts-external-service-conditions-condition-id-json description: REST surface for alerts_external_service_conditions-condition_id}.json. operations: - method: PUT name: putalertsexternalserviceconditionsconditionid description: New Relic Put Alerts External Service Conditions call: new-relic-condition.putalertsexternalserviceconditionsconditionid with: condition_id: rest.condition_id body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletealertsexternalserviceconditionsconditionid description: New Relic Delete Alerts External Service Conditions call: new-relic-condition.deletealertsexternalserviceconditionsconditionid with: condition_id: rest.condition_id outputParameters: - type: object mapping: $. - path: /v1/alerts-location-failure-conditions/condition-id-json name: alerts-location-failure-conditions-condition-id-json description: REST surface for alerts_location_failure_conditions-condition_id}.json. operations: - method: PUT name: putalertslocationfailureconditionsconditionid description: New Relic Put Alerts Location Failure Conditions call: new-relic-condition.putalertslocationfailureconditionsconditionid with: condition_id: rest.condition_id body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletealertslocationfailureconditionsconditionid description: New Relic Delete Alerts Location Failure Conditions call: new-relic-condition.deletealertslocationfailureconditionsconditionid with: condition_id: rest.condition_id outputParameters: - type: object mapping: $. - path: /v1/alerts-nrql-conditions/condition-id-json name: alerts-nrql-conditions-condition-id-json description: REST surface for alerts_nrql_conditions-condition_id}.json. operations: - method: PUT name: putalertsnrqlconditionsconditionid description: New Relic Put Alerts Nrql Conditions call: new-relic-condition.putalertsnrqlconditionsconditionid with: condition_id: rest.condition_id body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletealertsnrqlconditionsconditionid description: New Relic Delete Alerts Nrql Conditions call: new-relic-condition.deletealertsnrqlconditionsconditionid with: condition_id: rest.condition_id outputParameters: - type: object mapping: $. - path: /v1/alerts-synthetics-conditions/condition-id-json name: alerts-synthetics-conditions-condition-id-json description: REST surface for alerts_synthetics_conditions-condition_id}.json. operations: - method: PUT name: putalertssyntheticsconditionsconditionid description: New Relic Put Alerts Synthetics Conditions call: new-relic-condition.putalertssyntheticsconditionsconditionid with: condition_id: rest.condition_id body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletealertssyntheticsconditionsconditionid description: New Relic Delete Alerts Synthetics Conditions call: new-relic-condition.deletealertssyntheticsconditionsconditionid with: condition_id: rest.condition_id outputParameters: - type: object mapping: $. - type: mcp namespace: new-relic-condition-mcp port: 9090 transport: http description: MCP adapter for New Relic — Condition. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: new-relic-put-alerts-conditions description: New Relic Put Alerts Conditions hints: readOnly: false destructive: false idempotent: true call: new-relic-condition.putalertsconditionsconditionid with: condition_id: tools.condition_id body: tools.body outputParameters: - type: object mapping: $. - name: new-relic-delete-alerts-conditions description: New Relic Delete Alerts Conditions hints: readOnly: false destructive: true idempotent: true call: new-relic-condition.deletealertsconditionsconditionid with: condition_id: tools.condition_id outputParameters: - type: object mapping: $. - name: new-relic-put-alerts-external description: New Relic Put Alerts External Service Conditions hints: readOnly: false destructive: false idempotent: true call: new-relic-condition.putalertsexternalserviceconditionsconditionid with: condition_id: tools.condition_id body: tools.body outputParameters: - type: object mapping: $. - name: new-relic-delete-alerts-external description: New Relic Delete Alerts External Service Conditions hints: readOnly: false destructive: true idempotent: true call: new-relic-condition.deletealertsexternalserviceconditionsconditionid with: condition_id: tools.condition_id outputParameters: - type: object mapping: $. - name: new-relic-put-alerts-location description: New Relic Put Alerts Location Failure Conditions hints: readOnly: false destructive: false idempotent: true call: new-relic-condition.putalertslocationfailureconditionsconditionid with: condition_id: tools.condition_id body: tools.body outputParameters: - type: object mapping: $. - name: new-relic-delete-alerts-location description: New Relic Delete Alerts Location Failure Conditions hints: readOnly: false destructive: true idempotent: true call: new-relic-condition.deletealertslocationfailureconditionsconditionid with: condition_id: tools.condition_id outputParameters: - type: object mapping: $. - name: new-relic-put-alerts-nrql description: New Relic Put Alerts Nrql Conditions hints: readOnly: false destructive: false idempotent: true call: new-relic-condition.putalertsnrqlconditionsconditionid with: condition_id: tools.condition_id body: tools.body outputParameters: - type: object mapping: $. - name: new-relic-delete-alerts-nrql description: New Relic Delete Alerts Nrql Conditions hints: readOnly: false destructive: true idempotent: true call: new-relic-condition.deletealertsnrqlconditionsconditionid with: condition_id: tools.condition_id outputParameters: - type: object mapping: $. - name: new-relic-put-alerts-synthetics description: New Relic Put Alerts Synthetics Conditions hints: readOnly: false destructive: false idempotent: true call: new-relic-condition.putalertssyntheticsconditionsconditionid with: condition_id: tools.condition_id body: tools.body outputParameters: - type: object mapping: $. - name: new-relic-delete-alerts-synthetics description: New Relic Delete Alerts Synthetics Conditions hints: readOnly: false destructive: true idempotent: true call: new-relic-condition.deletealertssyntheticsconditionsconditionid with: condition_id: tools.condition_id outputParameters: - type: object mapping: $.