CRM & Automation5 min read

Google Workspace CLI (gws): AI Agent Automation Guide

Compare the community Google Workspace CLI, gws, with Google’s supported gwscli. Check authentication, discovery, supported commands and the removed MCP server.

Published · Updated
5 min read
Discovery

Community gws

Curated commands

Official gwscli

OAuth

Authorization

Key Takeaways

Community gws: The community client builds commands from Google Discovery documents.
Official gwscli: Google provides a separate supported CLI with curated commands and packaged skills.
Authorization: Enable the relevant API and verify the actual authenticated account and scopes.

Compare the community Google Workspace CLI, gws, with Google’s supported gwscli. Check authentication, discovery, supported commands and the removed MCP server.

This March guide covered the community gws project. Its installation and authentication differ from Google’s official CLI. For a team implementing Workspace integration, choose the client first and test a scoped read.

Related guidance: web development, Zapier vs Make vs n8n, Model Context Protocol, Gemini CLI, Google Cloud MCP servers for AI agents, Claude skills with MCP for marketing automation, Notion custom agents for autonomous workflows, automating Docs, Sheets, and Slides.

Which Google Workspace CLI is this?

The Google Workspace GitHub project distributes gws as a community tool. Google’s official product is gwscli, which it recommends to users migrating from gws. Both can help agents operate Workspace APIs, but credentials, command syntax and supported actions must be checked for the tool in use. Google’s supported CLI guide.

Installation and authentication

Follow the selected client’s installation guide and complete its OAuth setup for the intended account. Google’s migration instructions explain how to mark the OAuth client for agentic use and how to select a read-only bundle where supported. community gws documentation.

# Inspect before running a read-only request.
gws schema drive.files.list
gws drive files list --params '{"pageSize":10}'
# Equivalent curated action on Google's separate official client:
gwscli drive list_recent_files --pageSize 10

How community gws discovers APIs

Community gws reads Google Discovery documents to construct its command surface. Availability still depends on the enabled service, workspace edition, OAuth grants and admin policy. The official gwscli has a curated action set. Verify a concrete action in the command help.

What happened to the built-in MCP server?

Early versions of community gws included an MCP server over standard input and output. Version 0.8.0 removed the mcp command. Legacy client configuration that launches gws mcp will not provide that server on current versions. the gws changelog.

Agent skills and reusable recipes

The community repository contains skills and examples. The official tool installs its own packaged skills. Inspect the selected skill, tool access and account scopes before allowing writes, and test a read-only task first.

Read and update spreadsheets deliberately

Use a supported Sheets values read or write operation with the spreadsheet ID and explicit A1 range. Retrieve the current values first, preview your changes and re-read that range after writing. The Apps Script push helper replaces project files and is distinct from Sheets cell updates.

Review security controls and dry runs

The community client supports optional Model Armor integration using a configured Google Cloud template. Treat its verdict as one signal. Restrict OAuth access, protect tokens and require verification before sharing, deleting or sending. A dry run is useful when supported for that specific command.

Agency and Business Automation Workflows

For digital agencies and businesses running on Google Workspace, gws enables automation patterns that previously required custom Apps Script code or third-party integration platforms. The combination of CLI scripting, MCP-powered agent workflows, and the git-like spreadsheet feature creates a flexible automation stack. Teams managing CRM and automation workflows benefit most from these patterns.

Client Reporting

Pull reporting templates from Sheets, populate with analytics data via scripts, push back to shared client spreadsheets. Schedule weekly via cron or CI/CD. Eliminates manual copy-paste from dashboards.

Email Campaign Coordination

Agent reads campaign briefs from Drive, drafts email sequences via Gmail, schedules send times against Calendar availability, and logs results to a tracking spreadsheet. One conversation turn handles the full workflow.

Client Onboarding

Create shared Drive folders, set up Calendar holds for kickoff meetings, generate onboarding docs from templates, and send welcome emails. The Project Manager persona handles this as a single recipe.

Cross-Service Search

Search across Gmail, Drive, and Chat simultaneously for a client name or project keyword. Consolidate results into a single report. Essential for audits and knowledge retrieval across fragmented Workspace data.

The key advantage over visual automation platforms like Zapier or Make is composability. Each gws command is a building block that can be chained in shell scripts, called from Python, or invoked by an AI agent. There is no workflow builder UI to learn, no per-operation pricing to manage, and no platform lock-in. For teams already using HubSpot MCP server integrations, gws adds the Google Workspace side of the equation to create a complete agent-driven business automation stack.

Choosing the supported integration

Choose gws when you need its discovery-based surface and can operate the community tool. Evaluate gwscli when the official curated actions cover your task. Pin the version, record scopes and keep a fixture workflow that catches breaking changes.

Conclusion

Record which executable a script uses. The community gws can discover API operations, while Google’s supported gwscli exposes its own commands and packaged skills. A script that launches the historical gws MCP server needs a supported replacement.

For an existing script, record the client version, scopes and commands it uses. For a migration, exercise the equivalent action in a test account and verify the returned resources before enabling writes.

Ready to Automate Google Workspace?

AI-powered Workspace automation is one component of a broader digital transformation strategy. Our team helps businesses design and implement agentic workflows that deliver measurable ROI.

Free consultation
Expert guidance
Tailored solutions

Corrections

Correction, : Distinguished community gws from the supported Google gwscli. Removed the retired built-in MCP command, unsupported Sheets pull/push workflow and invented adoption figures.

Digital Applied newsletter

Deep dives on AI, marketing and development.

Practical guides and fresh insights by email. No recycled takes.

Related Articles

Continue exploring with these related guides