New Relic · Capability

New Relic — Violations

New Relic — Violations. 1 operations. Lead operation: New Relic Get Alerts Violations. Self-contained Naftiko capability covering one New Relic business surface.

Run with Naftiko New RelicViolations

What You Can Do

GET
Getalertsviolations — New Relic Get Alerts Violations
/v1/alerts-violations-json

MCP Tools

new-relic-get-alerts-violations

New Relic Get Alerts Violations

read-only idempotent

Capability Spec

new-relic-violations.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: New Relic — Violations
  description: 'New Relic — Violations. 1 operations. Lead operation: New Relic Get Alerts Violations. Self-contained Naftiko
    capability covering one New Relic business surface.'
  tags:
  - New Relic
  - Violations
  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-violations
    baseUri: https://api.newrelic.com/v2
    description: New Relic — Violations business capability. Self-contained, no shared references.
    resources:
    - name: alerts_violations.json
      path: /alerts_violations.json
      operations:
      - name: getalertsviolations
        method: GET
        description: New Relic Get Alerts Violations
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: page
          in: query
          type: integer
          description: Pagination index
        - name: start_date
          in: query
          type: string
          description: Retrieve violations created after this time
        - name: end_date
          in: query
          type: string
          description: Retrieve violations created before this time
        - name: only_open
          in: query
          type: boolean
          description: Filter by open violations
    authentication:
      type: apikey
      key: Api-Key
      value: '{{env.NEW_RELIC_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: new-relic-violations-rest
    port: 8080
    description: REST adapter for New Relic — Violations. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/alerts-violations-json
      name: alerts-violations-json
      description: REST surface for alerts_violations.json.
      operations:
      - method: GET
        name: getalertsviolations
        description: New Relic Get Alerts Violations
        call: new-relic-violations.getalertsviolations
        with:
          page: rest.page
          start_date: rest.start_date
          end_date: rest.end_date
          only_open: rest.only_open
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: new-relic-violations-mcp
    port: 9090
    transport: http
    description: MCP adapter for New Relic — Violations. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: new-relic-get-alerts-violations
      description: New Relic Get Alerts Violations
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: new-relic-violations.getalertsviolations
      with:
        page: tools.page
        start_date: tools.start_date
        end_date: tools.end_date
        only_open: tools.only_open
      outputParameters:
      - type: object
        mapping: $.