Google · Capability
Google Gmail API — Trash
Google Gmail API — Trash. 2 operations. Lead operation: Google Trash Messsages. Self-contained Naftiko capability covering one Google business surface.
What You Can Do
POST
Post
— Google Trash Messsages
/v1/gmail/v1/users/{userid}/messages/{id}/trash
POST
Post
— Google Trash Threads
/v1/gmail/v1/users/{userid}/threads/{id}/trash
MCP Tools
google-trash-messsages
Google Trash Messsages
google-trash-threads
Google Trash Threads
Capability Spec
naftiko: 1.0.0-alpha2
info:
label: Google Gmail API — Trash
description: 'Google Gmail API — Trash. 2 operations. Lead operation: Google Trash Messsages. Self-contained Naftiko capability
covering one Google business surface.'
tags:
- Google
- Trash
created: '2026-05-19'
modified: '2026-05-19'
binds:
- namespace: env
keys:
GOOGLE_API_KEY: GOOGLE_API_KEY
capability:
consumes:
- type: http
namespace: gmail-trash
baseUri: https://gmail.googleapis.com
description: Google Gmail API — Trash business capability. Self-contained, no shared references.
resources:
- name: gmail-v1-users-userId-messages-id-trash
path: /gmail/v1/users/{userId}/messages/{id}/trash
operations:
- name: post
method: POST
description: Google Trash Messsages
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- 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-threads-id-trash
path: /gmail/v1/users/{userId}/threads/{id}/trash
operations:
- name: post
method: POST
description: Google Trash Threads
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- 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
exposes:
- type: rest
namespace: gmail-trash-rest
port: 8080
description: REST adapter for Google Gmail API — Trash. One Spectral-compliant resource per consumed operation, prefixed
with /v1.
resources:
- path: /v1/gmail/v1/users/{userid}/messages/{id}/trash
name: gmail-v1-users-userid-messages-id-trash
description: REST surface for gmail-v1-users-userId-messages-id-trash.
operations:
- method: POST
name: post
description: Google Trash Messsages
call: gmail-trash.post
with:
Accept: rest.Accept
userId: rest.userId
id: rest.id
body: rest.body
outputParameters:
- type: object
mapping: $.
- path: /v1/gmail/v1/users/{userid}/threads/{id}/trash
name: gmail-v1-users-userid-threads-id-trash
description: REST surface for gmail-v1-users-userId-threads-id-trash.
operations:
- method: POST
name: post
description: Google Trash Threads
call: gmail-trash.post
with:
Accept: rest.Accept
userId: rest.userId
id: rest.id
body: rest.body
outputParameters:
- type: object
mapping: $.
- type: mcp
namespace: gmail-trash-mcp
port: 9090
transport: http
description: MCP adapter for Google Gmail API — Trash. One tool per consumed operation, routed inline through this capability's
consumes block.
tools:
- name: google-trash-messsages
description: Google Trash Messsages
hints:
readOnly: false
destructive: false
idempotent: false
call: gmail-trash.post
with:
Accept: tools.Accept
userId: tools.userId
id: tools.id
body: tools.body
outputParameters:
- type: object
mapping: $.
- name: google-trash-threads
description: Google Trash Threads
hints:
readOnly: false
destructive: false
idempotent: false
call: gmail-trash.post
with:
Accept: tools.Accept
userId: tools.userId
id: tools.id
body: tools.body
outputParameters:
- type: object
mapping: $.