contentstack · Capability

Contentstack Personalize Management API — Geolocation

Contentstack Personalize Management API — Geolocation. 3 operations. Lead operation: Get geolocation cities. Self-contained Naftiko capability covering one Contentstack business surface.

Run with Naftiko ContentstackGeolocation

What You Can Do

GET
Getgeocities — Get geolocation cities
/v1/geolocation/cities
GET
Getgeocountries — Get geolocation countries
/v1/geolocation/countries
GET
Getgeoregions — Get geolocation regions
/v1/geolocation/regions

MCP Tools

get-geolocation-cities

Get geolocation cities

read-only idempotent
get-geolocation-countries

Get geolocation countries

read-only idempotent
get-geolocation-regions

Get geolocation regions

read-only idempotent

Capability Spec

personalize-management-geolocation.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Contentstack Personalize Management API — Geolocation
  description: 'Contentstack Personalize Management API — Geolocation. 3 operations. Lead operation: Get geolocation cities.
    Self-contained Naftiko capability covering one Contentstack business surface.'
  tags:
  - Contentstack
  - Geolocation
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    CONTENTSTACK_API_KEY: CONTENTSTACK_API_KEY
capability:
  consumes:
  - type: http
    namespace: personalize-management-geolocation
    baseUri: https://personalize-api.contentstack.com
    description: Contentstack Personalize Management API — Geolocation business capability. Self-contained, no shared references.
    resources:
    - name: geolocation-cities
      path: /geolocation/cities
      operations:
      - name: getgeocities
        method: GET
        description: Get geolocation cities
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: geolocation-countries
      path: /geolocation/countries
      operations:
      - name: getgeocountries
        method: GET
        description: Get geolocation countries
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: geolocation-regions
      path: /geolocation/regions
      operations:
      - name: getgeoregions
        method: GET
        description: Get geolocation regions
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.CONTENTSTACK_API_KEY}}'
  exposes:
  - type: rest
    namespace: personalize-management-geolocation-rest
    port: 8080
    description: REST adapter for Contentstack Personalize Management API — Geolocation. One Spectral-compliant resource per
      consumed operation, prefixed with /v1.
    resources:
    - path: /v1/geolocation/cities
      name: geolocation-cities
      description: REST surface for geolocation-cities.
      operations:
      - method: GET
        name: getgeocities
        description: Get geolocation cities
        call: personalize-management-geolocation.getgeocities
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/geolocation/countries
      name: geolocation-countries
      description: REST surface for geolocation-countries.
      operations:
      - method: GET
        name: getgeocountries
        description: Get geolocation countries
        call: personalize-management-geolocation.getgeocountries
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/geolocation/regions
      name: geolocation-regions
      description: REST surface for geolocation-regions.
      operations:
      - method: GET
        name: getgeoregions
        description: Get geolocation regions
        call: personalize-management-geolocation.getgeoregions
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: personalize-management-geolocation-mcp
    port: 9090
    transport: http
    description: MCP adapter for Contentstack Personalize Management API — Geolocation. One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: get-geolocation-cities
      description: Get geolocation cities
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: personalize-management-geolocation.getgeocities
      outputParameters:
      - type: object
        mapping: $.
    - name: get-geolocation-countries
      description: Get geolocation countries
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: personalize-management-geolocation.getgeocountries
      outputParameters:
      - type: object
        mapping: $.
    - name: get-geolocation-regions
      description: Get geolocation regions
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: personalize-management-geolocation.getgeoregions
      outputParameters:
      - type: object
        mapping: $.