OptScale · Capability

OptScale REST API — Cloud Accounts

OptScale REST API — Cloud Accounts. 4 operations. Lead operation: Get cloud account. Self-contained Naftiko capability covering one Optscale business surface.

Run with Naftiko OptscaleCloud Accounts

What You Can Do

GET
Getcloudaccount — Get cloud account
/v1/cloud-accounts/{cloud-account-id}
DELETE
Deletecloudaccount — Disconnect a cloud account
/v1/cloud-accounts/{cloud-account-id}
GET
Listcloudaccounts — List cloud accounts for an organization
/v1/organizations/{organization-id}/cloud-accounts
POST
Createcloudaccount — Create a cloud account connection
/v1/organizations/{organization-id}/cloud-accounts

MCP Tools

get-cloud-account

Get cloud account

read-only idempotent
disconnect-cloud-account

Disconnect a cloud account

idempotent
list-cloud-accounts-organization

List cloud accounts for an organization

read-only idempotent
create-cloud-account-connection

Create a cloud account connection

Capability Spec

optscale-cloud-accounts.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: OptScale REST API — Cloud Accounts
  description: 'OptScale REST API — Cloud Accounts. 4 operations. Lead operation: Get cloud account. Self-contained Naftiko
    capability covering one Optscale business surface.'
  tags:
  - Optscale
  - Cloud Accounts
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    OPTSCALE_API_KEY: OPTSCALE_API_KEY
capability:
  consumes:
  - type: http
    namespace: optscale-cloud-accounts
    baseUri: https://{host}/restapi/v2
    description: OptScale REST API — Cloud Accounts business capability. Self-contained, no shared references.
    resources:
    - name: cloud_accounts-cloud_account_id
      path: /cloud_accounts/{cloud_account_id}
      operations:
      - name: getcloudaccount
        method: GET
        description: Get cloud account
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: deletecloudaccount
        method: DELETE
        description: Disconnect a cloud account
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: organizations-organization_id-cloud_accounts
      path: /organizations/{organization_id}/cloud_accounts
      operations:
      - name: listcloudaccounts
        method: GET
        description: List cloud accounts for an organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createcloudaccount
        method: POST
        description: Create a cloud account connection
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.OPTSCALE_API_KEY}}'
  exposes:
  - type: rest
    namespace: optscale-cloud-accounts-rest
    port: 8080
    description: REST adapter for OptScale REST API — Cloud Accounts. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/cloud-accounts/{cloud-account-id}
      name: cloud-accounts-cloud-account-id
      description: REST surface for cloud_accounts-cloud_account_id.
      operations:
      - method: GET
        name: getcloudaccount
        description: Get cloud account
        call: optscale-cloud-accounts.getcloudaccount
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletecloudaccount
        description: Disconnect a cloud account
        call: optscale-cloud-accounts.deletecloudaccount
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/organizations/{organization-id}/cloud-accounts
      name: organizations-organization-id-cloud-accounts
      description: REST surface for organizations-organization_id-cloud_accounts.
      operations:
      - method: GET
        name: listcloudaccounts
        description: List cloud accounts for an organization
        call: optscale-cloud-accounts.listcloudaccounts
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createcloudaccount
        description: Create a cloud account connection
        call: optscale-cloud-accounts.createcloudaccount
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: optscale-cloud-accounts-mcp
    port: 9090
    transport: http
    description: MCP adapter for OptScale REST API — Cloud Accounts. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: get-cloud-account
      description: Get cloud account
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: optscale-cloud-accounts.getcloudaccount
      outputParameters:
      - type: object
        mapping: $.
    - name: disconnect-cloud-account
      description: Disconnect a cloud account
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: optscale-cloud-accounts.deletecloudaccount
      outputParameters:
      - type: object
        mapping: $.
    - name: list-cloud-accounts-organization
      description: List cloud accounts for an organization
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: optscale-cloud-accounts.listcloudaccounts
      outputParameters:
      - type: object
        mapping: $.
    - name: create-cloud-account-connection
      description: Create a cloud account connection
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: optscale-cloud-accounts.createcloudaccount
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.