Google Cloud IAM · Capability

Google Cloud IAM API — Service Accounts

Google Cloud IAM API — Service Accounts. 5 operations. Lead operation: Google Cloud IAM List service accounts. Self-contained Naftiko capability covering one Google Cloud Iam business surface.

Run with Naftiko Google Cloud IamService Accounts

What You Can Do

GET
Listserviceaccounts — Google Cloud IAM List service accounts
/v1/projects/{projectid}/serviceaccounts
POST
Createserviceaccount — Google Cloud IAM Create a service account
/v1/projects/{projectid}/serviceaccounts
GET
Getserviceaccount — Google Cloud IAM Get a service account
/v1/projects/{projectid}/serviceaccounts/{serviceaccountemail}
PATCH
Patchserviceaccount — Google Cloud IAM Update a service account
/v1/projects/{projectid}/serviceaccounts/{serviceaccountemail}
DELETE
Deleteserviceaccount — Google Cloud IAM Delete a service account
/v1/projects/{projectid}/serviceaccounts/{serviceaccountemail}

MCP Tools

google-cloud-iam-list-service

Google Cloud IAM List service accounts

read-only idempotent
google-cloud-iam-create-service

Google Cloud IAM Create a service account

google-cloud-iam-get-service

Google Cloud IAM Get a service account

read-only idempotent
google-cloud-iam-update-service

Google Cloud IAM Update a service account

idempotent
google-cloud-iam-delete-service

Google Cloud IAM Delete a service account

idempotent

Capability Spec

openapi-service-accounts.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Google Cloud IAM API — Service Accounts
  description: 'Google Cloud IAM API — Service Accounts. 5 operations. Lead operation: Google Cloud IAM List service accounts.
    Self-contained Naftiko capability covering one Google Cloud Iam business surface.'
  tags:
  - Google Cloud Iam
  - Service Accounts
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GOOGLE_CLOUD_IAM_API_KEY: GOOGLE_CLOUD_IAM_API_KEY
capability:
  consumes:
  - type: http
    namespace: openapi-service-accounts
    baseUri: https://iam.googleapis.com/v1
    description: Google Cloud IAM API — Service Accounts business capability. Self-contained, no shared references.
    resources:
    - name: projects-projectId-serviceAccounts
      path: /projects/{projectId}/serviceAccounts
      operations:
      - name: listserviceaccounts
        method: GET
        description: Google Cloud IAM List service accounts
        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: createserviceaccount
        method: POST
        description: Google Cloud IAM Create a service account
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: projectId
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: projects-projectId-serviceAccounts-serviceAccountEmail
      path: /projects/{projectId}/serviceAccounts/{serviceAccountEmail}
      operations:
      - name: getserviceaccount
        method: GET
        description: Google Cloud IAM Get a service account
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: projectId
          in: path
          type: string
          required: true
        - name: serviceAccountEmail
          in: path
          type: string
          required: true
      - name: patchserviceaccount
        method: PATCH
        description: Google Cloud IAM Update a service account
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: projectId
          in: path
          type: string
          required: true
        - name: serviceAccountEmail
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deleteserviceaccount
        method: DELETE
        description: Google Cloud IAM Delete a service account
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: projectId
          in: path
          type: string
          required: true
        - name: serviceAccountEmail
          in: path
          type: string
          required: true
    authentication:
      type: bearer
      token: '{{env.GOOGLE_CLOUD_IAM_API_KEY}}'
  exposes:
  - type: rest
    namespace: openapi-service-accounts-rest
    port: 8080
    description: REST adapter for Google Cloud IAM API — Service Accounts. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/projects/{projectid}/serviceaccounts
      name: projects-projectid-serviceaccounts
      description: REST surface for projects-projectId-serviceAccounts.
      operations:
      - method: GET
        name: listserviceaccounts
        description: Google Cloud IAM List service accounts
        call: openapi-service-accounts.listserviceaccounts
        with:
          projectId: rest.projectId
          pageSize: rest.pageSize
          pageToken: rest.pageToken
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createserviceaccount
        description: Google Cloud IAM Create a service account
        call: openapi-service-accounts.createserviceaccount
        with:
          projectId: rest.projectId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/projects/{projectid}/serviceaccounts/{serviceaccountemail}
      name: projects-projectid-serviceaccounts-serviceaccountemail
      description: REST surface for projects-projectId-serviceAccounts-serviceAccountEmail.
      operations:
      - method: GET
        name: getserviceaccount
        description: Google Cloud IAM Get a service account
        call: openapi-service-accounts.getserviceaccount
        with:
          projectId: rest.projectId
          serviceAccountEmail: rest.serviceAccountEmail
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: patchserviceaccount
        description: Google Cloud IAM Update a service account
        call: openapi-service-accounts.patchserviceaccount
        with:
          projectId: rest.projectId
          serviceAccountEmail: rest.serviceAccountEmail
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteserviceaccount
        description: Google Cloud IAM Delete a service account
        call: openapi-service-accounts.deleteserviceaccount
        with:
          projectId: rest.projectId
          serviceAccountEmail: rest.serviceAccountEmail
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: openapi-service-accounts-mcp
    port: 9090
    transport: http
    description: MCP adapter for Google Cloud IAM API — Service Accounts. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: google-cloud-iam-list-service
      description: Google Cloud IAM List service accounts
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: openapi-service-accounts.listserviceaccounts
      with:
        projectId: tools.projectId
        pageSize: tools.pageSize
        pageToken: tools.pageToken
      outputParameters:
      - type: object
        mapping: $.
    - name: google-cloud-iam-create-service
      description: Google Cloud IAM Create a service account
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: openapi-service-accounts.createserviceaccount
      with:
        projectId: tools.projectId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: google-cloud-iam-get-service
      description: Google Cloud IAM Get a service account
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: openapi-service-accounts.getserviceaccount
      with:
        projectId: tools.projectId
        serviceAccountEmail: tools.serviceAccountEmail
      outputParameters:
      - type: object
        mapping: $.
    - name: google-cloud-iam-update-service
      description: Google Cloud IAM Update a service account
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: openapi-service-accounts.patchserviceaccount
      with:
        projectId: tools.projectId
        serviceAccountEmail: tools.serviceAccountEmail
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: google-cloud-iam-delete-service
      description: Google Cloud IAM Delete a service account
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: openapi-service-accounts.deleteserviceaccount
      with:
        projectId: tools.projectId
        serviceAccountEmail: tools.serviceAccountEmail
      outputParameters:
      - type: object
        mapping: $.