Power BI · Capability

Power BI REST API — Gateways

Power BI REST API — Gateways. 3 operations. Lead operation: Power Bi List Gateways. Self-contained Naftiko capability covering one Power Bi business surface.

Run with Naftiko Power BiGateways

What You Can Do

GET
Getgateways — Power Bi List Gateways
/v1/gateways
GET
Getgateway — Power Bi Get a Gateway
/v1/gateways/{gatewayid}
GET
Getgatewaydatasources — Power Bi List Gateway Data Sources
/v1/gateways/{gatewayid}/datasources

MCP Tools

power-bi-list-gateways

Power Bi List Gateways

read-only idempotent
power-bi-get-gateway

Power Bi Get a Gateway

read-only idempotent
power-bi-list-gateway-data

Power Bi List Gateway Data Sources

read-only idempotent

Capability Spec

rest-gateways.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Power BI REST API — Gateways
  description: 'Power BI REST API — Gateways. 3 operations. Lead operation: Power Bi List Gateways. Self-contained Naftiko
    capability covering one Power Bi business surface.'
  tags:
  - Power Bi
  - Gateways
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    POWER_BI_API_KEY: POWER_BI_API_KEY
capability:
  consumes:
  - type: http
    namespace: rest-gateways
    baseUri: https://api.powerbi.com/v1.0/myorg
    description: Power BI REST API — Gateways business capability. Self-contained, no shared references.
    resources:
    - name: gateways
      path: /gateways
      operations:
      - name: getgateways
        method: GET
        description: Power Bi List Gateways
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: gateways-gatewayId
      path: /gateways/{gatewayId}
      operations:
      - name: getgateway
        method: GET
        description: Power Bi Get a Gateway
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: gateways-gatewayId-datasources
      path: /gateways/{gatewayId}/datasources
      operations:
      - name: getgatewaydatasources
        method: GET
        description: Power Bi List Gateway Data Sources
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.POWER_BI_API_KEY}}'
  exposes:
  - type: rest
    namespace: rest-gateways-rest
    port: 8080
    description: REST adapter for Power BI REST API — Gateways. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/gateways
      name: gateways
      description: REST surface for gateways.
      operations:
      - method: GET
        name: getgateways
        description: Power Bi List Gateways
        call: rest-gateways.getgateways
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/gateways/{gatewayid}
      name: gateways-gatewayid
      description: REST surface for gateways-gatewayId.
      operations:
      - method: GET
        name: getgateway
        description: Power Bi Get a Gateway
        call: rest-gateways.getgateway
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/gateways/{gatewayid}/datasources
      name: gateways-gatewayid-datasources
      description: REST surface for gateways-gatewayId-datasources.
      operations:
      - method: GET
        name: getgatewaydatasources
        description: Power Bi List Gateway Data Sources
        call: rest-gateways.getgatewaydatasources
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: rest-gateways-mcp
    port: 9090
    transport: http
    description: MCP adapter for Power BI REST API — Gateways. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: power-bi-list-gateways
      description: Power Bi List Gateways
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: rest-gateways.getgateways
      outputParameters:
      - type: object
        mapping: $.
    - name: power-bi-get-gateway
      description: Power Bi Get a Gateway
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: rest-gateways.getgateway
      outputParameters:
      - type: object
        mapping: $.
    - name: power-bi-list-gateway-data
      description: Power Bi List Gateway Data Sources
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: rest-gateways.getgatewaydatasources
      outputParameters:
      - type: object
        mapping: $.