Mews · Capability

Connector API — Routing rules

Connector API — Routing rules. 4 operations. Lead operation: Add routing rules. Self-contained Naftiko capability covering one Mews business surface.

Run with Naftiko MewsRouting rules

What You Can Do

POST
Routingrulesadd — Add routing rules
/v1/api/connector/v1/routingrules/add
POST
Routingrulesdelete — Delete routing rules
/v1/api/connector/v1/routingrules/delete
POST
Routingrulesgetall — Get all routing rules
/v1/api/connector/v1/routingrules/getall
POST
Routingrulesupdate — Update routing rules
/v1/api/connector/v1/routingrules/update

MCP Tools

add-routing-rules

Add routing rules

delete-routing-rules

Delete routing rules

get-all-routing-rules

Get all routing rules

read-only
update-routing-rules

Update routing rules

Capability Spec

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