Google Pub/Sub · Capability

Google Pub/Sub Google Cloud Pub/Sub API — Schemas

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

Run with Naftiko Google Pub SubSchemas

What You Can Do

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

MCP Tools

google-pub-sub-list-schemas

Google Pub/Sub List schemas

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

Google Pub/Sub Create a schema

Capability Spec

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