Skip to main content
Glama
Google Workspace MCP Server

Google Workspace MCP Server

by aaronsb

manage_email

Search, read, send, forward, and organize Gmail messages, drafts, labels, attachments, and filters using Gmail search syntax in a Google Workspace account.

Instructions

Search, read, send, forward, or manage emails in a Google Workspace account. Supports Gmail search syntax.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "operation": "<operation>",
      "email": "<email>"
    },
    "name": "manage_email"
  }
}

Input Schema

NameRequiredDescriptionDefault
ccNoCC email(s), comma-separated. On `replyAll` these are ADDITIONAL — they do not replace the recipients already on the thread.
toNoRecipient email(s), comma-separated
bccNoBCC email(s), comma-separated
bodyNoEmail body text. On `forward`, an optional note prepended ABOVE the forwarded message.
fromNoSender email or RFC 2822 mailbox for a verified Gmail Send As alias
htmlNoTreat body as HTML content (default: plain text)
nameNoLabel name, e.g. 'REC/Receipt'. Nested labels use a slash; create the parent first if Gmail shows nesting.
draftNoSave as a draft instead of sending (default: false). On `send`, `reply` and `replyAll`, attachments force a draft. Under the draft-only-email safety policy, these operations need `draft: true`.
emailYesAccount email address
queryNoGmail search query (e.g. "from:alice subject:meeting has:attachment")
draftIdNoDraft id as returned by listDrafts (an r… id, not the message id)
idsOnlyNoOn `search`: return only message ids, up to 500 per page, without fetching each message's headers. For counting a large result or collecting ids to pass to bulk_operations batch mode (e.g. modify).
matchToNoFilter criterion: recipient, e.g. a list or alias address
subjectNoEmail subject line
filenameNoAttachment filename, exactly as it appears in the `read` response (e.g. 'invoice_template.md')
filterIdNoFilter id, as listed by `filters`. On previewFilter, the filter a change would replace; leave it out to preview a new filter.
threadIdNoThread ID to retrieve
forwardToNoFilter action: forward each match to this address. It must already be a verified forwarding address in Gmail settings.
matchFromNoFilter criterion: sender, e.g. billing@vendor.com or @vendor.com
matchSizeNoFilter criterion: size in bytes; requires matchSizeComparison
messageIdNoEmail message ID
operationYessearch: find emails by query. Says when more results exist than the page shows; continue with pageToken, or pass idsOnly to collect up to 500 ids per page for bulk_operations. | read: get full email by ID. Pass bodyFormat: 'html' when the plain-text part is a stub (marketing email, invitations, booking confirmations) and the dates/codes you need only exist in the HTML — returned HTML is sanitized and wrapped in a Spotlighting block (ADR-305). | archive: save an email's headers and body to a markdown file in the workspace — a LOCAL archive, not Gmail's 'remove from inbox' (attachments are listed, not downloaded) | send: compose and send a new email (creates draft when attachments present, 35MB attachment limit via upload endpoint) | reply: reply to a message (thread-aware, creates draft when attachments present) | replyAll: reply-all to a message (thread-aware, includes all recipients, creates draft when attachments present) | forward: forward a message to new recipients (includes original attachments by default) | triage: unread inbox summary (sender, subject, date) | trash: move a message to trash | untrash: restore a message from trash | listDrafts: list saved drafts (unsent messages) with each draft's DRAFT id (the r… id), recipient, subject and date. Use that draft id with deleteDraft — a message id from search in:drafts will not work for deletion. | deleteDraft: permanently delete a draft (unsent message) by its draft id (the r… id returned by listDrafts). Irreversible — the draft is discarded, not moved to trash. | getAttachment: download an email attachment to workspace directory (use read first to see attachment list) | viewAttachment: view an image attachment inline without saving to workspace (png, jpg, gif, webp). Use for quick preview — use getAttachment to save. | modify: add or remove labels on a message (e.g. archive, mark read/unread) | previewModifyMatching: evaluate a label change over everything a query matches, without making it: the exact count (up to 10,000), a sample, and what the change does to each message. Holds the matched set and returns the previewToken modifyMatching needs. No ids are returned beyond the sample. | modifyMatching: apply a previewed label change (archive, mark read, label, trash) to exactly the messages previewModifyMatching counted, and report how many changed. Requires its previewToken from an earlier call, within 30 minutes; each preview applies once. | labels: list all labels in the mailbox | createLabel: create a label. A slash in the name makes it nested (e.g. 'REC/Receipt' under 'REC'). Fails if the name already exists. Use `labels` first to check, then pass the returned label ID to `modify`. | filters: list the account's filters: id, criteria and what each does. Gmail allows 1,000. | getFilter: one filter's criteria and actions in words, plus the parameters that recreate or edit it | previewFilter: evaluate a filter without creating it: how many messages it matches today and a sample, what each action does, and any duplicate or overlapping filter. Returns the previewToken createFilter needs; with filterId, previews replacing that filter and returns the token updateFilter needs. Criteria are the match* params; actions are addLabelIds, removeLabelIds and forwardTo. A good criterion is the query of a search that already found the mail. | createFilter: create a filter. Requires the previewToken from previewFilter called with the same parameters, in an earlier call, within 30 minutes. Acts on mail arriving from then on. | updateFilter: change a filter's criteria or actions. Gmail has no in-place update, so this creates the replacement and then deletes the original; the filter gets a new id. Requires the previewToken from previewFilter called with filterId and the same parameters. | deleteFilter: delete a filter. Returns what it was and the parameters to recreate it. | threads: list email threads by query | getThread: get all messages in a thread
pageTokenNoContinue a list from where the previous page stopped: pass the pageToken its response gave. Absent from a response means that response was the last page.
bodyFormatNoHow to render the message body. 'plain' (default) returns text/plain or a crude HTML-strip fallback. 'html' returns the text/html part sanitized — useful when the plain-text part is empty/stub.
matchQueryNoFilter criterion: any Gmail search query the message must match, same syntax as search
maxResultsNoMax results per page (default 10, max 50). On `search` with idsOnly, default and max 500.
outputPathNoLocal path to save the markdown file (workspace-relative; defaults to a slug from the message date and subject)
addLabelIdsNoComma-separated label IDs to add (e.g. STARRED, IMPORTANT, Label_123). On modify, to this message; on the filter operations, to each matching message as it arrives; on the *ModifyMatching operations, to every message the preview counted.
attachmentsNoWorkspace filenames to attach, comma-separated (files must exist in workspace via manage_workspace). Creates draft when present.
matchSubjectNoFilter criterion: words in the subject
previewTokenNoThe token the preview returned for this exact change: previewFilter for createFilter and updateFilter, previewModifyMatching for modifyMatching. Required: the write runs only after its preview has been seen.
removeLabelIdsNoComma-separated label IDs to remove (e.g. UNREAD to mark read, INBOX to archive). On modify, from this message; on the filter operations, from each matching message as it arrives; on the *ModifyMatching operations, from every message the preview counted.
matchExcludeChatsNoFilter criterion: leave chat messages out
matchNegatedQueryNoFilter criterion: a Gmail search query the message must NOT match
matchHasAttachmentNoFilter criterion: only messages with an attachment
labelListVisibilityNoWhether the label appears in the label list: labelShow (default), labelShowIfUnread, or labelHide
matchSizeComparisonNoFilter criterion: whether matches are larger or smaller than matchSize
messageListVisibilityNoWhether the label appears on messages in the message list: show (default) or hide

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv4.9.1
    • changedInput schema / properties / draft / description
      Previous value: -"Save as draft instead of sending (default: false, forced true when attachments present)"New value: +"Save as a draft instead of sending (default: false). On `send`, `reply` and `replyAll`, attachments force a draft. Under the draft-only-email safety policy, these operations need `draft: true`."
  2. Changed19 schema fields changedv4.8.0
    • changedInput schema / properties / addLabelIds / description
      Previous value: -"Comma-separated label IDs to add (e.g. STARRED, IMPORTANT, Label_123)"New value: +"Comma-separated label IDs to add (e.g. STARRED, IMPORTANT, Label_123). On modify, to this message; on the filter operations, to each matching message as it arrives; on the *ModifyMatching operations, to every message the preview counted."
    • addedInput schema / properties / filterId
      Added value: +{
      +  "description": "Filter id, as listed by `filters`. On previewFilter, the filter a change would replace; leave it out to preview a new filter.",
      +  "type": "string"
      +}
    • addedInput schema / properties / forwardTo
      Added value: +{
      +  "description": "Filter action: forward each match to this address. It must already be a verified forwarding address in Gmail settings.",
      +  "type": "string"
      +}
    • addedInput schema / properties / idsOnly
      Added value: +{
      +  "description": "On `search`: return only message ids, up to 500 per page, without fetching each message's headers. For counting a large result or collecting ids to pass to bulk_operations batch mode (e.g. modify).",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / matchExcludeChats
      Added value: +{
      +  "description": "Filter criterion: leave chat messages out",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / matchFrom
      Added value: +{
      +  "description": "Filter criterion: sender, e.g. billing@vendor.com or @vendor.com",
      +  "type": "string"
      +}
    • addedInput schema / properties / matchHasAttachment
      Added value: +{
      +  "description": "Filter criterion: only messages with an attachment",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / matchNegatedQuery
      Added value: +{
      +  "description": "Filter criterion: a Gmail search query the message must NOT match",
      +  "type": "string"
      +}
    • addedInput schema / properties / matchQuery
      Added value: +{
      +  "description": "Filter criterion: any Gmail search query the message must match, same syntax as search",
      +  "type": "string"
      +}
    • addedInput schema / properties / matchSize
      Added value: +{
      +  "description": "Filter criterion: size in bytes; requires matchSizeComparison",
      +  "type": "number"
      +}
    • addedInput schema / properties / matchSizeComparison
      Added value: +{
      +  "description": "Filter criterion: whether matches are larger or smaller than matchSize",
      +  "enum": [
      +    "larger",
      +    "smaller"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / matchSubject
      Added value: +{
      +  "description": "Filter criterion: words in the subject",
      +  "type": "string"
      +}
    • addedInput schema / properties / matchTo
      Added value: +{
      +  "description": "Filter criterion: recipient, e.g. a list or alias address",
      +  "type": "string"
      +}
    • changedInput schema / properties / maxResults / description
      Previous value: -"Max results (default: 10, max: 50)"New value: +"Max results per page (default 10, max 50). On `search` with idsOnly, default and max 500."
    • changedInput schema / properties / operation / description
      Previous value: -"search: find emails by query | read: get full email by ID. Pass bodyFormat: 'html' when the plain-text part is a stub (marketing email, invitations, booking confirmations) and the dates/codes you need only exist in the HTML — returned HTML is sanitized and wrapped in a Spotlighting block (ADR-305). | archive: save an email's headers and body to a markdown file in the workspace — a LOCAL archive, not Gmail's 'remove from inbox' (attachments are listed, not downloaded) | send: compose and send a new email (creates draft when attachments present, 35MB attachment limit via upload endpoint) | reply: reply to a message (thread-aware, creates draft when attachments present) | replyAll: reply-all to a message (thread-aware, includes all recipients, creates draft when attachments present) | forward: forward a message to new recipients (includes original attachments by default) | triage: unread inbox summary (sender, subject, date) | trash: move a message to trash | untrash: restore a message from trash | listDrafts: list saved drafts (unsent messages) with each draft's DRAFT id (the r… id), recipient, subject and date. Use that draft id with deleteDraft — a message id from search in:drafts will not work for deletion. | deleteDraft: permanently delete a draft (unsent message) by its draft id (the r… id returned by listDrafts). Irreversible — the draft is discarded, not moved to trash. | getAttachment: download an email attachment to workspace directory (use read first to see attachment list) | viewAttachment: view an image attachment inline without saving to workspace (png, jpg, gif, webp). Use for quick preview — use getAttachment to save. | modify: add or remove labels on a message (e.g. archive, mark read/unread) | labels: list all labels in the mailbox | createLabel: create a label. A slash in the name makes it nested (e.g. 'REC/Receipt' under 'REC'). Fails if the name already exists. Use `labels` first to check, then pass the returned label ID to `modify`. | threads: list email threads by query | getThread: get all messages in a thread"New value: +"search: find emails by query. Says when more results exist than the page shows; continue with pageToken, or pass idsOnly to collect up to 500 ids per page for bulk_operations. | read: get full email by ID. Pass bodyFormat: 'html' when the plain-text part is a stub (marketing email, invitations, booking confirmations) and the dates/codes you need only exist in the HTML — returned HTML is sanitized and wrapped in a Spotlighting block (ADR-305). | archive: save an email's headers and body to a markdown file in the workspace — a LOCAL archive, not Gmail's 'remove from inbox' (attachments are listed, not downloaded) | send: compose and send a new email (creates draft when attachments present, 35MB attachment limit via upload endpoint) | reply: reply to a message (thread-aware, creates draft when attachments present) | replyAll: reply-all to a message (thread-aware, includes all recipients, creates draft when attachments present) | forward: forward a message to new recipients (includes original attachments by default) | triage: unread inbox summary (sender, subject, date) | trash: move a message to trash | untrash: restore a message from trash | listDrafts: list saved drafts (unsent messages) with each draft's DRAFT id (the r… id), recipient, subject and date. Use that draft id with deleteDraft — a message id from search in:drafts will not work for deletion. | deleteDraft: permanently delete a draft (unsent message) by its draft id (the r… id returned by listDrafts). Irreversible — the draft is discarded, not moved to trash. | getAttachment: download an email attachment to workspace directory (use read first to see attachment list) | viewAttachment: view an image attachment inline without saving to workspace (png, jpg, gif, webp). Use for quick preview — use getAttachment to save. | modify: add or remove labels on a message (e.g. archive, mark read/unread) | previewModifyMatching: evaluate a label change over everything a query matches, without making it: the exact count (up to 10,000), a sample, and what the change does to each message. Holds the matched set and returns the previewToken modifyMatching needs. No ids are returned beyond the sample. | modifyMatching: apply a previewed label change (archive, mark read, label, trash) to exactly the messages previewModifyMatching counted, and report how many changed. Requires its previewToken from an earlier call, within 30 minutes; each preview applies once. | labels: list all labels in the mailbox | createLabel: create a label. A slash in the name makes it nested (e.g. 'REC/Receipt' under 'REC'). Fails if the name already exists. Use `labels` first to check, then pass the returned label ID to `modify`. | filters: list the account's filters: id, criteria and what each does. Gmail allows 1,000. | getFilter: one filter's criteria and actions in words, plus the parameters that recreate or edit it | previewFilter: evaluate a filter without creating it: how many messages it matches today and a sample, what each action does, and any duplicate or overlapping filter. Returns the previewToken createFilter needs; with filterId, previews replacing that filter and returns the token updateFilter needs. Criteria are the match* params; actions are addLabelIds, removeLabelIds and forwardTo. A good criterion is the query of a search that already found the mail. | createFilter: create a filter. Requires the previewToken from previewFilter called with the same parameters, in an earlier call, within 30 minutes. Acts on mail arriving from then on. | updateFilter: change a filter's criteria or actions. Gmail has no in-place update, so this creates the replacement and then deletes the original; the filter gets a new id. Requires the previewToken from previewFilter called with filterId and the same parameters. | deleteFilter: delete a filter. Returns what it was and the parameters to recreate it. | threads: list email threads by query | getThread: get all messages in a thread"
    • changedInput schema / properties / operation / enum
      Previous value: -[
      -  "search",
      -  "read",
      -  "archive",
      -  "send",
      -  "reply",
      -  "replyAll",
      -  "forward",
      -  "triage",
      -  "trash",
      -  "untrash",
      -  "listDrafts",
      -  "deleteDraft",
      -  "getAttachment",
      -  "viewAttachment",
      -  "modify",
      -  "labels",
      -  "createLabel",
      -  "threads",
      -  "getThread"
      -]New value: +[
      +  "search",
      +  "read",
      +  "archive",
      +  "send",
      +  "reply",
      +  "replyAll",
      +  "forward",
      +  "triage",
      +  "trash",
      +  "untrash",
      +  "listDrafts",
      +  "deleteDraft",
      +  "getAttachment",
      +  "viewAttachment",
      +  "modify",
      +  "previewModifyMatching",
      +  "modifyMatching",
      +  "labels",
      +  "createLabel",
      +  "filters",
      +  "getFilter",
      +  "previewFilter",
      +  "createFilter",
      +  "updateFilter",
      +  "deleteFilter",
      +  "threads",
      +  "getThread"
      +]
    • addedInput schema / properties / pageToken
      Added value: +{
      +  "description": "Continue a list from where the previous page stopped: pass the pageToken its response gave. Absent from a response means that response was the last page.",
      +  "type": "string"
      +}
    • addedInput schema / properties / previewToken
      Added value: +{
      +  "description": "The token the preview returned for this exact change: previewFilter for createFilter and updateFilter, previewModifyMatching for modifyMatching. Required: the write runs only after its preview has been seen.",
      +  "type": "string"
      +}
    • changedInput schema / properties / removeLabelIds / description
      Previous value: -"Comma-separated label IDs to remove (e.g. UNREAD, INBOX to archive)"New value: +"Comma-separated label IDs to remove (e.g. UNREAD to mark read, INBOX to archive). On modify, from this message; on the filter operations, from each matching message as it arrives; on the *ModifyMatching operations, from every message the preview counted."
  3. Changed6 schema fields changedv4.6.0
    • addedInput schema / properties / draftId
      Added value: +{
      +  "description": "Draft id as returned by listDrafts (an r… id, not the message id)",
      +  "type": "string"
      +}
    • addedInput schema / properties / labelListVisibility
      Added value: +{
      +  "description": "Whether the label appears in the label list: labelShow (default), labelShowIfUnread, or labelHide",
      +  "enum": [
      +    "labelShow",
      +    "labelShowIfUnread",
      +    "labelHide"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / messageListVisibility
      Added value: +{
      +  "description": "Whether the label appears on messages in the message list: show (default) or hide",
      +  "enum": [
      +    "show",
      +    "hide"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / name
      Added value: +{
      +  "description": "Label name, e.g. 'REC/Receipt'. Nested labels use a slash; create the parent first if Gmail shows nesting.",
      +  "type": "string"
      +}
    • changedInput schema / properties / operation / description
      Previous value: -"search: find emails by query | read: get full email by ID. Pass bodyFormat: 'html' when the plain-text part is a stub (marketing email, invitations, booking confirmations) and the dates/codes you need only exist in the HTML — returned HTML is sanitized and wrapped in a Spotlighting block (ADR-305). | archive: save an email's headers and body to a markdown file in the workspace — a LOCAL archive, not Gmail's 'remove from inbox' (attachments are listed, not downloaded) | send: compose and send a new email (creates draft when attachments present, 35MB attachment limit via upload endpoint) | reply: reply to a message (thread-aware, creates draft when attachments present) | replyAll: reply-all to a message (thread-aware, includes all recipients, creates draft when attachments present) | forward: forward a message to new recipients (includes original attachments by default) | triage: unread inbox summary (sender, subject, date) | trash: move a message to trash | untrash: restore a message from trash | getAttachment: download an email attachment to workspace directory (use read first to see attachment list) | viewAttachment: view an image attachment inline without saving to workspace (png, jpg, gif, webp). Use for quick preview — use getAttachment to save. | modify: add or remove labels on a message (e.g. archive, mark read/unread) | labels: list all labels in the mailbox | threads: list email threads by query | getThread: get all messages in a thread"New value: +"search: find emails by query | read: get full email by ID. Pass bodyFormat: 'html' when the plain-text part is a stub (marketing email, invitations, booking confirmations) and the dates/codes you need only exist in the HTML — returned HTML is sanitized and wrapped in a Spotlighting block (ADR-305). | archive: save an email's headers and body to a markdown file in the workspace — a LOCAL archive, not Gmail's 'remove from inbox' (attachments are listed, not downloaded) | send: compose and send a new email (creates draft when attachments present, 35MB attachment limit via upload endpoint) | reply: reply to a message (thread-aware, creates draft when attachments present) | replyAll: reply-all to a message (thread-aware, includes all recipients, creates draft when attachments present) | forward: forward a message to new recipients (includes original attachments by default) | triage: unread inbox summary (sender, subject, date) | trash: move a message to trash | untrash: restore a message from trash | listDrafts: list saved drafts (unsent messages) with each draft's DRAFT id (the r… id), recipient, subject and date. Use that draft id with deleteDraft — a message id from search in:drafts will not work for deletion. | deleteDraft: permanently delete a draft (unsent message) by its draft id (the r… id returned by listDrafts). Irreversible — the draft is discarded, not moved to trash. | getAttachment: download an email attachment to workspace directory (use read first to see attachment list) | viewAttachment: view an image attachment inline without saving to workspace (png, jpg, gif, webp). Use for quick preview — use getAttachment to save. | modify: add or remove labels on a message (e.g. archive, mark read/unread) | labels: list all labels in the mailbox | createLabel: create a label. A slash in the name makes it nested (e.g. 'REC/Receipt' under 'REC'). Fails if the name already exists. Use `labels` first to check, then pass the returned label ID to `modify`. | threads: list email threads by query | getThread: get all messages in a thread"
    • changedInput schema / properties / operation / enum
      Previous value: -[
      -  "search",
      -  "read",
      -  "archive",
      -  "send",
      -  "reply",
      -  "replyAll",
      -  "forward",
      -  "triage",
      -  "trash",
      -  "untrash",
      -  "getAttachment",
      -  "viewAttachment",
      -  "modify",
      -  "labels",
      -  "threads",
      -  "getThread"
      -]New value: +[
      +  "search",
      +  "read",
      +  "archive",
      +  "send",
      +  "reply",
      +  "replyAll",
      +  "forward",
      +  "triage",
      +  "trash",
      +  "untrash",
      +  "listDrafts",
      +  "deleteDraft",
      +  "getAttachment",
      +  "viewAttachment",
      +  "modify",
      +  "labels",
      +  "createLabel",
      +  "threads",
      +  "getThread"
      +]
  4. First observedv4.5.0

TDQS

C2.6/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are supplied, so the description carries the full behavioral burden, and it discloses essentially nothing: no mention that deleteDraft is irreversible, that filter operations require a previewToken within 30 minutes, that a draft-only-email safety policy gates send/reply, or that attachments force drafts. Those traits exist only in parameter descriptions, so an agent that reads the top-level description alone would not know this tool mixes safe reads with irreversible mutations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Both sentences are front-loaded and free of filler, which is good, but the sizing is wrong for a 28-operation, 38-parameter tool: one sentence of verb list and one of syntax note cannot be 'appropriately sized' for a surface this large. It is concise rather than under-specified only in the sense that the schema absorbs the missing detail.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The extremely rich schema (100% coverage, per-operation prose in the enum) covers most of what would otherwise be missing, which offsets the thumbnail description. Still, the description fails to surface any cross-cutting facts an agent needs before choosing this tool — the draft-first safety policy, preview-token workflow, and irreversible operations — leaving the reader to discover them deep in parameter documentation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3; the schema thoroughly documents all 38 parameters including enum-level per-operation semantics. The description's one contribution, 'Supports Gmail search syntax', adds real meaning for the query/matchQuery parameters but is largely a restatement of the schema's example query text.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names the resource (emails in a Google Workspace account) and several concrete verbs (search, read, send, forward), but 'or manage' is a catch-all that hides the tool's real breadth: drafts, labels, filters, threads, attachments, and bulk label modification are all part of the 28-operation enum and none are mentioned. An agent reading only the description would not realize this tool also handles filter CRUD and label management.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives no when-to-use guidance, no exclusions, and no routing to alternatives such as bulk_operations (which the schema's idsOnly description references) or manage_workspace for attachments. The only hint is 'Supports Gmail search syntax', which is a query-format note rather than a usage rule. All operation-selection logic lives in the schema's operation enum, not the description.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.