NetworkCalc · Capability

NetworkCalc API — Subnet Calculator

NetworkCalc API — Subnet Calculator. 2 operations. Lead operation: Subnet calculator (IPv4). Self-contained Naftiko capability covering one Networkcalc business surface.

Run with Naftiko NetworkcalcSubnet Calculator

What You Can Do

GET
Get — Subnet calculator (IPv4)
/v1/ip/{address}
GET
Get — Subnet calculator (IPv6)
/v1/ipv6/{address}

MCP Tools

subnet-calculator-ipv4

Subnet calculator (IPv4)

read-only idempotent
subnet-calculator-ipv6

Subnet calculator (IPv6)

read-only idempotent

Capability Spec

networkcalc-subnet-calculator.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: NetworkCalc API — Subnet Calculator
  description: 'NetworkCalc API — Subnet Calculator. 2 operations. Lead operation: Subnet calculator (IPv4). Self-contained
    Naftiko capability covering one Networkcalc business surface.'
  tags:
  - Networkcalc
  - Subnet Calculator
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    NETWORKCALC_API_KEY: NETWORKCALC_API_KEY
capability:
  consumes:
  - type: http
    namespace: networkcalc-subnet-calculator
    baseUri: https://networkcalc.com/api
    description: NetworkCalc API — Subnet Calculator business capability. Self-contained, no shared references.
    resources:
    - name: ip-address
      path: /ip/{address}
      operations:
      - name: get
        method: GET
        description: Subnet calculator (IPv4)
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: address
          in: path
          type: string
          description: IPv4 address with CIDR mask, for example 192.168.1.0/24.
          required: true
    - name: ipv6-address
      path: /ipv6/{address}
      operations:
      - name: get
        method: GET
        description: Subnet calculator (IPv6)
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: address
          in: path
          type: string
          required: true
  exposes:
  - type: rest
    namespace: networkcalc-subnet-calculator-rest
    port: 8080
    description: REST adapter for NetworkCalc API — Subnet Calculator. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/ip/{address}
      name: ip-address
      description: REST surface for ip-address.
      operations:
      - method: GET
        name: get
        description: Subnet calculator (IPv4)
        call: networkcalc-subnet-calculator.get
        with:
          address: rest.address
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/ipv6/{address}
      name: ipv6-address
      description: REST surface for ipv6-address.
      operations:
      - method: GET
        name: get
        description: Subnet calculator (IPv6)
        call: networkcalc-subnet-calculator.get
        with:
          address: rest.address
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: networkcalc-subnet-calculator-mcp
    port: 9090
    transport: http
    description: MCP adapter for NetworkCalc API — Subnet Calculator. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: subnet-calculator-ipv4
      description: Subnet calculator (IPv4)
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: networkcalc-subnet-calculator.get
      with:
        address: tools.address
      outputParameters:
      - type: object
        mapping: $.
    - name: subnet-calculator-ipv6
      description: Subnet calculator (IPv6)
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: networkcalc-subnet-calculator.get
      with:
        address: tools.address
      outputParameters:
      - type: object
        mapping: $.