Google · Capability

Google Gmail API — Create

Google Gmail API — Create. 8 operations. Lead operation: Google Create Drafts. Self-contained Naftiko capability covering one Google business surface.

Run with Naftiko GoogleCreate

What You Can Do

POST
Post — Google Create Drafts
/v1/gmail/v1/users/{userid}/drafts
POST
Post — Google Create Labels
/v1/gmail/v1/users/{userid}/labels
POST
Post — Google Create CSE Identites
/v1/gmail/v1/users/{userid}/settings/cse/identities
POST
Post — Google Create CSE Keypairs
/v1/gmail/v1/users/{userid}/settings/cse/keypairs
POST
Post — Google Create Delegates
/v1/gmail/v1/users/{userid}/settings/delegates
POST
Post — Google Create Filters
/v1/gmail/v1/users/{userid}/settings/filters
POST
Post — Google Create Forwarding Address
/v1/gmail/v1/users/{userid}/settings/forwardingaddresses
POST
Post — Google Create Send As
/v1/gmail/v1/users/{userid}/settings/sendas

MCP Tools

google-create-drafts

Google Create Drafts

google-create-labels

Google Create Labels

google-create-cse-identites

Google Create CSE Identites

google-create-cse-keypairs

Google Create CSE Keypairs

google-create-delegates

Google Create Delegates

google-create-filters

Google Create Filters

google-create-forwarding-address

Google Create Forwarding Address

google-create-send

Google Create Send As

Capability Spec

gmail-create.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Google Gmail API — Create
  description: 'Google Gmail API — Create. 8 operations. Lead operation: Google Create Drafts. Self-contained Naftiko capability
    covering one Google business surface.'
  tags:
  - Google
  - Create
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GOOGLE_API_KEY: GOOGLE_API_KEY
capability:
  consumes:
  - type: http
    namespace: gmail-create
    baseUri: https://gmail.googleapis.com
    description: Google Gmail API — Create business capability. Self-contained, no shared references.
    resources:
    - name: gmail-v1-users-userId-drafts
      path: /gmail/v1/users/{userId}/drafts
      operations:
      - name: post
        method: POST
        description: Google Create Drafts
        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: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: gmail-v1-users-userId-labels
      path: /gmail/v1/users/{userId}/labels
      operations:
      - name: post
        method: POST
        description: Google Create 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: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: gmail-v1-users-userId-settings-cse-identities
      path: /gmail/v1/users/{userId}/settings/cse/identities
      operations:
      - name: post
        method: POST
        description: Google Create 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: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: gmail-v1-users-userId-settings-cse-keypairs
      path: /gmail/v1/users/{userId}/settings/cse/keypairs
      operations:
      - name: post
        method: POST
        description: Google Create CSE Keypairs
        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: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: gmail-v1-users-userId-settings-delegates
      path: /gmail/v1/users/{userId}/settings/delegates
      operations:
      - name: post
        method: POST
        description: Google Create Delegates
        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: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: gmail-v1-users-userId-settings-filters
      path: /gmail/v1/users/{userId}/settings/filters
      operations:
      - name: post
        method: POST
        description: Google Create Filters
        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: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: gmail-v1-users-userId-settings-forwardingAddresses
      path: /gmail/v1/users/{userId}/settings/forwardingAddresses
      operations:
      - name: post
        method: POST
        description: Google Create Forwarding Address
        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: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: gmail-v1-users-userId-settings-sendAs
      path: /gmail/v1/users/{userId}/settings/sendAs
      operations:
      - name: post
        method: POST
        description: Google Create 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: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
  exposes:
  - type: rest
    namespace: gmail-create-rest
    port: 8080
    description: REST adapter for Google Gmail API — Create. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/gmail/v1/users/{userid}/drafts
      name: gmail-v1-users-userid-drafts
      description: REST surface for gmail-v1-users-userId-drafts.
      operations:
      - method: POST
        name: post
        description: Google Create Drafts
        call: gmail-create.post
        with:
          Content-Type: rest.Content-Type
          Accept: rest.Accept
          userId: rest.userId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/gmail/v1/users/{userid}/labels
      name: gmail-v1-users-userid-labels
      description: REST surface for gmail-v1-users-userId-labels.
      operations:
      - method: POST
        name: post
        description: Google Create Labels
        call: gmail-create.post
        with:
          Content-Type: rest.Content-Type
          Accept: rest.Accept
          userId: rest.userId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/gmail/v1/users/{userid}/settings/cse/identities
      name: gmail-v1-users-userid-settings-cse-identities
      description: REST surface for gmail-v1-users-userId-settings-cse-identities.
      operations:
      - method: POST
        name: post
        description: Google Create CSE Identites
        call: gmail-create.post
        with:
          Content-Type: rest.Content-Type
          Accept: rest.Accept
          userId: rest.userId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/gmail/v1/users/{userid}/settings/cse/keypairs
      name: gmail-v1-users-userid-settings-cse-keypairs
      description: REST surface for gmail-v1-users-userId-settings-cse-keypairs.
      operations:
      - method: POST
        name: post
        description: Google Create CSE Keypairs
        call: gmail-create.post
        with:
          Content-Type: rest.Content-Type
          Accept: rest.Accept
          userId: rest.userId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/gmail/v1/users/{userid}/settings/delegates
      name: gmail-v1-users-userid-settings-delegates
      description: REST surface for gmail-v1-users-userId-settings-delegates.
      operations:
      - method: POST
        name: post
        description: Google Create Delegates
        call: gmail-create.post
        with:
          Content-Type: rest.Content-Type
          Accept: rest.Accept
          userId: rest.userId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/gmail/v1/users/{userid}/settings/filters
      name: gmail-v1-users-userid-settings-filters
      description: REST surface for gmail-v1-users-userId-settings-filters.
      operations:
      - method: POST
        name: post
        description: Google Create Filters
        call: gmail-create.post
        with:
          Content-Type: rest.Content-Type
          Accept: rest.Accept
          userId: rest.userId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/gmail/v1/users/{userid}/settings/forwardingaddresses
      name: gmail-v1-users-userid-settings-forwardingaddresses
      description: REST surface for gmail-v1-users-userId-settings-forwardingAddresses.
      operations:
      - method: POST
        name: post
        description: Google Create Forwarding Address
        call: gmail-create.post
        with:
          Content-Type: rest.Content-Type
          Accept: rest.Accept
          userId: rest.userId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/gmail/v1/users/{userid}/settings/sendas
      name: gmail-v1-users-userid-settings-sendas
      description: REST surface for gmail-v1-users-userId-settings-sendAs.
      operations:
      - method: POST
        name: post
        description: Google Create Send As
        call: gmail-create.post
        with:
          Content-Type: rest.Content-Type
          Accept: rest.Accept
          userId: rest.userId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: gmail-create-mcp
    port: 9090
    transport: http
    description: MCP adapter for Google Gmail API — Create. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: google-create-drafts
      description: Google Create Drafts
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: gmail-create.post
      with:
        Content-Type: tools.Content-Type
        Accept: tools.Accept
        userId: tools.userId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: google-create-labels
      description: Google Create Labels
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: gmail-create.post
      with:
        Content-Type: tools.Content-Type
        Accept: tools.Accept
        userId: tools.userId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: google-create-cse-identites
      description: Google Create CSE Identites
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: gmail-create.post
      with:
        Content-Type: tools.Content-Type
        Accept: tools.Accept
        userId: tools.userId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: google-create-cse-keypairs
      description: Google Create CSE Keypairs
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: gmail-create.post
      with:
        Content-Type: tools.Content-Type
        Accept: tools.Accept
        userId: tools.userId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: google-create-delegates
      description: Google Create Delegates
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: gmail-create.post
      with:
        Content-Type: tools.Content-Type
        Accept: tools.Accept
        userId: tools.userId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: google-create-filters
      description: Google Create Filters
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: gmail-create.post
      with:
        Content-Type: tools.Content-Type
        Accept: tools.Accept
        userId: tools.userId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: google-create-forwarding-address
      description: Google Create Forwarding Address
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: gmail-create.post
      with:
        Content-Type: tools.Content-Type
        Accept: tools.Accept
        userId: tools.userId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: google-create-send
      description: Google Create Send As
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: gmail-create.post
      with:
        Content-Type: tools.Content-Type
        Accept: tools.Accept
        userId: tools.userId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.