ExchangeRate-API · Capability

ExchangeRate-API — Enriched Data

ExchangeRate-API — Enriched Data. 1 operation. Lead operation: Get Enriched Pair Data. Self-contained Naftiko capability covering enriched pair conversion with target currency metadata (Business / Volume plans).

Run with Naftiko ExchangeRate-APIEnriched Data

What You Can Do

GET
Getenrichedpair — Get the exchange rate and enriched target currency metadata.
/v1/enriched/{base_code}/{target_code}

MCP Tools

exchangerate-get-enriched-pair

Get the exchange rate plus target currency metadata (locale, name, symbol, flag).

read-only idempotent

Capability Spec

exchangerate-api-enriched-data.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: ExchangeRate-API — Enriched Data
  description: 'ExchangeRate-API — Enriched Data. 1 operation. Lead operation: Get Enriched Pair Data. Self-contained Naftiko capability covering enriched pair conversion with target currency metadata (Business / Volume plans).'
  tags:
    - ExchangeRate-API
    - Enriched Data
  created: '2026-05-29'
  modified: '2026-05-29'
binds:
  - namespace: env
    keys:
      EXCHANGERATE_API_KEY: EXCHANGERATE_API_KEY
capability:
  consumes:
    - type: http
      namespace: exchangerate-enriched
      baseUri: https://v6.exchangerate-api.com/v6
      description: ExchangeRate-API enriched data business capability. Self-contained, no shared references.
      resources:
        - name: enriched
          path: /{api_key}/enriched/{base_code}/{target_code}
          operations:
            - name: getEnrichedPair
              method: GET
              description: Get the exchange rate and enriched target currency metadata.
              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 (Business or Volume plan required).
                - name: base_code
                  in: path
                  type: string
                  description: ISO 4217 base currency code.
                - name: target_code
                  in: path
                  type: string
                  description: ISO 4217 target currency code.
      authentication:
        type: none
  exposes:
    - type: rest
      namespace: exchangerate-enriched-rest
      port: 8080
      description: REST adapter for ExchangeRate-API Enriched Data. One Spectral-compliant resource per consumed operation, prefixed with /v1.
      resources:
        - path: /v1/enriched/{base_code}/{target_code}
          name: enriched
          description: REST surface for enriched pair data.
          operations:
            - method: GET
              name: getEnrichedPair
              description: Get the exchange rate and enriched target currency metadata.
              call: exchangerate-enriched.getEnrichedPair
              with:
                base_code: rest.base_code
                target_code: rest.target_code
              outputParameters:
                - type: object
                  mapping: $.
    - type: mcp
      namespace: exchangerate-enriched-mcp
      port: 9090
      transport: http
      description: MCP adapter for ExchangeRate-API Enriched Data. One tool per consumed operation, routed inline through this capability's consumes block.
      tools:
        - name: exchangerate-get-enriched-pair
          description: Get the exchange rate plus target currency metadata (locale, name, symbol, flag).
          hints:
            readOnly: true
            destructive: false
            idempotent: true
          call: exchangerate-enriched.getEnrichedPair
          with:
            base_code: tools.base_code
            target_code: tools.target_code
          outputParameters:
            - type: object
              mapping: $.