Mews · Capability

Connector API — Resources

Connector API — Resources. 3 operations. Lead operation: Get all resources. Self-contained Naftiko capability covering one Mews business surface.

Run with Naftiko MewsResources

What You Can Do

POST
Resourcesgetall — Get all resources
/v1/api/connector/v1/resources/getall
POST
Resourcesgetoccupancystate — Get resources' occupancy state
/v1/api/connector/v1/resources/getoccupancystate
POST
Resourcesupdate — Update resources
/v1/api/connector/v1/resources/update

MCP Tools

get-all-resources

Get all resources

read-only
get-resources-occupancy-state

Get resources' occupancy state

read-only
update-resources

Update resources

Capability Spec

connector-resources.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Connector API — Resources
  description: 'Connector API — Resources. 3 operations. Lead operation: Get all resources. Self-contained Naftiko capability
    covering one Mews business surface.'
  tags:
  - Mews
  - Resources
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    MEWS_API_KEY: MEWS_API_KEY
capability:
  consumes:
  - type: http
    namespace: connector-resources
    baseUri: https://api.mews.com
    description: Connector API — Resources business capability. Self-contained, no shared references.
    resources:
    - name: api-connector-v1-resources-getAll
      path: /api/connector/v1/resources/getAll
      operations:
      - name: resourcesgetall
        method: POST
        description: Get all resources
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-connector-v1-resources-getOccupancyState
      path: /api/connector/v1/resources/getOccupancyState
      operations:
      - name: resourcesgetoccupancystate
        method: POST
        description: Get resources' occupancy state
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-connector-v1-resources-update
      path: /api/connector/v1/resources/update
      operations:
      - name: resourcesupdate
        method: POST
        description: Update resources
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
  exposes:
  - type: rest
    namespace: connector-resources-rest
    port: 8080
    description: REST adapter for Connector API — Resources. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/api/connector/v1/resources/getall
      name: api-connector-v1-resources-getall
      description: REST surface for api-connector-v1-resources-getAll.
      operations:
      - method: POST
        name: resourcesgetall
        description: Get all resources
        call: connector-resources.resourcesgetall
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/connector/v1/resources/getoccupancystate
      name: api-connector-v1-resources-getoccupancystate
      description: REST surface for api-connector-v1-resources-getOccupancyState.
      operations:
      - method: POST
        name: resourcesgetoccupancystate
        description: Get resources' occupancy state
        call: connector-resources.resourcesgetoccupancystate
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/connector/v1/resources/update
      name: api-connector-v1-resources-update
      description: REST surface for api-connector-v1-resources-update.
      operations:
      - method: POST
        name: resourcesupdate
        description: Update resources
        call: connector-resources.resourcesupdate
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: connector-resources-mcp
    port: 9090
    transport: http
    description: MCP adapter for Connector API — Resources. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: get-all-resources
      description: Get all resources
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: connector-resources.resourcesgetall
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-resources-occupancy-state
      description: Get resources' occupancy state
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: connector-resources.resourcesgetoccupancystate
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: update-resources
      description: Update resources
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: connector-resources.resourcesupdate
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.