Microsoft Azure · Capability

Microsoft Azure Azure Web PubSub Service REST API — Webpubsub

Microsoft Azure Azure Web PubSub Service REST API — Webpubsub. 17 operations. Lead operation: Microsoft Azure Generate Token For The Client To Connect Azure Web Pubsub Service. Self-contained Naftiko capability covering one Microsoft Azure business surface.

Run with Naftiko Microsoft AzureWebpubsub

What You Can Do

POST
Microsoftazurewebpubsubgenerateclienttoken — Microsoft Azure Generate Token For The Client To Connect Azure Web Pubsub Service
/v1/api/hubs/{hub}/generatetoken
POST
Microsoftazurewebpubsubsendtoall — Microsoft Azure Broadcast Content Inside Request Body To All The Connected Client Connections
/v1/api/hubs/{hub}/send
HEAD
Microsoftazurewebpubsubconnectionexists — Microsoft Azure Check If The Connection With The Given Connectionid Exists
/v1/api/hubs/{hub}/connections/{connectionid}
DELETE
Microsoftazurewebpubsubcloseconnection — Microsoft Azure Close The Client Connection
/v1/api/hubs/{hub}/connections/{connectionid}
POST
Microsoftazurewebpubsubsendtoconnection — Microsoft Azure Send Content Inside Request Body To The Specific Connection
/v1/api/hubs/{hub}/connections/{connectionid}/send
HEAD
Microsoftazurewebpubsubgroupexists — Microsoft Azure Check If There Are Any Client Connections Inside The Given Group
/v1/api/hubs/{hub}/groups/{group}
POST
Microsoftazurewebpubsubsendtogroup — Microsoft Azure Send Content Inside Request Body To A Group Of Connections
/v1/api/hubs/{hub}/groups/{group}/send
PUT
Microsoftazurewebpubsubaddconnectiontogroup — Microsoft Azure Add A Connection To The Target Group
/v1/api/hubs/{hub}/groups/{group}/connections/{connectionid}
DELETE
Microsoftazurewebpubsubremoveconnectionfromgroup — Microsoft Azure Remove A Connection From The Target Group
/v1/api/hubs/{hub}/groups/{group}/connections/{connectionid}
PUT
Microsoftazurewebpubsubgrantpermission — Microsoft Azure Grant Permission To The Connection
/v1/api/hubs/{hub}/permissions/{permission}/connections/{connectionid}
DELETE
Microsoftazurewebpubsubrevokepermission — Microsoft Azure Revoke Permission For The Connection
/v1/api/hubs/{hub}/permissions/{permission}/connections/{connectionid}
HEAD
Microsoftazurewebpubsubcheckpermission — Microsoft Azure Check If A Connection Has Permission To The Specified Action
/v1/api/hubs/{hub}/permissions/{permission}/connections/{connectionid}
HEAD
Microsoftazurewebpubsubuserexists — Microsoft Azure Check If There Are Any Client Connections Connected For The Given User
/v1/api/hubs/{hub}/users/{userid}
POST
Microsoftazurewebpubsubsendtouser — Microsoft Azure Send Content Inside Request Body To The Specific User
/v1/api/hubs/{hub}/users/{userid}/send
DELETE
Microsoftazurewebpubsubremoveuserfromallgroups — Microsoft Azure Remove A User From All Groups
/v1/api/hubs/{hub}/users/{userid}/groups
PUT
Microsoftazurewebpubsubaddusertogroup — Microsoft Azure Add A User To The Target Group
/v1/api/hubs/{hub}/users/{userid}/groups/{group}
DELETE
Microsoftazurewebpubsubremoveuserfromgroup — Microsoft Azure Remove A User From The Target Group
/v1/api/hubs/{hub}/users/{userid}/groups/{group}

MCP Tools

microsoft-azure-generate-token-client

Microsoft Azure Generate Token For The Client To Connect Azure Web Pubsub Service

microsoft-azure-broadcast-content-inside

Microsoft Azure Broadcast Content Inside Request Body To All The Connected Client Connections

microsoft-azure-check-if-connection

Microsoft Azure Check If The Connection With The Given Connectionid Exists

microsoft-azure-close-client-connection

Microsoft Azure Close The Client Connection

idempotent
microsoft-azure-send-content-inside

Microsoft Azure Send Content Inside Request Body To The Specific Connection

microsoft-azure-check-if-there

Microsoft Azure Check If There Are Any Client Connections Inside The Given Group

microsoft-azure-send-content-inside-2

Microsoft Azure Send Content Inside Request Body To A Group Of Connections

microsoft-azure-add-connection-target

Microsoft Azure Add A Connection To The Target Group

idempotent
microsoft-azure-remove-connection-target

Microsoft Azure Remove A Connection From The Target Group

idempotent
microsoft-azure-grant-permission-connection

Microsoft Azure Grant Permission To The Connection

idempotent
microsoft-azure-revoke-permission-connection

Microsoft Azure Revoke Permission For The Connection

idempotent
microsoft-azure-check-if-connection-2

Microsoft Azure Check If A Connection Has Permission To The Specified Action

microsoft-azure-check-if-there-2

Microsoft Azure Check If There Are Any Client Connections Connected For The Given User

microsoft-azure-send-content-inside-3

Microsoft Azure Send Content Inside Request Body To The Specific User

microsoft-azure-remove-user-all

Microsoft Azure Remove A User From All Groups

idempotent
microsoft-azure-add-user-target

Microsoft Azure Add A User To The Target Group

idempotent
microsoft-azure-remove-user-target

Microsoft Azure Remove A User From The Target Group

idempotent

Capability Spec

azure-web-pubsub-service-rest-webpubsub.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Microsoft Azure Azure Web PubSub Service REST API — Webpubsub
  description: 'Microsoft Azure Azure Web PubSub Service REST API — Webpubsub. 17 operations. Lead operation: Microsoft Azure
    Generate Token For The Client To Connect Azure Web Pubsub Service. Self-contained Naftiko capability covering one Microsoft
    Azure business surface.'
  tags:
  - Microsoft Azure
  - Webpubsub
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    MICROSOFT_AZURE_API_KEY: MICROSOFT_AZURE_API_KEY
capability:
  consumes:
  - type: http
    namespace: azure-web-pubsub-service-rest-webpubsub
    baseUri: ''
    description: Microsoft Azure Azure Web PubSub Service REST API — Webpubsub business capability. Self-contained, no shared
      references.
    resources:
    - name: api-hubs-hub-:generateToken
      path: /api/hubs/{hub}/:generateToken
      operations:
      - name: microsoftazurewebpubsubgenerateclienttoken
        method: POST
        description: Microsoft Azure Generate Token For The Client To Connect Azure Web Pubsub Service
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: hub
          in: path
          type: string
          description: Target hub name, which should start with alphabetic characters and only contain alpha-numeric characters
            or underscore.
          required: true
        - name: userId
          in: query
          type: string
          description: User Id.
        - name: role
          in: query
          type: array
          description: Roles that the connection with the generated token will have.
        - name: minutesToExpire
          in: query
          type: integer
          description: The expire time of the generated token.
        - name: api-version
          in: query
          type: string
          description: The version of the REST APIs.
    - name: api-hubs-hub-:send
      path: /api/hubs/{hub}/:send
      operations:
      - name: microsoftazurewebpubsubsendtoall
        method: POST
        description: Microsoft Azure Broadcast Content Inside Request Body To All The Connected Client Connections
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: hub
          in: path
          type: string
          description: Target hub name, which should start with alphabetic characters and only contain alpha-numeric characters
            or underscore.
          required: true
        - name: excluded
          in: query
          type: array
          description: Excluded connection Ids.
        - name: api-version
          in: query
          type: string
          description: The version of the REST APIs.
        - name: message
          in: body
          type: string
          description: The payload body.
          required: true
    - name: api-hubs-hub-connections-connectionId
      path: /api/hubs/{hub}/connections/{connectionId}
      operations:
      - name: microsoftazurewebpubsubconnectionexists
        method: HEAD
        description: Microsoft Azure Check If The Connection With The Given Connectionid Exists
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: hub
          in: path
          type: string
          description: Target hub name, which should start with alphabetic characters and only contain alpha-numeric characters
            or underscore.
          required: true
        - name: connectionId
          in: path
          type: string
          description: The connection Id.
          required: true
        - name: api-version
          in: query
          type: string
          description: The version of the REST APIs.
      - name: microsoftazurewebpubsubcloseconnection
        method: DELETE
        description: Microsoft Azure Close The Client Connection
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: hub
          in: path
          type: string
          description: Target hub name, which should start with alphabetic characters and only contain alpha-numeric characters
            or underscore.
          required: true
        - name: connectionId
          in: path
          type: string
          description: Target connection Id.
          required: true
        - name: reason
          in: query
          type: string
          description: The reason closing the client connection.
        - name: api-version
          in: query
          type: string
          description: The version of the REST APIs.
    - name: api-hubs-hub-connections-connectionId-:send
      path: /api/hubs/{hub}/connections/{connectionId}/:send
      operations:
      - name: microsoftazurewebpubsubsendtoconnection
        method: POST
        description: Microsoft Azure Send Content Inside Request Body To The Specific Connection
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: hub
          in: path
          type: string
          description: Target hub name, which should start with alphabetic characters and only contain alpha-numeric characters
            or underscore.
          required: true
        - name: connectionId
          in: path
          type: string
          description: The connection Id.
          required: true
        - name: api-version
          in: query
          type: string
          description: The version of the REST APIs.
        - name: message
          in: body
          type: string
          description: The payload body.
          required: true
    - name: api-hubs-hub-groups-group
      path: /api/hubs/{hub}/groups/{group}
      operations:
      - name: microsoftazurewebpubsubgroupexists
        method: HEAD
        description: Microsoft Azure Check If There Are Any Client Connections Inside The Given Group
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: hub
          in: path
          type: string
          description: Target hub name, which should start with alphabetic characters and only contain alpha-numeric characters
            or underscore.
          required: true
        - name: group
          in: path
          type: string
          description: Target group name, which length should be greater than 0 and less than 1025.
          required: true
        - name: api-version
          in: query
          type: string
          description: The version of the REST APIs.
    - name: api-hubs-hub-groups-group-:send
      path: /api/hubs/{hub}/groups/{group}/:send
      operations:
      - name: microsoftazurewebpubsubsendtogroup
        method: POST
        description: Microsoft Azure Send Content Inside Request Body To A Group Of Connections
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: hub
          in: path
          type: string
          description: Target hub name, which should start with alphabetic characters and only contain alpha-numeric characters
            or underscore.
          required: true
        - name: group
          in: path
          type: string
          description: Target group name, which length should be greater than 0 and less than 1025.
          required: true
        - name: excluded
          in: query
          type: array
          description: Excluded connection Ids
        - name: api-version
          in: query
          type: string
          description: The version of the REST APIs.
        - name: message
          in: body
          type: string
          description: The payload body.
          required: true
    - name: api-hubs-hub-groups-group-connections-connectionId
      path: /api/hubs/{hub}/groups/{group}/connections/{connectionId}
      operations:
      - name: microsoftazurewebpubsubaddconnectiontogroup
        method: PUT
        description: Microsoft Azure Add A Connection To The Target Group
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: hub
          in: path
          type: string
          description: Target hub name, which should start with alphabetic characters and only contain alpha-numeric characters
            or underscore.
          required: true
        - name: group
          in: path
          type: string
          description: Target group name, which length should be greater than 0 and less than 1025.
          required: true
        - name: connectionId
          in: path
          type: string
          description: Target connection Id
          required: true
        - name: api-version
          in: query
          type: string
          description: The version of the REST APIs.
      - name: microsoftazurewebpubsubremoveconnectionfromgroup
        method: DELETE
        description: Microsoft Azure Remove A Connection From The Target Group
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: hub
          in: path
          type: string
          description: Target hub name, which should start with alphabetic characters and only contain alpha-numeric characters
            or underscore.
          required: true
        - name: group
          in: path
          type: string
          description: Target group name, which length should be greater than 0 and less than 1025.
          required: true
        - name: connectionId
          in: path
          type: string
          description: Target connection Id.
          required: true
        - name: api-version
          in: query
          type: string
          description: The version of the REST APIs.
    - name: api-hubs-hub-permissions-permission-connections-connectionId
      path: /api/hubs/{hub}/permissions/{permission}/connections/{connectionId}
      operations:
      - name: microsoftazurewebpubsubgrantpermission
        method: PUT
        description: Microsoft Azure Grant Permission To The Connection
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: hub
          in: path
          type: string
          description: Target hub name, which should start with alphabetic characters and only contain alpha-numeric characters
            or underscore.
          required: true
        - name: permission
          in: path
          type: string
          description: 'The permission: current supported actions are joinLeaveGroup and sendToGroup.'
          required: true
        - name: connectionId
          in: path
          type: string
          description: Target connection Id.
          required: true
        - name: targetName
          in: query
          type: string
          description: The meaning of the target depends on the specific permission. For joinLeaveGroup and sendToGroup, targetName
            is a required parameter standing for the group name
        - name: api-version
          in: query
          type: string
          description: The version of the REST APIs.
      - name: microsoftazurewebpubsubrevokepermission
        method: DELETE
        description: Microsoft Azure Revoke Permission For The Connection
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: hub
          in: path
          type: string
          description: Target hub name, which should start with alphabetic characters and only contain alpha-numeric characters
            or underscore.
          required: true
        - name: permission
          in: path
          type: string
          description: 'The permission: current supported actions are joinLeaveGroup and sendToGroup.'
          required: true
        - name: connectionId
          in: path
          type: string
          description: Target connection Id.
          required: true
        - name: targetName
          in: query
          type: string
          description: The meaning of the target depends on the specific permission. For joinLeaveGroup and sendToGroup, targetName
            is a required parameter standing for the group name
        - name: api-version
          in: query
          type: string
          description: The version of the REST APIs.
      - name: microsoftazurewebpubsubcheckpermission
        method: HEAD
        description: Microsoft Azure Check If A Connection Has Permission To The Specified Action
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: hub
          in: path
          type: string
          description: Target hub name, which should start with alphabetic characters and only contain alpha-numeric characters
            or underscore.
          required: true
        - name: permission
          in: path
          type: string
          description: 'The permission: current supported actions are joinLeaveGroup and sendToGroup.'
          required: true
        - name: connectionId
          in: path
          type: string
          description: Target connection Id.
          required: true
        - name: targetName
          in: query
          type: string
          description: The meaning of the target depends on the specific permission. For joinLeaveGroup and sendToGroup, targetName
            is a required parameter standing for the group name
        - name: api-version
          in: query
          type: string
          description: The version of the REST APIs.
    - name: api-hubs-hub-users-userId
      path: /api/hubs/{hub}/users/{userId}
      operations:
      - name: microsoftazurewebpubsubuserexists
        method: HEAD
        description: Microsoft Azure Check If There Are Any Client Connections Connected For The Given User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: hub
          in: path
          type: string
          description: Target hub name, which should start with alphabetic characters and only contain alpha-numeric characters
            or underscore.
          required: true
        - name: userId
          in: path
          type: string
          description: Target user Id.
          required: true
        - name: api-version
          in: query
          type: string
          description: The version of the REST APIs.
    - name: api-hubs-hub-users-userId-:send
      path: /api/hubs/{hub}/users/{userId}/:send
      operations:
      - name: microsoftazurewebpubsubsendtouser
        method: POST
        description: Microsoft Azure Send Content Inside Request Body To The Specific User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: hub
          in: path
          type: string
          description: Target hub name, which should start with alphabetic characters and only contain alpha-numeric characters
            or underscore.
          required: true
        - name: userId
          in: path
          type: string
          description: The user Id.
          required: true
        - name: api-version
          in: query
          type: string
          description: The version of the REST APIs.
        - name: message
          in: body
          type: string
          description: The payload body.
          required: true
    - name: api-hubs-hub-users-userId-groups
      path: /api/hubs/{hub}/users/{userId}/groups
      operations:
      - name: microsoftazurewebpubsubremoveuserfromallgroups
        method: DELETE
        description: Microsoft Azure Remove A User From All Groups
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: hub
          in: path
          type: string
          description: Target hub name, which should start with alphabetic characters and only contain alpha-numeric characters
            or underscore.
          required: true
        - name: userId
          in: path
          type: string
          description: Target user Id.
          required: true
        - name: api-version
          in: query
          type: string
          description: The version of the REST APIs.
    - name: api-hubs-hub-users-userId-groups-group
      path: /api/hubs/{hub}/users/{userId}/groups/{group}
      operations:
      - name: microsoftazurewebpubsubaddusertogroup
        method: PUT
        description: Microsoft Azure Add A User To The Target Group
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: hub
          in: path
          type: string
          description: Target hub name, which should start with alphabetic characters and only contain alpha-numeric characters
            or underscore.
          required: true
        - name: group
          in: path
          type: string
          description: Target group name, which length should be greater than 0 and less than 1025.
          required: true
        - name: userId
          in: path
          type: string
          description: Target user Id.
          required: true
        - name: api-version
          in: query
          type: string
          description: The version of the REST APIs.
      - name: microsoftazurewebpubsubremoveuserfromgroup
        method: DELETE
        description: Microsoft Azure Remove A User From The Target Group
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: hub
          in: path
          type: string
          description: Target hub name, which should start with alphabetic characters and only contain alpha-numeric characters
            or underscore.
          required: true
        - name: group
          in: path
          type: string
          description: Target group name, which length should be greater than 0 and less than 1025.
          required: true
        - name: userId
          in: path
          type: string
          description: Target user Id.
          required: true
        - name: api-version
          in: query
          type: string
          description: The version of the REST APIs.
  exposes:
  - type: rest
    namespace: azure-web-pubsub-service-rest-webpubsub-rest
    port: 8080
    description: REST adapter for Microsoft Azure Azure Web PubSub Service REST API — Webpubsub. One Spectral-compliant resource
      per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/api/hubs/{hub}/generatetoken
      name: api-hubs-hub-generatetoken
      description: REST surface for api-hubs-hub-:generateToken.
      operations:
      - method: POST
        name: microsoftazurewebpubsubgenerateclienttoken
        description: Microsoft Azure Generate Token For The Client To Connect Azure Web Pubsub Service
        call: azure-web-pubsub-service-rest-webpubsub.microsoftazurewebpubsubgenerateclienttoken
        with:
          hub: rest.hub
          userId: rest.userId
          role: rest.role
          minutesToExpire: rest.minutesToExpire
          api-version: rest.api-version
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/hubs/{hub}/send
      name: api-hubs-hub-send
      description: REST surface for api-hubs-hub-:send.
      operations:
      - method: POST
        name: microsoftazurewebpubsubsendtoall
        description: Microsoft Azure Broadcast Content Inside Request Body To All The Connected Client Connections
        call: azure-web-pubsub-service-rest-webpubsub.microsoftazurewebpubsubsendtoall
        with:
          hub: rest.hub
          excluded: rest.excluded
          api-version: rest.api-version
          message: rest.message
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/hubs/{hub}/connections/{connectionid}
      name: api-hubs-hub-connections-connectionid
      description: REST surface for api-hubs-hub-connections-connectionId.
      operations:
      - method: HEAD
        name: microsoftazurewebpubsubconnectionexists
        description: Microsoft Azure Check If The Connection With The Given Connectionid Exists
        call: azure-web-pubsub-service-rest-webpubsub.microsoftazurewebpubsubconnectionexists
        with:
          hub: rest.hub
          connectionId: rest.connectionId
          api-version: rest.api-version
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: microsoftazurewebpubsubcloseconnection
        description: Microsoft Azure Close The Client Connection
        call: azure-web-pubsub-service-rest-webpubsub.microsoftazurewebpubsubcloseconnection
        with:
          hub: rest.hub
          connectionId: rest.connectionId
          reason: rest.reason
          api-version: rest.api-version
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/hubs/{hub}/connections/{connectionid}/send
      name: api-hubs-hub-connections-connectionid-send
      description: REST surface for api-hubs-hub-connections-connectionId-:send.
      operations:
      - method: POST
        name: microsoftazurewebpubsubsendtoconnection
        description: Microsoft Azure Send Content Inside Request Body To The Specific Connection
        call: azure-web-pubsub-service-rest-webpubsub.microsoftazurewebpubsubsendtoconnection
        with:
          hub: rest.hub
          connectionId: rest.connectionId
          api-version: rest.api-version
          message: rest.message
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/hubs/{hub}/groups/{group}
      name: api-hubs-hub-groups-group
      description: REST surface for api-hubs-hub-groups-group.
      operations:
      - method: HEAD
        name: microsoftazurewebpubsubgroupexists
        description: Microsoft Azure Check If There Are Any Client Connections Inside The Given Group
        call: azure-web-pubsub-service-rest-webpubsub.microsoftazurewebpubsubgroupexists
        with:
          hub: rest.hub
          group: rest.group
          api-version: rest.api-version
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/hubs/{hub}/groups/{group}/send
      name: api-hubs-hub-groups-group-send
      description: REST surface for api-hubs-hub-groups-group-:send.
      operations:
      - method: POST
        name: microsoftazurewebpubsubsendtogroup
        description: Microsoft Azure Send Content Inside Request Body To A Group Of Connections
        call: azure-web-pubsub-service-rest-webpubsub.microsoftazurewebpubsubsendtogroup
        with:
          hub: rest.hub
          group: rest.group
          excluded: rest.excluded
          api-version: rest.api-version
          message: rest.message
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/hubs/{hub}/groups/{group}/connections/{connectionid}
      name: api-hubs-hub-groups-group-connections-connectionid
      description: REST surface for api-hubs-hub-groups-group-connections-connectionId.
      operations:
      - method: PUT
        name: microsoftazurewebpubsubaddconnectiontogroup
        description: Microsoft Azure Add A Connection To The Target Group
        call: azure-web-pubsub-service-rest-webpubsub.microsoftazurewebpubsubaddconnectiontogroup
        with:
          hub: rest.hub
          group: rest.group
          connectionId: rest.connectionId
          api-version: rest.api-version
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: microsoftazurewebpubsubremoveconnectionfromgroup
        description: Microsoft Azure Remove A Connection From The Target Group
        call: azure-web-pubsub-service-rest-webpubsub.microsoftazurewebpubsubremoveconnectionfromgroup
        with:
          hub: rest.hub
          group: rest.group
          connectionId: rest.connectionId
          api-version: rest.api-version
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/hubs/{hub}/permissions/{permission}/connections/{connectionid}
      name: api-hubs-hub-permissions-permission-connections-connectionid
      description: REST surface for api-hubs-hub-permissions-permission-connections-connectionId.
      operations:
      - method: PUT
        name: microsoftazurewebpubsubgrantpermission
        description: Microsoft Azure Grant Permission To The Connection
        call: azure-web-pubsub-service-rest-webpubsub.microsoftazurewebpubsubgrantpermission
        with:
          hub: rest.hub
          permission: rest.permission
          connectionId: rest.connectionId
          targetName: rest.targetName
          api-version: rest.api-version
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: microsoftazurewebpubsubrevokepermission
        description: Microsoft Azure Revoke Permission For The Connection
        call: azure-web-pubsub-service-rest-webpubsub.microsoftazurewebpubsubrevokepermission
        with:
          hub: rest.hub
          permission: rest.permission
          connectionId: rest.connectionId
          targetName: rest.targetName
          api-version: rest.api-version
        outputParameters:
        - type: object
          mapping: $.
      - method: HEAD
        name: microsoftazurewebpubsubcheckpermission
        description: Microsoft Azure Check If A Connection Has Permission To The Specified Action
        call: azure-web-pubsub-service-rest-webpubsub.microsoftazurewebpubsubcheckpermission
        with:
          hub: rest.hub
          permission: rest.permission
          connectionId: rest.connectionId
          targetName: rest.targetName
          api-version: rest.api-version
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/hubs/{hub}/users/{userid}
      name: api-hubs-hub-users-userid
      description: REST surface for api-hubs-hub-users-userId.
      operations:
      - method: HEAD
        name: microsoftazurewebpubsubuserexists
        description: Microsoft Azure Check If There Are Any Client Connections Connected For The Given User
        call: azure-web-pubsub-service-rest-webpubsub.microsoftazurewebpubsubuserexists
        with:
          hub: rest.hub
          userId: rest.userId
          api-version: rest.api-version
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/hubs/{hub}/users/{userid}/send
      name: api-hubs-hub-users-userid-send
      description: REST surface for api-hubs-hub-users-userId-:send.
      operations:
      - method: POST
        name: microsoftazurewebpubsubsendtouser
        description: Microsoft Azure Send Content Inside Request Body To The Specific User
        call: azure-web-pubsub-service-rest-webpubsub.microsoftazurewebpubsubsendtouser
        with:
          hub: rest.hub
          userId: rest.userId
          api-version: rest.api-version
          message: rest.message
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/hubs/{hub}/users/{userid}/groups
      name: api-hubs-hub-users-userid-groups
      description: REST surface for api-hubs-hub-users-userId-groups.
      operations:
      - method: DELETE
        name: microsoftazurewebpubsubremoveuserfromallgroups
        description: Microsoft Azure Remove A User From All Groups
        call: azure-web-pubsub-service-rest-webpubsub.microsoftazurewebpubsubremoveuserfromallgroups
        with:
          hub: rest.hub
          userId: rest.userId
          api-version: rest.api-version
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/hubs/{hub}/users/{userid}/groups/{group}
      name: api-hubs-hub-users-userid-groups-group
      description: REST surface for api-hubs-hub-users-userId-groups-group.
      operations:
      - method: PUT
        name: microsoftazurewebpubsubaddusertogroup
        description: Microsoft Azure Add A User To The Target Group
        call: azure-web-pubsub-service-rest-webpubsub.microsoftazurewebpubsubaddusertogroup
        with:
          hub: rest.hub
          group: rest.group
          userId: rest.userId
          api-version: rest.api-version
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: microsoftazurewebpubsubremoveuserfromgroup
        description: Microsoft Azure Remove A User From The Target Group
        call: azure-web-pubsub-service-rest-webpubsub.microsoftazurewebpubsubremoveuserfromgroup
        with:
          hub: rest.hub
          group: rest.group
          userId: rest.userId
          api-version: rest.api-version
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: azure-web-pubsub-service-rest-webpubsub-mcp
    port: 9090
    transport: http
    description: MCP adapter for Microsoft Azure Azure Web PubSub Service REST API — Webpubsub. One tool per consumed operation,
      routed inline through this capability's consumes block.
    tools:
    - name: microsoft-azure-generate-token-client
      description: Microsoft Azure Generate Token For The Client To Connect Azure Web Pubsub Service
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: azure-web-pubsub-service-rest-webpubsub.microsoftazurewebpubsubgenerateclienttoken
      with:
        hub: tools.hub
        userId: tools.userId
        role: tools.role
        minutesToExpire: tools.minutesToExpire
        api-version: tools.api-version
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-azure-broadcast-content-inside
      description: Microsoft Azure Broadcast Content Inside Request Body To All The Connected Client Connections
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: azure-web-pubsub-service-rest-webpubsub.microsoftazurewebpubsubsendtoall
      with:
        hub: tools.hub
        excluded: tools.excluded
        api-version: tools.api-version
        message: tools.message
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-azure-check-if-connection
      description: Microsoft Azure Check If The Connection With The Given Connectionid Exists
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: azure-web-pubsub-service-rest-webpubsub.microsoftazurewebpubsubconnectionexists
      with:
        hub: tools.hub
        connectionId: tools.connectionId
        api-version: tools.api-version
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-azure-close-client-connection
      description: Microsoft Azure Close The Client Connection
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: azure-web-pubsub-service-rest-webpubsub.microsoftazurewebpubsubcloseconnection
      with:
        hub: tools.hub
        connectionId: tools.connectionId
        reason: tools.reason
        api-version: tools.api-version
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-azure-send-content-inside
      description: Microsoft Azure Send Content Inside Request Body To The Specific Connection
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: azure-web-pubsub-service-rest-webpubsub.microsoftazurewebpubsubsendtoconnection
      wit

# --- truncated at 32 KB (38 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/microsoft-azure/refs/heads/main/capabilities/azure-web-pubsub-service-rest-webpubsub.yaml