Spot · Capability

Spot Billing Engine API — Families

Spot Billing Engine API — Families. 5 operations. Lead operation: Spot Create Account Family. Self-contained Naftiko capability covering one Spot business surface.

Run with Naftiko SpotFamilies

What You Can Do

POST
Createaccountfamily — Spot Create Account Family
/v1/billingengine/family
GET
Listaccountfamilies — Spot List Account Families
/v1/billingengine/family
GET
Getaccountfamily — Spot Get Account Family
/v1/billingengine/family/{familyid}
PUT
Updateaccountfamily — Spot Update Account Family
/v1/billingengine/family/{familyid}
DELETE
Deleteaccountfamily — Spot Delete Account Family
/v1/billingengine/family/{familyid}

MCP Tools

spot-create-account-family

Spot Create Account Family

spot-list-account-families

Spot List Account Families

read-only idempotent
spot-get-account-family

Spot Get Account Family

read-only idempotent
spot-update-account-family

Spot Update Account Family

idempotent
spot-delete-account-family

Spot Delete Account Family

idempotent

Capability Spec

billing-engine-families.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Spot Billing Engine API — Families
  description: 'Spot Billing Engine API — Families. 5 operations. Lead operation: Spot Create Account Family. Self-contained
    Naftiko capability covering one Spot business surface.'
  tags:
  - Spot
  - Families
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SPOT_API_KEY: SPOT_API_KEY
capability:
  consumes:
  - type: http
    namespace: billing-engine-families
    baseUri: https://api.spotinst.io
    description: Spot Billing Engine API — Families business capability. Self-contained, no shared references.
    resources:
    - name: billingEngine-family
      path: /billingEngine/family
      operations:
      - name: createaccountfamily
        method: POST
        description: Spot Create Account Family
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: listaccountfamilies
        method: GET
        description: Spot List Account Families
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: billingEngine-family-familyId
      path: /billingEngine/family/{familyId}
      operations:
      - name: getaccountfamily
        method: GET
        description: Spot Get Account Family
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: familyId
          in: path
          type: string
          required: true
      - name: updateaccountfamily
        method: PUT
        description: Spot Update Account Family
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: familyId
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deleteaccountfamily
        method: DELETE
        description: Spot Delete Account Family
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: familyId
          in: path
          type: string
          required: true
    authentication:
      type: bearer
      token: '{{env.SPOT_API_KEY}}'
  exposes:
  - type: rest
    namespace: billing-engine-families-rest
    port: 8080
    description: REST adapter for Spot Billing Engine API — Families. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/billingengine/family
      name: billingengine-family
      description: REST surface for billingEngine-family.
      operations:
      - method: POST
        name: createaccountfamily
        description: Spot Create Account Family
        call: billing-engine-families.createaccountfamily
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: listaccountfamilies
        description: Spot List Account Families
        call: billing-engine-families.listaccountfamilies
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/billingengine/family/{familyid}
      name: billingengine-family-familyid
      description: REST surface for billingEngine-family-familyId.
      operations:
      - method: GET
        name: getaccountfamily
        description: Spot Get Account Family
        call: billing-engine-families.getaccountfamily
        with:
          familyId: rest.familyId
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updateaccountfamily
        description: Spot Update Account Family
        call: billing-engine-families.updateaccountfamily
        with:
          familyId: rest.familyId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteaccountfamily
        description: Spot Delete Account Family
        call: billing-engine-families.deleteaccountfamily
        with:
          familyId: rest.familyId
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: billing-engine-families-mcp
    port: 9090
    transport: http
    description: MCP adapter for Spot Billing Engine API — Families. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: spot-create-account-family
      description: Spot Create Account Family
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: billing-engine-families.createaccountfamily
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: spot-list-account-families
      description: Spot List Account Families
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: billing-engine-families.listaccountfamilies
      outputParameters:
      - type: object
        mapping: $.
    - name: spot-get-account-family
      description: Spot Get Account Family
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: billing-engine-families.getaccountfamily
      with:
        familyId: tools.familyId
      outputParameters:
      - type: object
        mapping: $.
    - name: spot-update-account-family
      description: Spot Update Account Family
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: billing-engine-families.updateaccountfamily
      with:
        familyId: tools.familyId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: spot-delete-account-family
      description: Spot Delete Account Family
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: billing-engine-families.deleteaccountfamily
      with:
        familyId: tools.familyId
      outputParameters:
      - type: object
        mapping: $.