naftiko: 1.0.0-alpha2 info: label: dbt Cloud Administrative API — Runs description: 'dbt Cloud Administrative API — Runs. 4 operations. Lead operation: Trigger a job run. Self-contained Naftiko capability covering one Dbt business surface.' tags: - Dbt - Runs created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: DBT_API_KEY: DBT_API_KEY capability: consumes: - type: http namespace: cloud-administrative-runs baseUri: https://cloud.getdbt.com/api/v3 description: dbt Cloud Administrative API — Runs business capability. Self-contained, no shared references. resources: - name: accounts-accountId-jobs-jobId-run path: /accounts/{accountId}/jobs/{jobId}/run/ operations: - name: triggerjobrun method: POST description: Trigger a job run outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: accountId in: path type: integer required: true - name: jobId in: path type: integer required: true - name: accounts-accountId-runs path: /accounts/{accountId}/runs/ operations: - name: listruns method: GET description: List runs outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: accountId in: path type: integer required: true - name: accounts-accountId-runs-runId path: /accounts/{accountId}/runs/{runId}/ operations: - name: getrun method: GET description: Get a run outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: accountId in: path type: integer required: true - name: runId in: path type: integer required: true - name: accounts-accountId-runs-runId-artifacts path: /accounts/{accountId}/runs/{runId}/artifacts/ operations: - name: listrunartifacts method: GET description: List run artifacts outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: accountId in: path type: integer required: true - name: runId in: path type: integer required: true authentication: type: bearer token: '{{env.DBT_API_KEY}}' exposes: - type: rest namespace: cloud-administrative-runs-rest port: 8080 description: REST adapter for dbt Cloud Administrative API — Runs. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/accounts/{accountid}/jobs/{jobid}/run name: accounts-accountid-jobs-jobid-run description: REST surface for accounts-accountId-jobs-jobId-run. operations: - method: POST name: triggerjobrun description: Trigger a job run call: cloud-administrative-runs.triggerjobrun with: accountId: rest.accountId jobId: rest.jobId outputParameters: - type: object mapping: $. - path: /v1/accounts/{accountid}/runs name: accounts-accountid-runs description: REST surface for accounts-accountId-runs. operations: - method: GET name: listruns description: List runs call: cloud-administrative-runs.listruns with: accountId: rest.accountId outputParameters: - type: object mapping: $. - path: /v1/accounts/{accountid}/runs/{runid} name: accounts-accountid-runs-runid description: REST surface for accounts-accountId-runs-runId. operations: - method: GET name: getrun description: Get a run call: cloud-administrative-runs.getrun with: accountId: rest.accountId runId: rest.runId outputParameters: - type: object mapping: $. - path: /v1/accounts/{accountid}/runs/{runid}/artifacts name: accounts-accountid-runs-runid-artifacts description: REST surface for accounts-accountId-runs-runId-artifacts. operations: - method: GET name: listrunartifacts description: List run artifacts call: cloud-administrative-runs.listrunartifacts with: accountId: rest.accountId runId: rest.runId outputParameters: - type: object mapping: $. - type: mcp namespace: cloud-administrative-runs-mcp port: 9090 transport: http description: MCP adapter for dbt Cloud Administrative API — Runs. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: trigger-job-run description: Trigger a job run hints: readOnly: false destructive: false idempotent: false call: cloud-administrative-runs.triggerjobrun with: accountId: tools.accountId jobId: tools.jobId outputParameters: - type: object mapping: $. - name: list-runs description: List runs hints: readOnly: true destructive: false idempotent: true call: cloud-administrative-runs.listruns with: accountId: tools.accountId outputParameters: - type: object mapping: $. - name: get-run description: Get a run hints: readOnly: true destructive: false idempotent: true call: cloud-administrative-runs.getrun with: accountId: tools.accountId runId: tools.runId outputParameters: - type: object mapping: $. - name: list-run-artifacts description: List run artifacts hints: readOnly: true destructive: false idempotent: true call: cloud-administrative-runs.listrunartifacts with: accountId: tools.accountId runId: tools.runId outputParameters: - type: object mapping: $.