naftiko: 1.0.0-alpha2 info: label: Smithsonian Open Access API — Metrics description: 'Smithsonian Open Access API — Metrics. 1 operations. Lead operation: Get Collection Metrics. Self-contained Naftiko capability covering one Smithsonian Institution business surface.' tags: - Smithsonian Institution - Metrics created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: SMITHSONIAN_INSTITUTION_API_KEY: SMITHSONIAN_INSTITUTION_API_KEY capability: consumes: - type: http namespace: smithsonian-open-access-metrics baseUri: https://edan.si.edu/openaccess description: Smithsonian Open Access API — Metrics business capability. Self-contained, no shared references. resources: - name: api-metrics-stats path: /api/metrics/stats operations: - name: getmetricsstats method: GET description: Get Collection Metrics outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: api_key in: query type: string description: API key obtained from api.data.gov required: true authentication: type: apikey key: api_key value: '{{env.SMITHSONIAN_INSTITUTION_API_KEY}}' placement: query exposes: - type: rest namespace: smithsonian-open-access-metrics-rest port: 8080 description: REST adapter for Smithsonian Open Access API — Metrics. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/api/metrics/stats name: api-metrics-stats description: REST surface for api-metrics-stats. operations: - method: GET name: getmetricsstats description: Get Collection Metrics call: smithsonian-open-access-metrics.getmetricsstats with: api_key: rest.api_key outputParameters: - type: object mapping: $. - type: mcp namespace: smithsonian-open-access-metrics-mcp port: 9090 transport: http description: MCP adapter for Smithsonian Open Access API — Metrics. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-collection-metrics description: Get Collection Metrics hints: readOnly: true destructive: false idempotent: true call: smithsonian-open-access-metrics.getmetricsstats with: api_key: tools.api_key outputParameters: - type: object mapping: $.