Google Cloud KMS · Capability

Google Cloud KMS API — Key Rings

Google Cloud KMS API — Key Rings. 3 operations. Lead operation: Google Cloud KMS List key rings. Self-contained Naftiko capability covering one Google Cloud Kms business surface.

Run with Naftiko Google Cloud KmsKey Rings

What You Can Do

GET
Listkeyrings — Google Cloud KMS List key rings
/v1/projects/{projectid}/locations/{location}/keyrings
POST
Createkeyring — Google Cloud KMS Create a key ring
/v1/projects/{projectid}/locations/{location}/keyrings
GET
Getkeyring — Google Cloud KMS Get a key ring
/v1/projects/{projectid}/locations/{location}/keyrings/{keyringid}

MCP Tools

google-cloud-kms-list-key

Google Cloud KMS List key rings

read-only idempotent
google-cloud-kms-create-key

Google Cloud KMS Create a key ring

google-cloud-kms-get-key

Google Cloud KMS Get a key ring

read-only idempotent

Capability Spec

openapi-key-rings.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Google Cloud KMS API — Key Rings
  description: 'Google Cloud KMS API — Key Rings. 3 operations. Lead operation: Google Cloud KMS List key rings. Self-contained
    Naftiko capability covering one Google Cloud Kms business surface.'
  tags:
  - Google Cloud Kms
  - Key Rings
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GOOGLE_CLOUD_KMS_API_KEY: GOOGLE_CLOUD_KMS_API_KEY
capability:
  consumes:
  - type: http
    namespace: openapi-key-rings
    baseUri: https://cloudkms.googleapis.com/v1
    description: Google Cloud KMS API — Key Rings business capability. Self-contained, no shared references.
    resources:
    - name: projects-projectId-locations-location-keyRings
      path: /projects/{projectId}/locations/{location}/keyRings
      operations:
      - name: listkeyrings
        method: GET
        description: Google Cloud KMS List key rings
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: projectId
          in: path
          type: string
          required: true
        - name: location
          in: path
          type: string
          required: true
        - name: pageSize
          in: query
          type: integer
        - name: pageToken
          in: query
          type: string
      - name: createkeyring
        method: POST
        description: Google Cloud KMS Create a key ring
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: projectId
          in: path
          type: string
          required: true
        - name: location
          in: path
          type: string
          required: true
        - name: keyRingId
          in: query
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: projects-projectId-locations-location-keyRings-keyRingId
      path: /projects/{projectId}/locations/{location}/keyRings/{keyRingId}
      operations:
      - name: getkeyring
        method: GET
        description: Google Cloud KMS Get a key ring
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: projectId
          in: path
          type: string
          required: true
        - name: location
          in: path
          type: string
          required: true
        - name: keyRingId
          in: path
          type: string
          required: true
    authentication:
      type: bearer
      token: '{{env.GOOGLE_CLOUD_KMS_API_KEY}}'
  exposes:
  - type: rest
    namespace: openapi-key-rings-rest
    port: 8080
    description: REST adapter for Google Cloud KMS API — Key Rings. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/projects/{projectid}/locations/{location}/keyrings
      name: projects-projectid-locations-location-keyrings
      description: REST surface for projects-projectId-locations-location-keyRings.
      operations:
      - method: GET
        name: listkeyrings
        description: Google Cloud KMS List key rings
        call: openapi-key-rings.listkeyrings
        with:
          projectId: rest.projectId
          location: rest.location
          pageSize: rest.pageSize
          pageToken: rest.pageToken
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createkeyring
        description: Google Cloud KMS Create a key ring
        call: openapi-key-rings.createkeyring
        with:
          projectId: rest.projectId
          location: rest.location
          keyRingId: rest.keyRingId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/projects/{projectid}/locations/{location}/keyrings/{keyringid}
      name: projects-projectid-locations-location-keyrings-keyringid
      description: REST surface for projects-projectId-locations-location-keyRings-keyRingId.
      operations:
      - method: GET
        name: getkeyring
        description: Google Cloud KMS Get a key ring
        call: openapi-key-rings.getkeyring
        with:
          projectId: rest.projectId
          location: rest.location
          keyRingId: rest.keyRingId
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: openapi-key-rings-mcp
    port: 9090
    transport: http
    description: MCP adapter for Google Cloud KMS API — Key Rings. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: google-cloud-kms-list-key
      description: Google Cloud KMS List key rings
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: openapi-key-rings.listkeyrings
      with:
        projectId: tools.projectId
        location: tools.location
        pageSize: tools.pageSize
        pageToken: tools.pageToken
      outputParameters:
      - type: object
        mapping: $.
    - name: google-cloud-kms-create-key
      description: Google Cloud KMS Create a key ring
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: openapi-key-rings.createkeyring
      with:
        projectId: tools.projectId
        location: tools.location
        keyRingId: tools.keyRingId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: google-cloud-kms-get-key
      description: Google Cloud KMS Get a key ring
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: openapi-key-rings.getkeyring
      with:
        projectId: tools.projectId
        location: tools.location
        keyRingId: tools.keyRingId
      outputParameters:
      - type: object
        mapping: $.