naftiko: 1.0.0-alpha2 info: label: ExchangeRate-API — Latest Rates description: 'ExchangeRate-API — Latest Rates. 1 operation. Lead operation: Get Latest Rates. Self-contained Naftiko capability covering the latest exchange rates business surface.' tags: - ExchangeRate-API - Latest Rates created: '2026-05-29' modified: '2026-05-29' binds: - namespace: env keys: EXCHANGERATE_API_KEY: EXCHANGERATE_API_KEY capability: consumes: - type: http namespace: exchangerate-latest baseUri: https://v6.exchangerate-api.com/v6 description: ExchangeRate-API latest rates business capability. Self-contained, no shared references. resources: - name: latest path: /{api_key}/latest/{base_code} operations: - name: getLatestRates method: GET description: Get latest exchange rates for a base currency. outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: api_key in: path type: string value: '{{env.EXCHANGERATE_API_KEY}}' description: ExchangeRate-API key. - name: base_code in: path type: string description: ISO 4217 base currency code. authentication: type: none exposes: - type: rest namespace: exchangerate-latest-rest port: 8080 description: REST adapter for ExchangeRate-API Latest Rates. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/latest/{base_code} name: latest description: REST surface for latest rates. operations: - method: GET name: getLatestRates description: Get latest exchange rates for a base currency. call: exchangerate-latest.getLatestRates with: base_code: rest.base_code outputParameters: - type: object mapping: $. - type: mcp namespace: exchangerate-latest-mcp port: 9090 transport: http description: MCP adapter for ExchangeRate-API Latest Rates. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: exchangerate-get-latest-rates description: Get the latest exchange rates for a base currency. hints: readOnly: true destructive: false idempotent: true call: exchangerate-latest.getLatestRates with: base_code: tools.base_code outputParameters: - type: object mapping: $.