Google Cloud Spanner · Capability

Google Cloud Spanner API — Instances

Google Cloud Spanner API — Instances. 5 operations. Lead operation: Google Cloud Spanner List instances. Self-contained Naftiko capability covering one Google Cloud Spanner business surface.

Run with Naftiko Google Cloud SpannerInstances

What You Can Do

GET
Listinstances — Google Cloud Spanner List instances
/v1/projects/{project}/instances
POST
Createinstance — Google Cloud Spanner Create an instance
/v1/projects/{project}/instances
GET
Getinstance — Google Cloud Spanner Get an instance
/v1/projects/{project}/instances/{instance}
PATCH
Updateinstance — Google Cloud Spanner Update an instance
/v1/projects/{project}/instances/{instance}
DELETE
Deleteinstance — Google Cloud Spanner Delete an instance
/v1/projects/{project}/instances/{instance}

MCP Tools

google-cloud-spanner-list-instances

Google Cloud Spanner List instances

read-only idempotent
google-cloud-spanner-create-instance

Google Cloud Spanner Create an instance

google-cloud-spanner-get-instance

Google Cloud Spanner Get an instance

read-only idempotent
google-cloud-spanner-update-instance

Google Cloud Spanner Update an instance

idempotent
google-cloud-spanner-delete-instance

Google Cloud Spanner Delete an instance

idempotent

Capability Spec

cloud-spanner-instances.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Google Cloud Spanner API — Instances
  description: 'Google Cloud Spanner API — Instances. 5 operations. Lead operation: Google Cloud Spanner List instances. Self-contained
    Naftiko capability covering one Google Cloud Spanner business surface.'
  tags:
  - Google Cloud Spanner
  - Instances
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GOOGLE_CLOUD_SPANNER_API_KEY: GOOGLE_CLOUD_SPANNER_API_KEY
capability:
  consumes:
  - type: http
    namespace: cloud-spanner-instances
    baseUri: https://spanner.googleapis.com/v1
    description: Google Cloud Spanner API — Instances business capability. Self-contained, no shared references.
    resources:
    - name: projects-project-instances
      path: /projects/{project}/instances
      operations:
      - name: listinstances
        method: GET
        description: Google Cloud Spanner List instances
        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: filter
          in: query
          type: string
      - name: createinstance
        method: POST
        description: Google Cloud Spanner Create an instance
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: project
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: projects-project-instances-instance
      path: /projects/{project}/instances/{instance}
      operations:
      - name: getinstance
        method: GET
        description: Google Cloud Spanner Get an instance
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: project
          in: path
          type: string
          required: true
        - name: instance
          in: path
          type: string
          required: true
      - name: updateinstance
        method: PATCH
        description: Google Cloud Spanner Update an instance
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: project
          in: path
          type: string
          required: true
        - name: instance
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deleteinstance
        method: DELETE
        description: Google Cloud Spanner Delete an instance
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: project
          in: path
          type: string
          required: true
        - name: instance
          in: path
          type: string
          required: true
    authentication:
      type: bearer
      token: '{{env.GOOGLE_CLOUD_SPANNER_API_KEY}}'
  exposes:
  - type: rest
    namespace: cloud-spanner-instances-rest
    port: 8080
    description: REST adapter for Google Cloud Spanner API — Instances. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/projects/{project}/instances
      name: projects-project-instances
      description: REST surface for projects-project-instances.
      operations:
      - method: GET
        name: listinstances
        description: Google Cloud Spanner List instances
        call: cloud-spanner-instances.listinstances
        with:
          project: rest.project
          pageSize: rest.pageSize
          pageToken: rest.pageToken
          filter: rest.filter
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createinstance
        description: Google Cloud Spanner Create an instance
        call: cloud-spanner-instances.createinstance
        with:
          project: rest.project
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/projects/{project}/instances/{instance}
      name: projects-project-instances-instance
      description: REST surface for projects-project-instances-instance.
      operations:
      - method: GET
        name: getinstance
        description: Google Cloud Spanner Get an instance
        call: cloud-spanner-instances.getinstance
        with:
          project: rest.project
          instance: rest.instance
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updateinstance
        description: Google Cloud Spanner Update an instance
        call: cloud-spanner-instances.updateinstance
        with:
          project: rest.project
          instance: rest.instance
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteinstance
        description: Google Cloud Spanner Delete an instance
        call: cloud-spanner-instances.deleteinstance
        with:
          project: rest.project
          instance: rest.instance
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: cloud-spanner-instances-mcp
    port: 9090
    transport: http
    description: MCP adapter for Google Cloud Spanner API — Instances. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: google-cloud-spanner-list-instances
      description: Google Cloud Spanner List instances
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: cloud-spanner-instances.listinstances
      with:
        project: tools.project
        pageSize: tools.pageSize
        pageToken: tools.pageToken
        filter: tools.filter
      outputParameters:
      - type: object
        mapping: $.
    - name: google-cloud-spanner-create-instance
      description: Google Cloud Spanner Create an instance
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: cloud-spanner-instances.createinstance
      with:
        project: tools.project
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: google-cloud-spanner-get-instance
      description: Google Cloud Spanner Get an instance
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: cloud-spanner-instances.getinstance
      with:
        project: tools.project
        instance: tools.instance
      outputParameters:
      - type: object
        mapping: $.
    - name: google-cloud-spanner-update-instance
      description: Google Cloud Spanner Update an instance
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: cloud-spanner-instances.updateinstance
      with:
        project: tools.project
        instance: tools.instance
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: google-cloud-spanner-delete-instance
      description: Google Cloud Spanner Delete an instance
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: cloud-spanner-instances.deleteinstance
      with:
        project: tools.project
        instance: tools.instance
      outputParameters:
      - type: object
        mapping: $.