Google Pub/Sub · Capability

Google Pub/Sub Google Cloud Pub/Sub API — Subscriptions

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

Run with Naftiko Google Pub SubSubscriptions

What You Can Do

GET
Listsubscriptions — Google Pub/Sub List subscriptions
/v1/v1/projects/{project}/subscriptions
GET
Getsubscription — Google Pub/Sub Get a subscription
/v1/v1/projects/{project}/subscriptions/{subscription}
PUT
Createsubscription — Google Pub/Sub Create a subscription
/v1/v1/projects/{project}/subscriptions/{subscription}
DELETE
Deletesubscription — Google Pub/Sub Delete a subscription
/v1/v1/projects/{project}/subscriptions/{subscription}

MCP Tools

google-pub-sub-list-subscriptions

Google Pub/Sub List subscriptions

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

Google Pub/Sub Get a subscription

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

Google Pub/Sub Create a subscription

idempotent
google-pub-sub-delete-subscription

Google Pub/Sub Delete a subscription

idempotent

Capability Spec

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