Skip to content

[BUG] Gmail connector OAuth missing write/modify scopes for label operations #47383

Description

@lewistaylor

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

The Gmail connector's OAuth flow should request the gmail.modify scope (or equivalent) so that all exposed tools — including label_thread and label_message — work correctly. If a tool requires a scope that isn't currently granted, either the scope should be added to the OAuth request, or the tool should not be exposed in the UI.

What Should Happen?

The Gmail connector's OAuth flow should request the gmail.modify scope (or equivalent) so that all exposed tools — including label_thread and label_message — work correctly. If a tool requires a scope that isn't currently granted, either the scope should be added to the OAuth request, or the tool should not be exposed in the UI.

Error Messages/Logs

This connector requires additional permissions. The user needs to reconnect it with the appropriate access.

Steps to Reproduce

  1. Open Cowork mode in Claude Desktop
    1. Connect the Gmail connector
    1. Search for email threads using search_threads — this works fine (read access is granted)
    1. Attempt to apply a label to a thread using label_thread
    1. Observe error: "This connector requires additional permissions. The user needs to reconnect it with the appropriate access."
    1. Disconnect, delete, and reconnect the Gmail connector
    1. Check Google's third-party access permissions screen — only "See your profile info", "Manage drafts and send emails", and "View your email messages and settings" are listed. No modify/write scope for labels.
    1. Retry label_thread — same error persists

Claude Model

Opus

Is this a regression?

No, this never worked

Last Working Version

No response

Claude Code Version

Cowork mode (Claude Desktop) — April 2026

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

This bug was encountered in Cowork mode (not Claude Code CLI). The label_thread and label_message tools appear to have been recently added to the Gmail connector, but the OAuth app registration was not updated to include the gmail.modify scope. Screenshot of Google's third-party permissions screen confirms only read + drafts/send scopes are granted. The Terminal/Shell field above is not applicable — this is a Cowork desktop issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:coworkarea:routinesClaude Code routines on web, used for scheduled tasks, webhook-triggered tasks, etc.bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions