Datadog · Capability

Datadog API — Billing

Datadog API — Billing. 2 operations. Lead operation: Datadog Get Active Billing Dimensions for Cost Attribution. Self-contained Naftiko capability covering one Datadog business surface.

Run with Naftiko DatadogBilling

What You Can Do

GET
Getactivebillingdimensions — Datadog Get Active Billing Dimensions for Cost Attribution
/v1/api/v2/cost-by-tag/active-billing-dimensions
GET
Getbillingdimensionmapping — Datadog Get Billing Dimension Mapping for Usage Endpoints
/v1/api/v2/usage/billing-dimension-mapping

MCP Tools

datadog-get-active-billing-dimensions

Datadog Get Active Billing Dimensions for Cost Attribution

read-only idempotent
datadog-get-billing-dimension-mapping

Datadog Get Billing Dimension Mapping for Usage Endpoints

read-only idempotent

Capability Spec

datadog-billing.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Datadog API — Billing
  description: 'Datadog API — Billing. 2 operations. Lead operation: Datadog Get Active Billing Dimensions for Cost Attribution.
    Self-contained Naftiko capability covering one Datadog business surface.'
  tags:
  - Datadog
  - Billing
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    DATADOG_API_KEY: DATADOG_API_KEY
capability:
  consumes:
  - type: http
    namespace: datadog-billing
    baseUri: https://{subdomain}.{site}
    description: Datadog API — Billing business capability. Self-contained, no shared references.
    resources:
    - name: api-v2-cost_by_tag-active_billing_dimensions
      path: /api/v2/cost_by_tag/active_billing_dimensions
      operations:
      - name: getactivebillingdimensions
        method: GET
        description: Datadog Get Active Billing Dimensions for Cost Attribution
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-v2-usage-billing_dimension_mapping
      path: /api/v2/usage/billing_dimension_mapping
      operations:
      - name: getbillingdimensionmapping
        method: GET
        description: Datadog Get Billing Dimension Mapping for Usage Endpoints
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: filter[month]
          in: query
          type: string
          description: Datetime in ISO-8601 format, UTC, and for mappings beginning this month. Defaults to the current month.
        - name: filter[view]
          in: query
          type: string
          description: String to specify whether to retrieve active billing dimension mappings for the contract or for all
            available mappings. Allowed views have the string `active` o
    authentication:
      type: bearer
      token: '{{env.DATADOG_API_KEY}}'
  exposes:
  - type: rest
    namespace: datadog-billing-rest
    port: 8080
    description: REST adapter for Datadog API — Billing. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/api/v2/cost-by-tag/active-billing-dimensions
      name: api-v2-cost-by-tag-active-billing-dimensions
      description: REST surface for api-v2-cost_by_tag-active_billing_dimensions.
      operations:
      - method: GET
        name: getactivebillingdimensions
        description: Datadog Get Active Billing Dimensions for Cost Attribution
        call: datadog-billing.getactivebillingdimensions
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v2/usage/billing-dimension-mapping
      name: api-v2-usage-billing-dimension-mapping
      description: REST surface for api-v2-usage-billing_dimension_mapping.
      operations:
      - method: GET
        name: getbillingdimensionmapping
        description: Datadog Get Billing Dimension Mapping for Usage Endpoints
        call: datadog-billing.getbillingdimensionmapping
        with:
          filter[month]: rest.filter[month]
          filter[view]: rest.filter[view]
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: datadog-billing-mcp
    port: 9090
    transport: http
    description: MCP adapter for Datadog API — Billing. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: datadog-get-active-billing-dimensions
      description: Datadog Get Active Billing Dimensions for Cost Attribution
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: datadog-billing.getactivebillingdimensions
      outputParameters:
      - type: object
        mapping: $.
    - name: datadog-get-billing-dimension-mapping
      description: Datadog Get Billing Dimension Mapping for Usage Endpoints
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: datadog-billing.getbillingdimensionmapping
      with:
        filter[month]: tools.filter[month]
        filter[view]: tools.filter[view]
      outputParameters:
      - type: object
        mapping: $.