Skip to the content
Vaubaan Gateway

Plugins / Gmail

Gmail 2.0.1

The Gmail plugin lets a Vaubaan Gateway mission use Gmail without handing the agent a credential. Search, read (HTML and attachments included), draft, label and create labels in a Gmail mailbox over IMAP, and send messages and drafts over SMTP, with an app password, under risks zoned by who the sender or the recipient is.

Version 2.0.1 · 19 permissions · 4 macro-actions · 14 tools · 17 gateways run this plugin (over the last 90 days).

1 · The model

How Gmail is modelled

1 plane, 11 things. The things that exist at the service and how they nest. Every permission is written over these; a resource of an account is one of them, named by its ref.

1 exactly one, namedn a finite, known set* an unknown number, possibly all the resource carries the environment, in the model only no tool touches it

Account

One account is one Gmail or Google Workspace mailbox, connected with an app password and reached over IMAP, and over SMTP to send.

Resource

The mailbox is its single resource. Reads are priced by who the sender is, drafts and sends by who the recipients are. A draft to an address outside the internal domains and the allowlists is refused; a send there is its own risk, external and irreversible.

Environment

Rule
No permission of this service depends on an environment: each is held once, whatever the resource.
Known
none
Carried by
mailbox.mailbox, in the model only

2 · Macro-actions

What an agent does at Gmail: 4 macro-actions

A mission is made of them: the person ticks the ones the task needs and sets each to a trust level.

  1. 2

    Draft

    Write and edit drafts. Nothing leaves.

    Writing and editing drafts in the mailbox. Nothing leaves: this verb never sends. Each draft is still priced by its recipients (self, colleagues, allowlisted contacts), so a mission can prepare internal notes without preparing mail to partners.

    4 permissions

  2. 3

    Send

    Send a message or a draft. Nothing can call it back.

    Sending a message or a draft over SMTP, under the owner's name. Nothing calls a sent message back, so each recipient zone is a permission of its own, from the mailbox itself to colleagues, allowlisted contacts and anyone else. Sending to an unknown address is how whatever the agent read can leave the company, and is best kept for missions whose job is exactly that.

    4 permissions

  3. 4

    Tidy

    Apply, remove and create labels.

    Organising the mailbox: applying and removing labels on a thread or a message, and creating labels. It is reversible, and moving mail to the trash or to spam is refused outright, because a deletion is not a label. A label the owner declared sensitive is out of this verb: touching one needs "Anything else", the catch-all write.

    3 permissions

3 · The map

The map

19 permissions of 4 macro-actions, in the four rows of the tree. For the chosen trust level, each cell gives yes, ask me or no, and the quota a day.

Trust level

yes runs freelyask me ask me firstno not included

Mild actions run freely; sensitive or costly ones ask first; irreversible ones are left out.Up to sensitive actions run freely; costly and irreversible ones ask first. Limits ×3.Everything but irreversible actions runs freely; those ask first. Limits ×10.

A permission sits in the first row its facts answer: irreversible; costly to undo or unbounded cost; secret or personal data, whole account or bulk, moderate cost, public; otherwise harmless.

Gmail permissions by macro-action and row of the tree, with what the chosen trust level does and the quota a day
RiskSearch the mailRead the structure, the threads and the messages, whoever sent them.DraftWrite and edit drafts. Nothing leaves.SendSend a message or a draft. Nothing can call it back.TidyApply, remove and create labels.
Cannot be repaired

Careful: no. Trusting, Autonomous: ask me.

None

None

  • Send a message to pre-approved external contacts (allowlist) irreversibleWhy it sits here: At least one recipient is outside the organisation, and every one is internal or on the owner's allowlists. The message leaves the organisation under the owner's name and cannot be called back. gmail.send-to-zone-allowlist

    noask me · 60 a dayask me · 200 a day

  • Send a message to any external recipient irreversibleWhy it sits here: At least one recipient is neither internal nor on the allowlists. The cardinal exfiltration vector : whatever the agent read can leave, under the owner's name, to an address an injected message chose, and nothing calls it back. Accept it only for a mission whose job is to write to unknown people, with a tight quota and an approval. gmail.send-to-zone-external

    noask me · 30 a dayask me · 100 a day

None

Repairable, at a price

Careful, Trusting: ask me. Autonomous: runs freely.

None

None

  • Send a message to internal recipients only costly to undoWhy it sits here: Every recipient is the mailbox or on an internal domain. The message stays inside the organisation but cannot be called back : a wrong one is repaired by a correction mail, and colleagues may act on it before. gmail.send-to-zone-internal

    ask me · 20 a dayask me · 60 a dayyes · 200 a day

None

Worth a look

Careful: ask me. Trusting, Autonomous: runs freely.

  • Read messages tagged with a sensitive label (financial, legal, HR, …) personal dataWhy it sits here: Zone override : whoever the sender is, a thread carrying a label the owner declared sensitive is escalated. Guard rail for structurally private correspondence (payroll, legal, HR, invoices). The labels of a thread are unknown before the fetch, so on a mailbox that declares sensitive labels every thread fetch needs this permission, and so does every search that does not exclude each of them with -label:<name>. gmail.read-sensitive-label

    ask me · 50 a dayyes · 150 a dayyes · 500 a day

  • Bulk read across the mailbox (non-discriminating query) in bulkWhy it sits here: search_threads(q="is:unread"), or any query that is not a plain conjunction bounded by a from:<address> clause (a union, a grouping, a negated or missing sender), may return hundreds of threads at once and bypass per-message zoning. A distinct marker forces an explicit acceptance. gmail.bulk-read

    ask me · 20 a dayyes · 60 a dayyes · 200 a day

None

None

  • Bulk apply / remove labels across many threads in bulkWhy it sits here: One call labelling many threads at once. Distinct from the single label write. No modelled tool can touch it today : label_thread takes exactly one thread id and a call without one is refused. Kept for a future batch tool ; in no macro-action until then. gmail.bulk-label-write

    ask me · 50 a dayyes · 150 a dayyes · 500 a day

Harmless

Runs freely at every level.

  • Read mailbox structure (labels, threads, message headers)Why it sits here: Inventory of labels, thread ids, subjects and sender names, and the containment slice of a thread fetch (whose content risk is carried by the from-zone marker emitted alongside). Limited attack surface, but the baseline every read needs. Also covers the synthetic gmail__describe_zones tool, which returns the zoning configuration. gmail.read-mailbox

    yes · 2,000 a dayyes · 6,000 a dayyes · 20,000 a day

  • Read messages from automated / notification sendersWhy it sits here: Notifications (GitHub, Stripe, Vercel…). Little direct PII, but the bodies often carry injectable URLs and markdown (OWASP LLM01). Kept distinct so an "ops" agent can read alerts without unlocking personal correspondence. gmail.read-from-zone-automated

    yes · 1,000 a dayyes · 3,000 a dayyes · 10,000 a day

  • Read messages from internal-domain sendersWhy it sits here: Correspondence between colleagues : may contain secrets, strategic decisions and privileged context. Distinct from the automated zone by least privilege. gmail.read-from-zone-internal

    yes · 500 a dayyes · 1,500 a dayyes · 5,000 a day

  • Read messages from known external contacts (allowlist)Why it sits here: Messages from pre-approved partners and customers (allowlist). Routine business traffic, comparatively low risk. gmail.read-from-zone-known-external

    yes · 500 a dayyes · 1,500 a dayyes · 5,000 a day

  • Read messages from unknown sendersWhy it sits here: Messages whose sender is neither internal nor allowlisted. The cardinal OWASP LLM01 vector — prompt injection through the message body. Strong posture recommended, tight quota and rate limit. gmail.read-from-zone-unknown

    yes · 200 a dayyes · 600 a dayyes · 2,000 a day

  • Read existing draftsWhy it sits here: Drafts reveal unsent intentions and earlier versions of external communications. gmail.read-drafts

    yes · 200 a dayyes · 600 a dayyes · 2,000 a day

  • Create / modify a draft (any recipient)Why it sits here: Baseline write of a draft, whatever its recipients ; the exfiltration axis is carried by the draft-to-zone-* permission needed alongside. Drafts are reversible (delete) and never sent by this plugin. gmail.draft-write

    yes · 300 a dayyes · 900 a dayyes · 3,000 a day

  • Create / modify a draft addressed to self onlyWhy it sits here: A memo to oneself. No external leak while it stays a draft ; sending it (send_draft) is a send risk of its own, priced by its recipients. gmail.draft-to-zone-self

    yes · 200 a dayyes · 600 a dayyes · 2,000 a day

  • Create / modify a draft addressed to internal recipients onlyWhy it sits here: A draft for colleagues. Stays internal while unsent ; no external exfiltration path. gmail.draft-to-zone-internal

    yes · 200 a dayyes · 600 a dayyes · 2,000 a day

  • Create / modify a draft to pre-approved external contacts (allowlist)Why it sits here: A draft to pre-approved external contacts (CRM-like). Limited risk while unsent ; sending it (send_draft) needs gmail.send-to-zone-allowlist as well. gmail.draft-to-zone-allowlist

    yes · 100 a dayyes · 300 a dayyes · 1,000 a day

  • Send a message to the mailbox itself onlyWhy it sits here: A note, report or reminder the agent mails to the mailbox's own address. Nothing leaves the account and the owner deletes it like any message ; the message still lands in the inbox, where whoever reads it may act on it. gmail.send-to-zone-self

    yes · 50 a dayyes · 150 a dayyes · 500 a day

  • Apply / remove labels on a thread or message (single)Why it sits here: Mailbox organisation on one identified thread or message. UI-level and reversible (re-label). TRASH and SPAM are refused by the classifier (a deletion is not a label write) ; a label that is, or may be, one the owner declared sensitive also needs the fallback write permission. gmail.label-write

    yes · 500 a dayyes · 1,500 a dayyes · 5,000 a day

  • Create a user labelWhy it sits here: Adds a label (or a nested one, Clients/2026) to the mailbox. No message moves and nothing is deleted ; the owner removes a label in Gmail. The classifier refuses a system label id, TRASH / SPAM and anything under [Gmail]/, and the executor a name that exists or is a special-use folder. A name that is, or is nested under, a label the owner declared sensitive also needs the fallback write permission. gmail.label-create

    yes · 20 a dayyes · 60 a dayyes · 200 a day

Careful: runs freely 13, ask me first 4, not included 2. Trusting: runs freely 16, ask me first 3. Autonomous: runs freely 17, ask me first 2. Limits are counted over a mission's period: a day unless its creator picks another, or the mission's whole life for a one-off. The figures here are per day.

4 · A few calls

A few calls, classified by the plugin

29 declared calls, run through the plugin's own classifier when this page was built; here one per macro-action and the first the catalog refuses at Careful. The 29 calls, as code.

The callThe plugin seesThe catalog answersA Careful mission
gmail__describe_zones {}
  • gmail.mailbox.label[*].R
  • Read mailbox structure (labels, threads, message headers) gmail.read-mailbox
yes
gmail__create_draft {"to":["me@myorg.com"],"subject":"s","body":"b"}
  • gmail.mailbox.draft.W
  • gmail.mailbox.to-zone[self].W
  • Create / modify a draft (any recipient) gmail.draft-write
  • Create / modify a draft addressed to self only gmail.draft-to-zone-self
yes
gmail__send_message {"to":["me@myorg.com"],"subject":"s","body":"b"}
  • gmail.mailbox.send-zone[self].W
  • Send a message to the mailbox itself only gmail.send-to-zone-self
yes
gmail__create_label {"name":"Clients 2026"}
  • gmail.mailbox.label[*].W
  • Create a user label gmail.label-create
yes
gmail__send_message {"to":["partner@vendor.com"],"bcc":["me@myorg.com"],"subject":"s","body":"b"}
  • gmail.mailbox.send-zone[allowlist].W
  • Send a message to pre-approved external contacts (allowlist) gmail.send-to-zone-allowlist
no

5 · Anything else

Anything else

A call no permission covers touches gmail.uncategorized-write instead of slipping through. No macro-action holds it; a person ticks it knowingly.

PermissionRiskCareful ×1Trusting ×3Autonomous ×10
Uncategorized Gmail writeWhy it sits here: Catch-all for writes no entry above covers. Today : applying or removing a label the owner declared sensitive, or a user label the classifier cannot tell apart from one (sensitive-label[..].W). If the plugin ever surfaces delete_message or create_filter, they land here until a dedicated permission is added — fail-loud by design. In no macro-action. gmail.uncategorized-writeRepairable, at a price costly to undoask me · 50 a dayask me · 150 a dayyes · 500 a day

6 · Tools

Tools

14 tools. A tool's permissions depend on its arguments, so a mission is made of the macro-actions above, not of tools.

14 tools · scroll the list

ToolWhat it doesUsually touches
gmail__describe_zonesShow how the mailbox is zonedgmail.read-mailbox
gmail__search_threadsSearch the mailboxgmail.read-mailbox, gmail.read-from-zone-automated, gmail.read-from-zone-internal, gmail.read-from-zone-known-external, gmail.read-from-zone-unknown, gmail.read-sensitive-label, gmail.bulk-read
gmail__get_threadRead a threadgmail.read-mailbox, gmail.read-from-zone-unknown, gmail.read-sensitive-label
gmail__get_attachmentDownload an attachmentgmail.read-mailbox, gmail.read-from-zone-unknown, gmail.read-sensitive-label
gmail__list_draftsList the draftsgmail.read-drafts
gmail__create_draftSave a draft (never sent)gmail.draft-write, gmail.draft-to-zone-self, gmail.draft-to-zone-internal, gmail.draft-to-zone-allowlist
gmail__send_messageSend a messagegmail.send-to-zone-self, gmail.send-to-zone-internal, gmail.send-to-zone-allowlist, gmail.send-to-zone-external
gmail__send_draftSend a draftgmail.send-to-zone-internal, gmail.send-to-zone-external
gmail__list_labelsList the labelsgmail.read-mailbox
gmail__create_labelCreate a labelgmail.label-create
gmail__label_messageAdd a label to a messagegmail.label-write
gmail__unlabel_messageRemove a label from a messagegmail.label-write
gmail__label_threadAdd a label to a threadgmail.label-write
gmail__unlabel_threadRemove a label from a threadgmail.label-write

7 · Retired permissions

Retired permissions

Kept so the missions that hold them still read; no tool touches them and no new mission is offered them.

  • Create / modify a draft to an external recipient not in the allowlist gmail.draft-to-zone-external-unbounded

8 · Connecting an account

Connecting an account

1 of 3 · a key you create and paste app password

An app password the person creates at Gmail and pastes once; nobody declares anything beforehand.

App password

The whole mailbox over IMAP: an app password has no scopes to choose. What an agent may do is decided by the missions of this gateway, call by call.

  1. Security2-Step VerificationSign in to the Google Account of the mailbox and turn on 2-Step Verification, if it is not on yet: Google offers app passwords only then.
  2. App passwordsOpen the page, create an app password named "Vaubaan Gateway" and copy the 16 letters Google shows; if Google says app passwords are not available, the Google Workspace administrator of the account has turned them off. (open)
  3. SettingsForwarding and POP/IMAPCheck that IMAP is on in Gmail.
  4. Paste the address of the mailbox and the app password here; the spaces between the groups of letters do not matter.
Where
https://myaccount.google.com/apppasswords
Expiry
App passwords do not expire: revoke it on the App passwords page of the Google Account to end this account.
The connect page asks
Gmail address and App password (secret)
The service's documentation
https://support.google.com/accounts/answer/185833
Disconnecting
Delete the app password named "Vaubaan Gateway" at https://myaccount.google.com/apppasswords, in the Google Account of the mailbox.

9 · Health

Health

17 gateways run this plugin (over the last 90 days).

VersionGatewaysCallsSuccessValidated
2.0.071100.0 %
1.0.15no call yet—
1.0.0316100.0 %
0.5.02no call yet—

A version is marked validated by the community with at least 200 reports and a success rate of at least 90 %, over the last 90 days; a gateway shows that mark on the accounts of this service. The figures are refreshed at most hourly (what they mean). It is a community signal, not a security guarantee.

Calls are counted over the last 90 days from the instances that share plugin health. Gateways are counted over the same window among the instances that also share usage statistics, so they are a lower bound. The success rate leaves out calls refused for a rejected credential: a revoked token is the user's configuration, not the plugin.

Last changed 2026-12-02. This page as Markdown: /plugins/gmail.md