Mews · Capability

Connector API — Restrictions

Connector API — Restrictions. 3 operations. Lead operation: Clear restrictions. Self-contained Naftiko capability covering one Mews business surface.

Run with Naftiko MewsRestrictions

What You Can Do

POST
Restrictionsclear — Clear restrictions
/v1/api/connector/v1/restrictions/clear
POST
Restrictionsgetall — Get all restrictions
/v1/api/connector/v1/restrictions/getall
POST
Restrictionsset — Set restrictions
/v1/api/connector/v1/restrictions/set

MCP Tools

clear-restrictions

Clear restrictions

get-all-restrictions

Get all restrictions

read-only
set-restrictions

Set restrictions

Capability Spec

connector-restrictions.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Connector API — Restrictions
  description: 'Connector API — Restrictions. 3 operations. Lead operation: Clear restrictions. Self-contained Naftiko capability
    covering one Mews business surface.'
  tags:
  - Mews
  - Restrictions
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    MEWS_API_KEY: MEWS_API_KEY
capability:
  consumes:
  - type: http
    namespace: connector-restrictions
    baseUri: https://api.mews.com
    description: Connector API — Restrictions business capability. Self-contained, no shared references.
    resources:
    - name: api-connector-v1-restrictions-clear
      path: /api/connector/v1/restrictions/clear
      operations:
      - name: restrictionsclear
        method: POST
        description: Clear restrictions
        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-restrictions-getAll
      path: /api/connector/v1/restrictions/getAll
      operations:
      - name: restrictionsgetall
        method: POST
        description: Get all restrictions
        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-restrictions-set
      path: /api/connector/v1/restrictions/set
      operations:
      - name: restrictionsset
        method: POST
        description: Set restrictions
        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-restrictions-rest
    port: 8080
    description: REST adapter for Connector API — Restrictions. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/api/connector/v1/restrictions/clear
      name: api-connector-v1-restrictions-clear
      description: REST surface for api-connector-v1-restrictions-clear.
      operations:
      - method: POST
        name: restrictionsclear
        description: Clear restrictions
        call: connector-restrictions.restrictionsclear
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/connector/v1/restrictions/getall
      name: api-connector-v1-restrictions-getall
      description: REST surface for api-connector-v1-restrictions-getAll.
      operations:
      - method: POST
        name: restrictionsgetall
        description: Get all restrictions
        call: connector-restrictions.restrictionsgetall
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/connector/v1/restrictions/set
      name: api-connector-v1-restrictions-set
      description: REST surface for api-connector-v1-restrictions-set.
      operations:
      - method: POST
        name: restrictionsset
        description: Set restrictions
        call: connector-restrictions.restrictionsset
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: connector-restrictions-mcp
    port: 9090
    transport: http
    description: MCP adapter for Connector API — Restrictions. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: clear-restrictions
      description: Clear restrictions
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: connector-restrictions.restrictionsclear
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-all-restrictions
      description: Get all restrictions
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: connector-restrictions.restrictionsgetall
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: set-restrictions
      description: Set restrictions
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: connector-restrictions.restrictionsset
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.