NGINX · Capability

NGINX Plus REST API — Connections

NGINX Plus REST API — Connections. 2 operations. Lead operation: NGINX Return Client Connections Statistics. Self-contained Naftiko capability covering one Nginx business surface.

Run with Naftiko NginxConnections

What You Can Do

GET
Getconnections — NGINX Return Client Connections Statistics
/v1/connections
DELETE
Deleteconnections — NGINX Reset Client Connections Statistics
/v1/connections

MCP Tools

nginx-return-client-connections-statistics

NGINX Return Client Connections Statistics

read-only idempotent
nginx-reset-client-connections-statistics

NGINX Reset Client Connections Statistics

idempotent

Capability Spec

plus-http-connections.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: NGINX Plus REST API — Connections
  description: 'NGINX Plus REST API — Connections. 2 operations. Lead operation: NGINX Return Client Connections Statistics.
    Self-contained Naftiko capability covering one Nginx business surface.'
  tags:
  - Nginx
  - Connections
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    NGINX_API_KEY: NGINX_API_KEY
capability:
  consumes:
  - type: http
    namespace: plus-http-connections
    baseUri: ''
    description: NGINX Plus REST API — Connections business capability. Self-contained, no shared references.
    resources:
    - name: connections
      path: /connections
      operations:
      - name: getconnections
        method: GET
        description: NGINX Return Client Connections Statistics
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: fields
          in: query
          type: string
          description: Limits which fields of the connections statistics will be output.
      - name: deleteconnections
        method: DELETE
        description: NGINX Reset Client Connections Statistics
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
  exposes:
  - type: rest
    namespace: plus-http-connections-rest
    port: 8080
    description: REST adapter for NGINX Plus REST API — Connections. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/connections
      name: connections
      description: REST surface for connections.
      operations:
      - method: GET
        name: getconnections
        description: NGINX Return Client Connections Statistics
        call: plus-http-connections.getconnections
        with:
          fields: rest.fields
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteconnections
        description: NGINX Reset Client Connections Statistics
        call: plus-http-connections.deleteconnections
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: plus-http-connections-mcp
    port: 9090
    transport: http
    description: MCP adapter for NGINX Plus REST API — Connections. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: nginx-return-client-connections-statistics
      description: NGINX Return Client Connections Statistics
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: plus-http-connections.getconnections
      with:
        fields: tools.fields
      outputParameters:
      - type: object
        mapping: $.
    - name: nginx-reset-client-connections-statistics
      description: NGINX Reset Client Connections Statistics
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: plus-http-connections.deleteconnections
      outputParameters:
      - type: object
        mapping: $.