Google Pub/Sub · Capability

Google Pub/Sub Google Cloud Pub/Sub API — Snapshots

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

Run with Naftiko Google Pub SubSnapshots

What You Can Do

GET
Listsnapshots — Google Pub/Sub List snapshots
/v1/v1/projects/{project}/snapshots
GET
Getsnapshot — Google Pub/Sub Get a snapshot
/v1/v1/projects/{project}/snapshots/{snapshot}
PUT
Createsnapshot — Google Pub/Sub Create a snapshot
/v1/v1/projects/{project}/snapshots/{snapshot}
DELETE
Deletesnapshot — Google Pub/Sub Delete a snapshot
/v1/v1/projects/{project}/snapshots/{snapshot}

MCP Tools

google-pub-sub-list-snapshots

Google Pub/Sub List snapshots

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

Google Pub/Sub Get a snapshot

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

Google Pub/Sub Create a snapshot

idempotent
google-pub-sub-delete-snapshot

Google Pub/Sub Delete a snapshot

idempotent

Capability Spec

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