New Relic · Capability

New Relic — Entity

New Relic — Entity. 3 operations. Lead operation: New Relic Get Alerts Entity Conditions Entity. Self-contained Naftiko capability covering one New Relic business surface.

Run with Naftiko New RelicEntity

What You Can Do

GET
Getalertsentityconditionsentityid — New Relic Get Alerts Entity Conditions Entity
/v1/alerts-entity-conditions/entity-id-json
PUT
Putalertsentityconditionsentityid — New Relic Put Alerts Entity Conditions Entity
/v1/alerts-entity-conditions/entity-id-json
DELETE
Deletealertsentityconditionsentityid — New Relic Delete Alerts Entity Conditions Entity
/v1/alerts-entity-conditions/entity-id-json

MCP Tools

new-relic-get-alerts-entity

New Relic Get Alerts Entity Conditions Entity

read-only idempotent
new-relic-put-alerts-entity

New Relic Put Alerts Entity Conditions Entity

idempotent
new-relic-delete-alerts-entity

New Relic Delete Alerts Entity Conditions Entity

idempotent

Capability Spec

new-relic-entity.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: New Relic — Entity
  description: 'New Relic — Entity. 3 operations. Lead operation: New Relic Get Alerts Entity Conditions Entity. Self-contained
    Naftiko capability covering one New Relic business surface.'
  tags:
  - New Relic
  - Entity
  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-entity
    baseUri: https://api.newrelic.com/v2
    description: New Relic — Entity business capability. Self-contained, no shared references.
    resources:
    - name: alerts_entity_conditions-entity_id}.json
      path: /alerts_entity_conditions/{entity_id}.json
      operations:
      - name: getalertsentityconditionsentityid
        method: GET
        description: New Relic Get Alerts Entity Conditions Entity
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: entity_id
          in: path
          type: integer
          description: Entity ID
          required: true
        - name: entity_type
          in: query
          type: string
          description: Entity Type
          required: true
      - name: putalertsentityconditionsentityid
        method: PUT
        description: New Relic Put Alerts Entity Conditions Entity
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: entity_id
          in: path
          type: integer
          description: Entity to add
          required: true
        - name: entity_type
          in: query
          type: string
          description: Entity Type
          required: true
        - name: condition_id
          in: query
          type: integer
          description: Alerts condition ID
          required: true
      - name: deletealertsentityconditionsentityid
        method: DELETE
        description: New Relic Delete Alerts Entity Conditions Entity
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: entity_id
          in: path
          type: integer
          description: Entity to remove
          required: true
        - name: entity_type
          in: query
          type: string
          description: Entity Type
          required: true
        - name: condition_id
          in: query
          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-entity-rest
    port: 8080
    description: REST adapter for New Relic — Entity. One Spectral-compliant resource per consumed operation, prefixed with
      /v1.
    resources:
    - path: /v1/alerts-entity-conditions/entity-id-json
      name: alerts-entity-conditions-entity-id-json
      description: REST surface for alerts_entity_conditions-entity_id}.json.
      operations:
      - method: GET
        name: getalertsentityconditionsentityid
        description: New Relic Get Alerts Entity Conditions Entity
        call: new-relic-entity.getalertsentityconditionsentityid
        with:
          entity_id: rest.entity_id
          entity_type: rest.entity_type
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: putalertsentityconditionsentityid
        description: New Relic Put Alerts Entity Conditions Entity
        call: new-relic-entity.putalertsentityconditionsentityid
        with:
          entity_id: rest.entity_id
          entity_type: rest.entity_type
          condition_id: rest.condition_id
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletealertsentityconditionsentityid
        description: New Relic Delete Alerts Entity Conditions Entity
        call: new-relic-entity.deletealertsentityconditionsentityid
        with:
          entity_id: rest.entity_id
          entity_type: rest.entity_type
          condition_id: rest.condition_id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: new-relic-entity-mcp
    port: 9090
    transport: http
    description: MCP adapter for New Relic — Entity. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: new-relic-get-alerts-entity
      description: New Relic Get Alerts Entity Conditions Entity
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: new-relic-entity.getalertsentityconditionsentityid
      with:
        entity_id: tools.entity_id
        entity_type: tools.entity_type
      outputParameters:
      - type: object
        mapping: $.
    - name: new-relic-put-alerts-entity
      description: New Relic Put Alerts Entity Conditions Entity
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: new-relic-entity.putalertsentityconditionsentityid
      with:
        entity_id: tools.entity_id
        entity_type: tools.entity_type
        condition_id: tools.condition_id
      outputParameters:
      - type: object
        mapping: $.
    - name: new-relic-delete-alerts-entity
      description: New Relic Delete Alerts Entity Conditions Entity
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: new-relic-entity.deletealertsentityconditionsentityid
      with:
        entity_id: tools.entity_id
        entity_type: tools.entity_type
        condition_id: tools.condition_id
      outputParameters:
      - type: object
        mapping: $.