naftiko: 1.0.0-alpha2 info: label: Blockfrost.io ~ API Documentation — Metrics description: 'Blockfrost.io ~ API Documentation — Metrics. 2 operations. Lead operation: Blockfrost Usage Metrics. Self-contained Naftiko capability covering one Blockfrost business surface.' tags: - Blockfrost - Metrics created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: BLOCKFROST_API_KEY: BLOCKFROST_API_KEY capability: consumes: - type: http namespace: blockfrost-metrics baseUri: https://cardano-mainnet.blockfrost.io/api/v0 description: Blockfrost.io ~ API Documentation — Metrics business capability. Self-contained, no shared references. resources: - name: metrics path: /metrics operations: - name: get method: GET description: Blockfrost Usage Metrics outputRawFormat: json outputParameters: - name: result type: object value: $. - name: metrics-endpoints path: /metrics/endpoints operations: - name: get method: GET description: Blockfrost Endpoint Usage Metrics outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: apikey key: project_id value: '{{env.BLOCKFROST_API_KEY}}' placement: header exposes: - type: rest namespace: blockfrost-metrics-rest port: 8080 description: REST adapter for Blockfrost.io ~ API Documentation — Metrics. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/metrics name: metrics description: REST surface for metrics. operations: - method: GET name: get description: Blockfrost Usage Metrics call: blockfrost-metrics.get outputParameters: - type: object mapping: $. - path: /v1/metrics/endpoints name: metrics-endpoints description: REST surface for metrics-endpoints. operations: - method: GET name: get description: Blockfrost Endpoint Usage Metrics call: blockfrost-metrics.get outputParameters: - type: object mapping: $. - type: mcp namespace: blockfrost-metrics-mcp port: 9090 transport: http description: MCP adapter for Blockfrost.io ~ API Documentation — Metrics. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: blockfrost-usage-metrics description: Blockfrost Usage Metrics hints: readOnly: true destructive: false idempotent: true call: blockfrost-metrics.get outputParameters: - type: object mapping: $. - name: blockfrost-endpoint-usage-metrics description: Blockfrost Endpoint Usage Metrics hints: readOnly: true destructive: false idempotent: true call: blockfrost-metrics.get outputParameters: - type: object mapping: $.