Google Cloud Pub/Sub · Capability

Google Cloud Pub/Sub API — Subscriptions

Google Cloud Pub/Sub API — Subscriptions. 6 operations. Lead operation: Google Cloud Pub/Sub List subscriptions. Self-contained Naftiko capability covering one Google Cloud Pubsub business surface.

Run with Naftiko Google Cloud PubsubSubscriptions

What You Can Do

GET
Listsubscriptions — Google Cloud Pub/Sub List subscriptions
/v1/projects/{projectid}/subscriptions
GET
Getsubscription — Google Cloud Pub/Sub Get a subscription
/v1/projects/{projectid}/subscriptions/{subscriptionid}
PUT
Createsubscription — Google Cloud Pub/Sub Create a subscription
/v1/projects/{projectid}/subscriptions/{subscriptionid}
DELETE
Deletesubscription — Google Cloud Pub/Sub Delete a subscription
/v1/projects/{projectid}/subscriptions/{subscriptionid}
POST
Acknowledgemessages — Google Cloud Pub/Sub Acknowledge messages
/v1/projects/{projectid}/subscriptions/subscriptionid-acknowledge
POST
Pullmessages — Google Cloud Pub/Sub Pull messages
/v1/projects/{projectid}/subscriptions/subscriptionid-pull

MCP Tools

google-cloud-pub-sub-list

Google Cloud Pub/Sub List subscriptions

read-only idempotent
google-cloud-pub-sub-get

Google Cloud Pub/Sub Get a subscription

read-only idempotent
google-cloud-pub-sub-create

Google Cloud Pub/Sub Create a subscription

idempotent
google-cloud-pub-sub-delete

Google Cloud Pub/Sub Delete a subscription

idempotent
google-cloud-pub-sub-acknowledge

Google Cloud Pub/Sub Acknowledge messages

google-cloud-pub-sub-pull

Google Cloud Pub/Sub Pull messages

Capability Spec

google-cloud-pubsub-subscriptions.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Google Cloud Pub/Sub API — Subscriptions
  description: 'Google Cloud Pub/Sub API — Subscriptions. 6 operations. Lead operation: Google Cloud Pub/Sub List subscriptions.
    Self-contained Naftiko capability covering one Google Cloud Pubsub business surface.'
  tags:
  - Google Cloud Pubsub
  - Subscriptions
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GOOGLE_CLOUD_PUBSUB_API_KEY: GOOGLE_CLOUD_PUBSUB_API_KEY
capability:
  consumes:
  - type: http
    namespace: google-cloud-pubsub-subscriptions
    baseUri: https://pubsub.googleapis.com/v1
    description: Google Cloud Pub/Sub API — Subscriptions business capability. Self-contained, no shared references.
    resources:
    - name: projects-projectId-subscriptions
      path: /projects/{projectId}/subscriptions
      operations:
      - name: listsubscriptions
        method: GET
        description: Google Cloud Pub/Sub List subscriptions
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: projectId
          in: path
          type: string
          required: true
        - name: pageSize
          in: query
          type: integer
        - name: pageToken
          in: query
          type: string
    - name: projects-projectId-subscriptions-subscriptionId
      path: /projects/{projectId}/subscriptions/{subscriptionId}
      operations:
      - name: getsubscription
        method: GET
        description: Google Cloud Pub/Sub Get a subscription
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: projectId
          in: path
          type: string
          required: true
        - name: subscriptionId
          in: path
          type: string
          required: true
      - name: createsubscription
        method: PUT
        description: Google Cloud Pub/Sub Create a subscription
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: projectId
          in: path
          type: string
          required: true
        - name: subscriptionId
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deletesubscription
        method: DELETE
        description: Google Cloud Pub/Sub Delete a subscription
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: projectId
          in: path
          type: string
          required: true
        - name: subscriptionId
          in: path
          type: string
          required: true
    - name: projects-projectId-subscriptions-subscriptionId}:acknowledge
      path: /projects/{projectId}/subscriptions/{subscriptionId}:acknowledge
      operations:
      - name: acknowledgemessages
        method: POST
        description: Google Cloud Pub/Sub Acknowledge messages
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: projectId
          in: path
          type: string
          required: true
        - name: subscriptionId
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: projects-projectId-subscriptions-subscriptionId}:pull
      path: /projects/{projectId}/subscriptions/{subscriptionId}:pull
      operations:
      - name: pullmessages
        method: POST
        description: Google Cloud Pub/Sub Pull messages
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: projectId
          in: path
          type: string
          required: true
        - name: subscriptionId
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.GOOGLE_CLOUD_PUBSUB_API_KEY}}'
  exposes:
  - type: rest
    namespace: google-cloud-pubsub-subscriptions-rest
    port: 8080
    description: REST adapter for Google Cloud Pub/Sub API — Subscriptions. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/projects/{projectid}/subscriptions
      name: projects-projectid-subscriptions
      description: REST surface for projects-projectId-subscriptions.
      operations:
      - method: GET
        name: listsubscriptions
        description: Google Cloud Pub/Sub List subscriptions
        call: google-cloud-pubsub-subscriptions.listsubscriptions
        with:
          projectId: rest.projectId
          pageSize: rest.pageSize
          pageToken: rest.pageToken
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/projects/{projectid}/subscriptions/{subscriptionid}
      name: projects-projectid-subscriptions-subscriptionid
      description: REST surface for projects-projectId-subscriptions-subscriptionId.
      operations:
      - method: GET
        name: getsubscription
        description: Google Cloud Pub/Sub Get a subscription
        call: google-cloud-pubsub-subscriptions.getsubscription
        with:
          projectId: rest.projectId
          subscriptionId: rest.subscriptionId
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: createsubscription
        description: Google Cloud Pub/Sub Create a subscription
        call: google-cloud-pubsub-subscriptions.createsubscription
        with:
          projectId: rest.projectId
          subscriptionId: rest.subscriptionId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletesubscription
        description: Google Cloud Pub/Sub Delete a subscription
        call: google-cloud-pubsub-subscriptions.deletesubscription
        with:
          projectId: rest.projectId
          subscriptionId: rest.subscriptionId
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/projects/{projectid}/subscriptions/subscriptionid-acknowledge
      name: projects-projectid-subscriptions-subscriptionid-acknowledge
      description: REST surface for projects-projectId-subscriptions-subscriptionId}:acknowledge.
      operations:
      - method: POST
        name: acknowledgemessages
        description: Google Cloud Pub/Sub Acknowledge messages
        call: google-cloud-pubsub-subscriptions.acknowledgemessages
        with:
          projectId: rest.projectId
          subscriptionId: rest.subscriptionId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/projects/{projectid}/subscriptions/subscriptionid-pull
      name: projects-projectid-subscriptions-subscriptionid-pull
      description: REST surface for projects-projectId-subscriptions-subscriptionId}:pull.
      operations:
      - method: POST
        name: pullmessages
        description: Google Cloud Pub/Sub Pull messages
        call: google-cloud-pubsub-subscriptions.pullmessages
        with:
          projectId: rest.projectId
          subscriptionId: rest.subscriptionId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: google-cloud-pubsub-subscriptions-mcp
    port: 9090
    transport: http
    description: MCP adapter for Google Cloud Pub/Sub API — Subscriptions. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: google-cloud-pub-sub-list
      description: Google Cloud Pub/Sub List subscriptions
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: google-cloud-pubsub-subscriptions.listsubscriptions
      with:
        projectId: tools.projectId
        pageSize: tools.pageSize
        pageToken: tools.pageToken
      outputParameters:
      - type: object
        mapping: $.
    - name: google-cloud-pub-sub-get
      description: Google Cloud Pub/Sub Get a subscription
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: google-cloud-pubsub-subscriptions.getsubscription
      with:
        projectId: tools.projectId
        subscriptionId: tools.subscriptionId
      outputParameters:
      - type: object
        mapping: $.
    - name: google-cloud-pub-sub-create
      description: Google Cloud Pub/Sub Create a subscription
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: google-cloud-pubsub-subscriptions.createsubscription
      with:
        projectId: tools.projectId
        subscriptionId: tools.subscriptionId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: google-cloud-pub-sub-delete
      description: Google Cloud Pub/Sub Delete a subscription
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: google-cloud-pubsub-subscriptions.deletesubscription
      with:
        projectId: tools.projectId
        subscriptionId: tools.subscriptionId
      outputParameters:
      - type: object
        mapping: $.
    - name: google-cloud-pub-sub-acknowledge
      description: Google Cloud Pub/Sub Acknowledge messages
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: google-cloud-pubsub-subscriptions.acknowledgemessages
      with:
        projectId: tools.projectId
        subscriptionId: tools.subscriptionId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: google-cloud-pub-sub-pull
      description: Google Cloud Pub/Sub Pull messages
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: google-cloud-pubsub-subscriptions.pullmessages
      with:
        projectId: tools.projectId
        subscriptionId: tools.subscriptionId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.