Skip to content
Putting technology to work.
Insights to guide decisions and action.

Search articles

AI agents using gws should move to gwscli or MCP by February 1

Table of contents · 7 items

The CLI "gws" (googleworkspace/cli) for operating Google Workspace is a community project that Google does not officially support. On November 24, 2026, Google began general availability (GA) of its official Workspace CLI, "gwscli". In an announcement the same day, Google asked that AI agents handling Workspace data use MCP (Model Context Protocol, a common mechanism for connecting AI agents to external tools and data) instead of calling REST APIs directly, and said it will technically enforce this from February 1, 2027. From April 1, 2027, Scaled tier billing will also begin for the Gmail, Calendar, and Drive APIs and for the Workspace MCP servers.

gws is a CLI that calls REST APIs directly. That means any process where an AI agent uses gws needs a new destination decided by February 1, 2027. On the other hand, the announcement does not say whether routine scripts that do not involve AI agents can keep running on gws.

This article sorts out whether processes using gws should continue on gwscli, the Workspace MCP servers, or gws, split by whether they are AI agent use cases. It is based on desk research conducted on November 26, 2026, reviewing Google's announcement, developer documentation, terms, and the gws repository; neither gws nor gwscli was run on actual machines. For an introduction to the features of gws itself, see the article on Google Workspace CLI.

What was announced on November 24

Here are the key points of the Google Workspace Updates announcement and the developer documentation and terms it links to.

ItemWhat the announcement and documentation sayTimeframe
gwscliGeneral availability (GA). Announced as a Google-managed way to connect AI agents, alongside the Workspace MCP serversNovember 24, 2026 (rolling out to all domains over two weeks)
MCP requirementAI agents and similar tools access Workspace data through MCP instead of calling REST APIs directlyTechnically enforced from February 1, 2027
Agents that call REST APIs directlyLimited to Standard tier quotas, regardless of the tier selectedFrom February 1, 2027
Workspace AI Tools AddendumTerms requiring AI agents and similar tools to use Google's MCP. They also prohibit workarounds that evade this classificationTakes effect on February 1, 2027
Usage tier billingScaled tier billing begins for the Gmail, Calendar, and Drive APIs and the MCP serversFrom April 1, 2027
Admin consoleAccess management for external AI tools, MCP servers, Workspace CLI, and APIs, along with confirmation rules and agent audit logs, are handled under "Security > API Controls"Rolling out over two weeks

The original announcement reads: "AI agents or similar access tools must use MCP to access Workspace data, rather than calling Workspace REST APIs directly. Technical enforcement begins on February 1, 2027." The developer documentation (Usage tiers and quotas for Google Workspace APIs and MCP servers) states that agents calling REST APIs directly after February 1 are "limited to Standard Tier quotas, regardless of the tier selected."

The terms (Workspace AI Tools Addendum) require the use of Google's MCP when a tool is an AI agent, an AI harness (the software layer that runs agents), or an AI model, or is driven by one. CLIs are included in the definition as one type of entry point to data (GWS Access Point). The terms also state, "You may not obfuscate or otherwise allow any GWS Access Tool to avoid classification as a GWS Access Tool," prohibiting attempts to avoid the requirement by disguising agent processing as some other mechanism.

On the gws side, the following note was added to the top of the README on the same day, November 24.

gws is a community project and is not an officially supported Google product. It keeps working, and you can move when you’re ready.

The FAQ says, "Future development will be concentrated on the official CLI." The latest version of @googleworkspace/cli on npm is 0.22.5 (published March 31, 2026), and the only repository commits since then are a CI configuration change (October 30) and the README update on November 24. The README's statement that you can move when you are ready does not mention the MCP requirement. For AI agent use cases, plan around the February 1, 2027 deadline instead.

Decisions by use case

Processes where an AI agent calls gws

This covers cases where you have installed the gws skill in an agent such as Claude Code and let it operate, or where gws is called within processes the agent has assembled. From February 1, 2027, this usage will be limited to Standard tier quotas, and the terms also require the use of MCP. Rather than staying on gws, plan on moving to one of the following.

  • Agents running in a terminal, VM, or container: gwscli. The announcement describes the CLI as "for terminal-based agents"
  • Agents running in the cloud or on the web: the Workspace MCP servers. The announcement positions them for "cloud and web-based AI agents." The GA scope covers Gmail, Drive, Docs, Sheets, Slides, Calendar, Chat, and Tasks

According to the official guide, using gwscli requires enabling the MCP services (such as drivemcp.googleapis.com) in addition to the API for each service. The MCP security settings configured for the project (floor settings) also apply to gwscli requests. However, we did not find a sentence in the documentation we reviewed that explicitly states that using gwscli satisfies the MCP requirement. Because the announcement lists gwscli as a connection method alongside the MCP servers, our editorial team treats both as candidate destinations.

The announcement does not say what to do if you have agents use APIs that are available in neither gwscli nor the GA MCP servers (such as the Admin SDK or Vault). We recommend reviewing, before February 1, whether to keep entrusting those operations to agents (our editorial view).

MCP server connection settings and confirmation rules in the Admin console are covered in detail in the article on the Google Chat MCP server. For how to decide how far to allow agents to write, see the article on boundaries for write operations.

Routine processes that are not agents

This covers cases where fixed processes run through fixed steps from cron or CI. The announcement's MCP requirement targets "AI agents or similar access tools," and it does not say whether routine processes with no AI involvement also need MCP. It also does not say how continuing on gws will be treated, so this article does not draw a firm conclusion.

The announcement and documentation state the following two points.

  • Separate your OAuth clients. The announcement advises using a different OAuth client for traditional, non-agent functionality than the one used for agents
  • Quotas from April 1. According to the documentation, REST API projects that run within Standard quotas will continue to work as before. Projects that exceed the quotas will need to join the Scaled tier or use the exception for projects used only internally (the internal-use exception, configured by a Workspace super administrator). Because gws calls REST APIs directly, it is a good idea to also check the usage of the projects gws uses on the Google Cloud console dashboard

If you stay on gws, assume that there is no official support, that no new features have been added since March 31, and that the README still carries the warning "Expect breaking changes as we march toward v1.0." The README does not tell you how many bug fixes or authentication-related fixes will be made going forward. For any process you keep, we recommend recording why you are keeping it and when you will review it (our editorial suggestion).

In our editorial reading, moving routine processes to gwscli falls outside the core of what Google intends. The official guide describes gwscli as "designed primarily for AI agents operating in automated environments," and, as discussed later, cautions against writing fixed command shapes into static scripts. If you want a setup that receives official support, rewriting the process to call REST APIs with Google's client libraries or similar is also an option.

A diagram showing, in four boxes by use case, where processes using gws should go. Processes called by AI agents move to gwscli or the Workspace MCP servers. MCP is required from February 1, 2027, and agents get their own separate OAuth client. For routine processes that are not agents, the announcement does not say how continuing on gws will be treated. gws has no official support and has received no new features since March 31. When building with gwscli, do not hard-code the command shape; check it at run time with help and schema. Important operations may stop to wait for confirmation input, and there is no Gmail send command. For APIs available in neither gwscli nor the MCP servers, such as the Admin SDK, the announcement does not say how agent use will be treated

Facts about gwscli confirmed in the official guide

Here are the points relevant to the migration decision from the official guide "Use the Google Workspace command-line interface (CLI)" (updated November 25, 2026).

Nine services are supported. They are Calendar, Chat, Docs, Drive, Gmail, People API, Sheets, Slides, and Tasks. The People API is in Developer Preview (early access for developers), and using it requires enrolling your project in the Developer Preview Program. The table in the gws README on choosing between tools lists eight services, "Gmail, Calendar, Drive, Docs, Sheets, Slides, Chat, or Contacts"; it omits Tasks and includes Contacts (equivalent to the People API), which conflicts with the official guide. Use the list in the official guide for your decisions. The README FAQ also says "gwscli has a curated set of commands designed for agents rather than one command per API method.", so it does not cover every API.

There is no Gmail send command. The Gmail commands cover searching and reading threads and messages, creating drafts, labels, trash, and spam operations. create_draft, which creates a draft, is described as working "without sending it." Processes that send email with gws cannot be moved to gwscli as is. Sending in Chat (chat send_message) requires a Google Workspace account and a Chat app configured in the project.

Important operations wait for confirmation input. The guide states, "Google Workspace enforces user and administrator approval policies for sensitive actions, such as sending messages, sharing content externally, trashing items, or deleting data." For operations that require confirmation, gwscli prints a confirmation message to standard error and waits for an answer on standard input. Unattended processes with no one to respond may stop there. In the Admin console, administrators can use "Agents > Settings > User review for external agents" to allow without confirmation, require confirmation every time, block, and so on. The login and initial setup commands (auth login and auth setup) also wait for input, so the guide says not to call them in unattended processes.

There are two authentication methods. One is to use an OAuth client for which "Use this client for an AI-powered agent" was selected in the Google Cloud console (what the README FAQ calls is_agentic). The other is to pass an access token issued by a service account with domain-wide delegation through --oauth_token, which can be added to any command. When a token is passed with --oauth_token, neither consent confirmation nor token refresh takes place. The guide warns that tokens may remain in process lists or shell history, and advises using short-lived tokens that carry only the required scopes. In the README's comparison table, reading a service account key file directly is listed as a use case for gws.

Usage telemetry is enabled by default. The guide says, "Usage telemetry is enabled by default." To turn it off, run gwscli logging off. To turn it off only for a single run, set the environment variable GWSCLI_TELEMETRY_ENABLED=0. What is sent includes the service and operation names, option names, version, OS, execution time, HTTP status codes, and error types. Option values, OAuth tokens, search terms, document IDs, email addresses, and content are stated not to be sent.

There is no automatic update. The guide states, "The command-line interface doesn’t auto-update in the background." Check the release notes for new versions and rerun the installation script to update. After updating, reinstall the bundled skills with gwscli skills install --dir <フォルダ> --overwrite as well.

gwscli itself has no separate charge. Requests count toward the Google Cloud project's usage tier and quotas.

A premise for building with gwscli: do not hard-code the command shape

The official guide cautions as follows.

Because the CLI discovers commands, parameters, and schemas dynamically at runtime, command interfaces and output schemas might change without backward compatibility. Don’t rely on fixed command signatures in static scripts.

AI agents and developers should inspect --help and --schema at runtime rather than hardcoding command signatures in static scripts.

Because commands are loaded from the backend on each run, their shape can change even without updating the binary. Migrating by replacing gws commands one by one with gwscli commands and locking them into a fixed-shape script does not fit this caution.

With gwscli, assume an approach that checks at run time, as follows.

  • List the available services and operations with gwscli --help and gwscli <サービス> --help
  • Check an operation's arguments and output with gwscli <サービス> <操作> --help and --schema. The required scopes can be displayed with --show-scopes
  • Install the bundled skills in the agent (gwscli skills install --dir <フォルダ>). The skills are said to teach the agent how to look up commands, how to handle authentication and confirmation, and how to read the output

For reference, here are the rows of the mapping table in the gws README that do not depend on operation names. These are examples as of November 24, so do not use them as fixed replacements.

Taskgwsgwscli (README example)
Logingws auth login -s drive,gmailgwscli auth login drive gmail
Use an existing tokenEnvironment variable GOOGLE_WORKSPACE_CLI_TOKENOption --oauth_token
Inspect what a command doesgws schema drive.files.listgwscli drive search_files --help (or --schema)
Agent skillsnpx skills add https://github.com/googleworkspace/cligwscli skills install --dir <skills folder>

Error handling also changes. The gws README defines exit codes 0 to 5 (2 for authentication errors, 3 for invalid arguments, and so on), but the official gwscli guide does not document exit codes. Output is JSON. For processes that branch on error type, check the actual output before migrating.

How to approach the migration (editorial suggestion)

Based on the announcement and the official guide, we suggest proceeding in the following order.

1. Take inventory. First, identify every place that calls gws.

grep -rnE "\bgws\b|GOOGLE_WORKSPACE_CLI_" --include='*.sh' --include='*.yml' --include='*.yaml' --include='*.json' --include='*.md' .

For each process you find, record the following three points.

  • What runs it (an AI agent, or a routine process from cron or CI)
  • Which OAuth client or service account it authenticates with
  • Which operations of which APIs it uses (including whether it sends, shares externally, or deletes)

2. Separate the OAuth client for agents. The gws README FAQ says that an OAuth client created for gws can also be used with gwscli if you make it is_agentic. However, the official guide and the announcement advise creating a separate client for agents if the client is also used for non-agent functionality. If the same client is shared between cron scripts and agents, create a new one for agents (in Google Auth Platform under Clients, choose Desktop app and select "Use this client for an AI-powered agent"), and keep the existing client for routine processes.

3. Decide on allow and confirmation rules in the Admin console. In "Security > API Controls," decide whether to allow the agent's OAuth client. In "Agents > Settings > User review for external agents," decide which operations require user confirmation. If unattended agents will send or delete, decide here whether to allow those operations without confirmation or remove them from unattended processes. At the time of the announcement, these Admin console settings were rolling out over two weeks, so they may not appear yet.

4. Plan your schedule around February 1 and April 1, 2027. For example, finish the inventory and the OAuth client split in December, then switch agent processes to gwscli or the MCP servers in January and run a trial. Before February 1, remove the gws skills (the gws-*, persona-*, and recipe-* folders) from your agents. If old skills remain, agents may keep using gws commands. As of November 24, the repository's skills/ contains 44 folders starting with gws-, 10 with persona-, and 41 with recipe-. By April 1, check projected usage and costs on the dashboard, including the projects used by routine processes.

The migration prompt in the README also follows a one-by-one human review approach: "For each one, show me the gwscli version and wait for my OK before changing the file. If gwscli has no equivalent, tell me instead of guessing." It also says the login and initial setup commands should be run by a person on their own machine rather than left to the agent.

Scope of verification

On November 26, 2026, we opened and reviewed the following materials (desk research): the November 24 Google Workspace Updates announcement, the developer documentation "Usage tiers and quotas for Google Workspace APIs and MCP servers" (updated November 24), the official gwscli guide (updated November 25) and release notes (updated November 24), the installation instructions file (INSTALL_PROMPT.md), the Workspace MCP server setup guide (updated November 26), the Workspace AI Tools Addendum (revised November 24), the googleworkspace/cli repository and README, and @googleworkspace/cli on npm. Neither gws nor gwscli was run on actual machines. We have not been able to confirm the gwscli version number, any statement explicitly saying that using gwscli satisfies the MCP requirement, how non-agent processes that keep using gws will be treated, or what the February 1 technical enforcement will use to determine whether something is an agent.

The format of the agent skills Google publishes is covered in the article on Agent Skills. How to call Google APIs without distributing service account keys is covered in the article on keyless integration.

For automating Google Workspace operations or planning the migration of scripts and agents, contact us through our free IT & Google Workspace consultation.

References

Share this articleXFacebook
Kakeru Suzuki

Fascinated by the possibilities of technology, has had a deep interest in programming and digital art since student days

Turn this article's theme into your company's next step

The right way forward with Workspace for your company.

We organize data to migrate, sharing rules, and governance structures to map out the journey from implementation to daily operations.

  • Migration and initial setup
  • Sharing and permission organization
  • Governance structure
Consult on Workspace implementation and operations

You can consult with us from the initial conceptual stage. Details from this article will be carried over to the inquiry form.

Receive the latest articles by email