naftiko: 1.0.0-alpha2 info: label: Metabase API — Datasets description: 'Metabase API — Datasets. 1 operations. Lead operation: Execute an ad-hoc query. Self-contained Naftiko capability covering one Metabase business surface.' tags: - Metabase - Datasets created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: METABASE_API_KEY: METABASE_API_KEY capability: consumes: - type: http namespace: metabase-datasets baseUri: https://your-metabase-instance.com/api description: Metabase API — Datasets business capability. Self-contained, no shared references. resources: - name: dataset path: /dataset operations: - name: post method: POST description: Execute an ad-hoc query outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true authentication: type: apikey key: x-api-key value: '{{env.METABASE_API_KEY}}' placement: header exposes: - type: rest namespace: metabase-datasets-rest port: 8080 description: REST adapter for Metabase API — Datasets. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/dataset name: dataset description: REST surface for dataset. operations: - method: POST name: post description: Execute an ad-hoc query call: metabase-datasets.post with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: metabase-datasets-mcp port: 9090 transport: http description: MCP adapter for Metabase API — Datasets. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: execute-ad-hoc-query description: Execute an ad-hoc query hints: readOnly: true destructive: false idempotent: false call: metabase-datasets.post with: body: tools.body outputParameters: - type: object mapping: $.