Holiday API · Capability

Holiday API — Countries

Holiday API — Countries. 1 operation. Lead operation: List Countries. Self-contained Naftiko capability for retrieving supported countries and their subdivisions.

Run with Naftiko HolidayAPICountriesReference Data

What You Can Do

GET
Listcountries — List supported countries.
/v1/countries

MCP Tools

list-countries

List countries supported by Holiday API.

read-only idempotent

Capability Spec

holidays-countries.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Holiday API — Countries
  description: 'Holiday API — Countries. 1 operation. Lead operation: List Countries. Self-contained Naftiko capability for retrieving supported countries and their subdivisions.'
  tags:
    - HolidayAPI
    - Countries
    - Reference Data
  created: '2026-05-29'
  modified: '2026-05-29'
binds:
  - namespace: env
    keys:
      HOLIDAYAPI_KEY: HOLIDAYAPI_KEY
capability:
  consumes:
    - type: http
      namespace: holidays-countries
      baseUri: https://holidayapi.com
      description: 'Holiday API — Countries business capability.'
      resources:
        - name: countries
          path: /v1/countries
          operations:
            - name: listCountries
              method: GET
              description: List supported countries with their codes, languages, currencies, and subdivisions.
              inputParameters:
                - name: key
                  in: query
                  type: string
                  value: '{{env.HOLIDAYAPI_KEY}}'
                  required: true
                - name: country
                  in: query
                  type: string
                - name: search
                  in: query
                  type: string
                - name: public
                  in: query
                  type: boolean
              outputRawFormat: json
              outputParameters:
                - name: result
                  type: object
                  value: $.
  exposes:
    - type: rest
      namespace: holidays-countries-rest
      port: 8080
      description: REST adapter for Holiday API — Countries.
      resources:
        - path: /v1/countries
          name: countries
          description: REST surface for countries.
          operations:
            - method: GET
              name: listCountries
              description: List supported countries.
              call: holidays-countries.listCountries
              outputParameters:
                - type: object
                  mapping: $.
    - type: mcp
      namespace: holidays-countries-mcp
      port: 9090
      transport: http
      description: MCP adapter for Holiday API — Countries.
      tools:
        - name: list-countries
          description: List countries supported by Holiday API.
          hints:
            readOnly: true
            destructive: false
            idempotent: true
          call: holidays-countries.listCountries
          outputParameters:
            - type: object
              mapping: $.