New Relic · Capability

New Relic — Keys

New Relic — Keys. 2 operations. Lead operation: New Relic Get Key Transactions. Self-contained Naftiko capability covering one New Relic business surface.

Run with Naftiko New RelicKeys

What You Can Do

GET
Getkeytransactions — New Relic Get Key Transactions
/v1/key-transactions-json
GET
Getkeytransactionsid — New Relic Get Key Transactions
/v1/key-transactions/id-json

MCP Tools

new-relic-get-key-transactions

New Relic Get Key Transactions

read-only idempotent
new-relic-get-key-transactions-2

New Relic Get Key Transactions

read-only idempotent

Capability Spec

new-relic-keys.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: New Relic — Keys
  description: 'New Relic — Keys. 2 operations. Lead operation: New Relic Get Key Transactions. Self-contained Naftiko capability
    covering one New Relic business surface.'
  tags:
  - New Relic
  - Keys
  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-keys
    baseUri: https://api.newrelic.com/v2
    description: New Relic — Keys business capability. Self-contained, no shared references.
    resources:
    - name: key_transactions.json
      path: /key_transactions.json
      operations:
      - name: getkeytransactions
        method: GET
        description: New Relic Get Key Transactions
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: filter[name]
          in: query
          type: string
          description: Filter by name
        - name: filter[ids]
          in: query
          type: array
          description: Filter by policy IDs
        - name: page
          in: query
          type: integer
          description: Pagination index
    - name: key_transactions-id}.json
      path: /key_transactions/{id}.json
      operations:
      - name: getkeytransactionsid
        method: GET
        description: New Relic Get Key Transactions
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: integer
          description: Key transaction ID
          required: true
    authentication:
      type: apikey
      key: Api-Key
      value: '{{env.NEW_RELIC_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: new-relic-keys-rest
    port: 8080
    description: REST adapter for New Relic — Keys. One Spectral-compliant resource per consumed operation, prefixed with
      /v1.
    resources:
    - path: /v1/key-transactions-json
      name: key-transactions-json
      description: REST surface for key_transactions.json.
      operations:
      - method: GET
        name: getkeytransactions
        description: New Relic Get Key Transactions
        call: new-relic-keys.getkeytransactions
        with:
          filter[name]: rest.filter[name]
          filter[ids]: rest.filter[ids]
          page: rest.page
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/key-transactions/id-json
      name: key-transactions-id-json
      description: REST surface for key_transactions-id}.json.
      operations:
      - method: GET
        name: getkeytransactionsid
        description: New Relic Get Key Transactions
        call: new-relic-keys.getkeytransactionsid
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: new-relic-keys-mcp
    port: 9090
    transport: http
    description: MCP adapter for New Relic — Keys. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: new-relic-get-key-transactions
      description: New Relic Get Key Transactions
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: new-relic-keys.getkeytransactions
      with:
        filter[name]: tools.filter[name]
        filter[ids]: tools.filter[ids]
        page: tools.page
      outputParameters:
      - type: object
        mapping: $.
    - name: new-relic-get-key-transactions-2
      description: New Relic Get Key Transactions
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: new-relic-keys.getkeytransactionsid
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.