Samsung · Capability

Samsung SmartThings API — Locations

Samsung SmartThings API — Locations. 7 operations. Lead operation: List Locations. Self-contained Naftiko capability covering one Samsung business surface.

Run with Naftiko SamsungLocations

What You Can Do

GET
Listlocations — List Locations
/v1/locations
POST
Createlocation — Create Location
/v1/locations
GET
Getlocation — Get Location
/v1/locations/{locationid}
PUT
Updatelocation — Update Location
/v1/locations/{locationid}
DELETE
Deletelocation — Delete Location
/v1/locations/{locationid}
GET
Listrooms — List Rooms
/v1/locations/{locationid}/rooms
POST
Createroom — Create Room
/v1/locations/{locationid}/rooms

MCP Tools

list-locations

List Locations

read-only idempotent
create-location

Create Location

get-location

Get Location

read-only idempotent
update-location

Update Location

idempotent
delete-location

Delete Location

idempotent
list-rooms

List Rooms

read-only idempotent
create-room

Create Room

Capability Spec

smartthings-locations.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Samsung SmartThings API — Locations
  description: 'Samsung SmartThings API — Locations. 7 operations. Lead operation: List Locations. Self-contained Naftiko
    capability covering one Samsung business surface.'
  tags:
  - Samsung
  - Locations
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SAMSUNG_API_KEY: SAMSUNG_API_KEY
capability:
  consumes:
  - type: http
    namespace: smartthings-locations
    baseUri: https://api.smartthings.com/v1
    description: Samsung SmartThings API — Locations business capability. Self-contained, no shared references.
    resources:
    - name: locations
      path: /locations
      operations:
      - name: listlocations
        method: GET
        description: List Locations
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: pageToken
          in: query
          type: string
          description: Pagination cursor.
      - name: createlocation
        method: POST
        description: Create Location
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: locations-locationId
      path: /locations/{locationId}
      operations:
      - name: getlocation
        method: GET
        description: Get Location
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updatelocation
        method: PUT
        description: Update Location
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deletelocation
        method: DELETE
        description: Delete Location
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: locations-locationId-rooms
      path: /locations/{locationId}/rooms
      operations:
      - name: listrooms
        method: GET
        description: List Rooms
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createroom
        method: POST
        description: Create Room
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.SAMSUNG_API_KEY}}'
  exposes:
  - type: rest
    namespace: smartthings-locations-rest
    port: 8080
    description: REST adapter for Samsung SmartThings API — Locations. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/locations
      name: locations
      description: REST surface for locations.
      operations:
      - method: GET
        name: listlocations
        description: List Locations
        call: smartthings-locations.listlocations
        with:
          pageToken: rest.pageToken
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createlocation
        description: Create Location
        call: smartthings-locations.createlocation
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/locations/{locationid}
      name: locations-locationid
      description: REST surface for locations-locationId.
      operations:
      - method: GET
        name: getlocation
        description: Get Location
        call: smartthings-locations.getlocation
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatelocation
        description: Update Location
        call: smartthings-locations.updatelocation
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletelocation
        description: Delete Location
        call: smartthings-locations.deletelocation
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/locations/{locationid}/rooms
      name: locations-locationid-rooms
      description: REST surface for locations-locationId-rooms.
      operations:
      - method: GET
        name: listrooms
        description: List Rooms
        call: smartthings-locations.listrooms
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createroom
        description: Create Room
        call: smartthings-locations.createroom
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: smartthings-locations-mcp
    port: 9090
    transport: http
    description: MCP adapter for Samsung SmartThings API — Locations. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: list-locations
      description: List Locations
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: smartthings-locations.listlocations
      with:
        pageToken: tools.pageToken
      outputParameters:
      - type: object
        mapping: $.
    - name: create-location
      description: Create Location
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: smartthings-locations.createlocation
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-location
      description: Get Location
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: smartthings-locations.getlocation
      outputParameters:
      - type: object
        mapping: $.
    - name: update-location
      description: Update Location
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: smartthings-locations.updatelocation
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-location
      description: Delete Location
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: smartthings-locations.deletelocation
      outputParameters:
      - type: object
        mapping: $.
    - name: list-rooms
      description: List Rooms
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: smartthings-locations.listrooms
      outputParameters:
      - type: object
        mapping: $.
    - name: create-room
      description: Create Room
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: smartthings-locations.createroom
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.