Datadog · Capability

Datadog API — Budget

Datadog API — Budget. 3 operations. Lead operation: Datadog Create or Update a Budget. Self-contained Naftiko capability covering one Datadog business surface.

Run with Naftiko DatadogBudget

What You Can Do

PUT
Upsertbudget — Datadog Create or Update a Budget
/v1/api/v2/cost/budget
DELETE
Deletebudget — Datadog Delete a Budget
/v1/api/v2/cost/budget/{budget-id}
GET
Getbudget — Datadog Get a Budget
/v1/api/v2/cost/budget/{budget-id}

MCP Tools

datadog-create-update-budget

Datadog Create or Update a Budget

idempotent
datadog-delete-budget

Datadog Delete a Budget

idempotent
datadog-get-budget

Datadog Get a Budget

read-only idempotent

Capability Spec

datadog-budget.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Datadog API — Budget
  description: 'Datadog API — Budget. 3 operations. Lead operation: Datadog Create or Update a Budget. Self-contained Naftiko
    capability covering one Datadog business surface.'
  tags:
  - Datadog
  - Budget
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    DATADOG_API_KEY: DATADOG_API_KEY
capability:
  consumes:
  - type: http
    namespace: datadog-budget
    baseUri: https://{subdomain}.{site}
    description: Datadog API — Budget business capability. Self-contained, no shared references.
    resources:
    - name: api-v2-cost-budget
      path: /api/v2/cost/budget
      operations:
      - name: upsertbudget
        method: PUT
        description: Datadog Create or Update a Budget
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-v2-cost-budget-budget_id
      path: /api/v2/cost/budget/{budget_id}
      operations:
      - name: deletebudget
        method: DELETE
        description: Datadog Delete a Budget
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: getbudget
        method: GET
        description: Datadog Get a Budget
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.DATADOG_API_KEY}}'
  exposes:
  - type: rest
    namespace: datadog-budget-rest
    port: 8080
    description: REST adapter for Datadog API — Budget. One Spectral-compliant resource per consumed operation, prefixed with
      /v1.
    resources:
    - path: /v1/api/v2/cost/budget
      name: api-v2-cost-budget
      description: REST surface for api-v2-cost-budget.
      operations:
      - method: PUT
        name: upsertbudget
        description: Datadog Create or Update a Budget
        call: datadog-budget.upsertbudget
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v2/cost/budget/{budget-id}
      name: api-v2-cost-budget-budget-id
      description: REST surface for api-v2-cost-budget-budget_id.
      operations:
      - method: DELETE
        name: deletebudget
        description: Datadog Delete a Budget
        call: datadog-budget.deletebudget
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: getbudget
        description: Datadog Get a Budget
        call: datadog-budget.getbudget
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: datadog-budget-mcp
    port: 9090
    transport: http
    description: MCP adapter for Datadog API — Budget. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: datadog-create-update-budget
      description: Datadog Create or Update a Budget
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: datadog-budget.upsertbudget
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: datadog-delete-budget
      description: Datadog Delete a Budget
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: datadog-budget.deletebudget
      outputParameters:
      - type: object
        mapping: $.
    - name: datadog-get-budget
      description: Datadog Get a Budget
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: datadog-budget.getbudget
      outputParameters:
      - type: object
        mapping: $.