Vantage · Capability

Vantage Cost Management API — Costs

Vantage Cost Management API — Costs. 1 operations. Lead operation: Vantage Get Costs. Self-contained Naftiko capability covering one Vantage business surface.

Run with Naftiko VantageCosts

What You Can Do

GET
Getcosts — Vantage Get Costs
/v1/costs

MCP Tools

vantage-get-costs

Vantage Get Costs

read-only idempotent

Capability Spec

cost-management-costs.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Vantage Cost Management API — Costs
  description: 'Vantage Cost Management API — Costs. 1 operations. Lead operation: Vantage Get Costs. Self-contained Naftiko
    capability covering one Vantage business surface.'
  tags:
  - Vantage
  - Costs
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    VANTAGE_API_KEY: VANTAGE_API_KEY
capability:
  consumes:
  - type: http
    namespace: cost-management-costs
    baseUri: https://api.vantage.sh/v2
    description: Vantage Cost Management API — Costs business capability. Self-contained, no shared references.
    resources:
    - name: costs
      path: /costs
      operations:
      - name: getcosts
        method: GET
        description: Vantage Get Costs
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: cost_report_token
          in: query
          type: string
          description: The token of the Cost Report to retrieve costs for.
        - name: start_date
          in: query
          type: string
          description: The start date for the cost data (YYYY-MM-DD).
        - name: end_date
          in: query
          type: string
          description: The end date for the cost data (YYYY-MM-DD).
        - name: groupings
          in: query
          type: string
          description: Comma-separated list of groupings for cost data.
        - name: vql
          in: query
          type: string
          description: A VQL filter expression to query cost data.
    authentication:
      type: bearer
      token: '{{env.VANTAGE_API_KEY}}'
  exposes:
  - type: rest
    namespace: cost-management-costs-rest
    port: 8080
    description: REST adapter for Vantage Cost Management API — Costs. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/costs
      name: costs
      description: REST surface for costs.
      operations:
      - method: GET
        name: getcosts
        description: Vantage Get Costs
        call: cost-management-costs.getcosts
        with:
          cost_report_token: rest.cost_report_token
          start_date: rest.start_date
          end_date: rest.end_date
          groupings: rest.groupings
          vql: rest.vql
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: cost-management-costs-mcp
    port: 9090
    transport: http
    description: MCP adapter for Vantage Cost Management API — Costs. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: vantage-get-costs
      description: Vantage Get Costs
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: cost-management-costs.getcosts
      with:
        cost_report_token: tools.cost_report_token
        start_date: tools.start_date
        end_date: tools.end_date
        groupings: tools.groupings
        vql: tools.vql
      outputParameters:
      - type: object
        mapping: $.