Google Cloud Pub/Sub · Capability

Google Cloud Pub/Sub API — Schemas

Google Cloud Pub/Sub API — Schemas. 2 operations. Lead operation: Google Cloud Pub/Sub List schemas. Self-contained Naftiko capability covering one Google Cloud Pubsub business surface.

Run with Naftiko Google Cloud PubsubSchemas

What You Can Do

GET
Listschemas — Google Cloud Pub/Sub List schemas
/v1/projects/{projectid}/schemas
POST
Createschema — Google Cloud Pub/Sub Create a schema
/v1/projects/{projectid}/schemas

MCP Tools

google-cloud-pub-sub-list

Google Cloud Pub/Sub List schemas

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

Google Cloud Pub/Sub Create a schema

Capability Spec

google-cloud-pubsub-schemas.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Google Cloud Pub/Sub API — Schemas
  description: 'Google Cloud Pub/Sub API — Schemas. 2 operations. Lead operation: Google Cloud Pub/Sub List schemas. Self-contained
    Naftiko capability covering one Google Cloud Pubsub business surface.'
  tags:
  - Google Cloud Pubsub
  - Schemas
  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-schemas
    baseUri: https://pubsub.googleapis.com/v1
    description: Google Cloud Pub/Sub API — Schemas business capability. Self-contained, no shared references.
    resources:
    - name: projects-projectId-schemas
      path: /projects/{projectId}/schemas
      operations:
      - name: listschemas
        method: GET
        description: Google Cloud Pub/Sub List schemas
        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: createschema
        method: POST
        description: Google Cloud Pub/Sub Create a schema
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: projectId
          in: path
          type: string
          required: true
        - name: schemaId
          in: query
          type: string
        - 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-schemas-rest
    port: 8080
    description: REST adapter for Google Cloud Pub/Sub API — Schemas. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/projects/{projectid}/schemas
      name: projects-projectid-schemas
      description: REST surface for projects-projectId-schemas.
      operations:
      - method: GET
        name: listschemas
        description: Google Cloud Pub/Sub List schemas
        call: google-cloud-pubsub-schemas.listschemas
        with:
          projectId: rest.projectId
          pageSize: rest.pageSize
          pageToken: rest.pageToken
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createschema
        description: Google Cloud Pub/Sub Create a schema
        call: google-cloud-pubsub-schemas.createschema
        with:
          projectId: rest.projectId
          schemaId: rest.schemaId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: google-cloud-pubsub-schemas-mcp
    port: 9090
    transport: http
    description: MCP adapter for Google Cloud Pub/Sub API — Schemas. 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 schemas
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: google-cloud-pubsub-schemas.listschemas
      with:
        projectId: tools.projectId
        pageSize: tools.pageSize
        pageToken: tools.pageToken
      outputParameters:
      - type: object
        mapping: $.
    - name: google-cloud-pub-sub-create
      description: Google Cloud Pub/Sub Create a schema
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: google-cloud-pubsub-schemas.createschema
      with:
        projectId: tools.projectId
        schemaId: tools.schemaId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.