Shopify · Capability

Shopify Admin REST API — Locations

Shopify Admin REST API — Locations. 3 operations. Lead operation: Shopify Retrieve a list of locations. Self-contained Naftiko capability covering one Shopify business surface.

Run with Naftiko ShopifyLocations

What You Can Do

GET
Listlocations — Shopify Retrieve a list of locations
/v1/locations-json
GET
Getlocationcount — Shopify Retrieve a count of locations
/v1/locations/count-json
GET
Getlocation — Shopify Retrieve a single location
/v1/locations/location-id-json

MCP Tools

shopify-retrieve-list-locations

Shopify Retrieve a list of locations

read-only idempotent
shopify-retrieve-count-locations

Shopify Retrieve a count of locations

read-only idempotent
shopify-retrieve-single-location

Shopify Retrieve a single location

read-only idempotent

Capability Spec

admin-rest-locations.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Shopify Admin REST API — Locations
  description: 'Shopify Admin REST API — Locations. 3 operations. Lead operation: Shopify Retrieve a list of locations. Self-contained
    Naftiko capability covering one Shopify business surface.'
  tags:
  - Shopify
  - Locations
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SHOPIFY_API_KEY: SHOPIFY_API_KEY
capability:
  consumes:
  - type: http
    namespace: admin-rest-locations
    baseUri: https://{store}.myshopify.com/admin/api/2025-01
    description: Shopify Admin REST API — Locations business capability. Self-contained, no shared references.
    resources:
    - name: locations.json
      path: /locations.json
      operations:
      - name: listlocations
        method: GET
        description: Shopify Retrieve a list of locations
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: locations-count.json
      path: /locations/count.json
      operations:
      - name: getlocationcount
        method: GET
        description: Shopify Retrieve a count of locations
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: locations-location_id}.json
      path: /locations/{location_id}.json
      operations:
      - name: getlocation
        method: GET
        description: Shopify Retrieve a single location
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: location_id
          in: path
          type: integer
          description: The ID of the location
          required: true
    authentication:
      type: apikey
      key: X-Shopify-Access-Token
      value: '{{env.SHOPIFY_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: admin-rest-locations-rest
    port: 8080
    description: REST adapter for Shopify Admin REST API — Locations. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/locations-json
      name: locations-json
      description: REST surface for locations.json.
      operations:
      - method: GET
        name: listlocations
        description: Shopify Retrieve a list of locations
        call: admin-rest-locations.listlocations
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/locations/count-json
      name: locations-count-json
      description: REST surface for locations-count.json.
      operations:
      - method: GET
        name: getlocationcount
        description: Shopify Retrieve a count of locations
        call: admin-rest-locations.getlocationcount
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/locations/location-id-json
      name: locations-location-id-json
      description: REST surface for locations-location_id}.json.
      operations:
      - method: GET
        name: getlocation
        description: Shopify Retrieve a single location
        call: admin-rest-locations.getlocation
        with:
          location_id: rest.location_id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: admin-rest-locations-mcp
    port: 9090
    transport: http
    description: MCP adapter for Shopify Admin REST API — Locations. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: shopify-retrieve-list-locations
      description: Shopify Retrieve a list of locations
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: admin-rest-locations.listlocations
      outputParameters:
      - type: object
        mapping: $.
    - name: shopify-retrieve-count-locations
      description: Shopify Retrieve a count of locations
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: admin-rest-locations.getlocationcount
      outputParameters:
      - type: object
        mapping: $.
    - name: shopify-retrieve-single-location
      description: Shopify Retrieve a single location
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: admin-rest-locations.getlocation
      with:
        location_id: tools.location_id
      outputParameters:
      - type: object
        mapping: $.