Google · Capability

Google Gmail API — Patch

Google Gmail API — Patch. 3 operations. Lead operation: Google Patch Labels. Self-contained Naftiko capability covering one Google business surface.

Run with Naftiko GooglePatch

What You Can Do

PATCH
Patch — Google Patch Labels
/v1/gmail/v1/users/{userid}/labels/{id}
PATCH
Patch — Google PATCH CSE Identites
/v1/gmail/v1/users/{userid}/settings/cse/identities/{emailaddress}
PATCH
Patch — Google Patch Send As
/v1/gmail/v1/users/{userid}/settings/sendas/{sendasemail}

MCP Tools

google-patch-labels

Google Patch Labels

idempotent
google-patch-cse-identites

Google PATCH CSE Identites

idempotent
google-patch-send

Google Patch Send As

idempotent

Capability Spec

gmail-patch.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Google Gmail API — Patch
  description: 'Google Gmail API — Patch. 3 operations. Lead operation: Google Patch Labels. Self-contained Naftiko capability
    covering one Google business surface.'
  tags:
  - Google
  - Patch
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GOOGLE_API_KEY: GOOGLE_API_KEY
capability:
  consumes:
  - type: http
    namespace: gmail-patch
    baseUri: https://gmail.googleapis.com
    description: Google Gmail API — Patch business capability. Self-contained, no shared references.
    resources:
    - name: gmail-v1-users-userId-labels-id
      path: /gmail/v1/users/{userId}/labels/{id}
      operations:
      - name: patch
        method: PATCH
        description: Google Patch Labels
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Content-Type
          in: header
          type: string
        - name: Accept
          in: header
          type: string
        - name: userId
          in: path
          type: string
          description: (Required)
          required: true
        - name: id
          in: path
          type: string
          description: (Required)
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: gmail-v1-users-userId-settings-cse-identities-emailAddress
      path: /gmail/v1/users/{userId}/settings/cse/identities/{emailAddress}
      operations:
      - name: patch
        method: PATCH
        description: Google PATCH CSE Identites
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Content-Type
          in: header
          type: string
        - name: Accept
          in: header
          type: string
        - name: userId
          in: path
          type: string
          description: (Required)
          required: true
        - name: emailAddress
          in: path
          type: string
          description: (Required)
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: gmail-v1-users-userId-settings-sendAs-sendAsEmail
      path: /gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}
      operations:
      - name: patch
        method: PATCH
        description: Google Patch Send As
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: Content-Type
          in: header
          type: string
        - name: Accept
          in: header
          type: string
        - name: userId
          in: path
          type: string
          description: (Required)
          required: true
        - name: sendAsEmail
          in: path
          type: string
          description: (Required)
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
  exposes:
  - type: rest
    namespace: gmail-patch-rest
    port: 8080
    description: REST adapter for Google Gmail API — Patch. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/gmail/v1/users/{userid}/labels/{id}
      name: gmail-v1-users-userid-labels-id
      description: REST surface for gmail-v1-users-userId-labels-id.
      operations:
      - method: PATCH
        name: patch
        description: Google Patch Labels
        call: gmail-patch.patch
        with:
          Content-Type: rest.Content-Type
          Accept: rest.Accept
          userId: rest.userId
          id: rest.id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/gmail/v1/users/{userid}/settings/cse/identities/{emailaddress}
      name: gmail-v1-users-userid-settings-cse-identities-emailaddress
      description: REST surface for gmail-v1-users-userId-settings-cse-identities-emailAddress.
      operations:
      - method: PATCH
        name: patch
        description: Google PATCH CSE Identites
        call: gmail-patch.patch
        with:
          Content-Type: rest.Content-Type
          Accept: rest.Accept
          userId: rest.userId
          emailAddress: rest.emailAddress
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/gmail/v1/users/{userid}/settings/sendas/{sendasemail}
      name: gmail-v1-users-userid-settings-sendas-sendasemail
      description: REST surface for gmail-v1-users-userId-settings-sendAs-sendAsEmail.
      operations:
      - method: PATCH
        name: patch
        description: Google Patch Send As
        call: gmail-patch.patch
        with:
          Content-Type: rest.Content-Type
          Accept: rest.Accept
          userId: rest.userId
          sendAsEmail: rest.sendAsEmail
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: gmail-patch-mcp
    port: 9090
    transport: http
    description: MCP adapter for Google Gmail API — Patch. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: google-patch-labels
      description: Google Patch Labels
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: gmail-patch.patch
      with:
        Content-Type: tools.Content-Type
        Accept: tools.Accept
        userId: tools.userId
        id: tools.id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: google-patch-cse-identites
      description: Google PATCH CSE Identites
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: gmail-patch.patch
      with:
        Content-Type: tools.Content-Type
        Accept: tools.Accept
        userId: tools.userId
        emailAddress: tools.emailAddress
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: google-patch-send
      description: Google Patch Send As
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: gmail-patch.patch
      with:
        Content-Type: tools.Content-Type
        Accept: tools.Accept
        userId: tools.userId
        sendAsEmail: tools.sendAsEmail
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.