CloudZero · Capability

CloudZero API — Billing

CloudZero API — Billing. 2 operations. Lead operation: CloudZero Get billing costs. Self-contained Naftiko capability covering one Cloudzero business surface.

Run with Naftiko CloudzeroBilling

What You Can Do

POST
Getbillingcosts — CloudZero Get billing costs
/v1/v2/billing/costs
GET
Getbillingdimensions — CloudZero Get billing dimensions
/v1/v2/billing/dimensions

MCP Tools

cloudzero-get-billing-costs

CloudZero Get billing costs

read-only
cloudzero-get-billing-dimensions

CloudZero Get billing dimensions

read-only idempotent

Capability Spec

cloudzero-billing.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: CloudZero API — Billing
  description: 'CloudZero API — Billing. 2 operations. Lead operation: CloudZero Get billing costs. Self-contained Naftiko
    capability covering one Cloudzero business surface.'
  tags:
  - Cloudzero
  - Billing
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    CLOUDZERO_API_KEY: CLOUDZERO_API_KEY
capability:
  consumes:
  - type: http
    namespace: cloudzero-billing
    baseUri: https://api.cloudzero.com
    description: CloudZero API — Billing business capability. Self-contained, no shared references.
    resources:
    - name: v2-billing-costs
      path: /v2/billing/costs
      operations:
      - name: getbillingcosts
        method: POST
        description: CloudZero Get billing costs
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: v2-billing-dimensions
      path: /v2/billing/dimensions
      operations:
      - name: getbillingdimensions
        method: GET
        description: CloudZero Get billing dimensions
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: apikey
      key: Authorization
      value: '{{env.CLOUDZERO_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: cloudzero-billing-rest
    port: 8080
    description: REST adapter for CloudZero API — Billing. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/v2/billing/costs
      name: v2-billing-costs
      description: REST surface for v2-billing-costs.
      operations:
      - method: POST
        name: getbillingcosts
        description: CloudZero Get billing costs
        call: cloudzero-billing.getbillingcosts
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v2/billing/dimensions
      name: v2-billing-dimensions
      description: REST surface for v2-billing-dimensions.
      operations:
      - method: GET
        name: getbillingdimensions
        description: CloudZero Get billing dimensions
        call: cloudzero-billing.getbillingdimensions
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: cloudzero-billing-mcp
    port: 9090
    transport: http
    description: MCP adapter for CloudZero API — Billing. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: cloudzero-get-billing-costs
      description: CloudZero Get billing costs
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: cloudzero-billing.getbillingcosts
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: cloudzero-get-billing-dimensions
      description: CloudZero Get billing dimensions
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: cloudzero-billing.getbillingdimensions
      outputParameters:
      - type: object
        mapping: $.