Google Workspace
Access all of Google Workspace — Drive, Gmail, Calendar, Sheets, Docs, Chat, Admin, and 20+ more services — through a single toolkit. Powered by the gws CLI and the Model Context Protocol, tools are discovered dynamically at runtime. When Google adds new APIs or gws ships updates, your agent picks them up automatically with zero code changes.Prerequisites
Authenticate with Google
Quick Start
Config
Google Workspace services to expose as tools. Use
["all"] to enable every service.Path to the
gws binary. Override if it’s not on your PATH.Include higher-level workflow tools (e.g., composing and sending a Gmail message, uploading to Drive with metadata).
Include helper tools for common multi-step operations.
Environment variables forwarded to the gws process. Useful for overriding auth (e.g.,
GOOGLE_WORKSPACE_CLI_TOKEN).Service Selection
Each service adds roughly 10-80 tools. Select only what you need to keep the tool set manageable:Available Services
| Service | Description |
|---|---|
drive | Files, folders, permissions, shared drives |
gmail | Messages, threads, labels, drafts, settings |
calendar | Events, calendars, ACLs |
sheets | Spreadsheets, values, charts |
docs | Documents, content manipulation |
chat | Spaces, messages, memberships |
admin | Users, groups, organizational units |
contacts | People, contact groups |
tasks | Task lists, tasks |
forms | Forms, responses |
slides | Presentations, pages |
keep | Notes, lists |
vault | Matters, holds, exports |
groups | Group settings |
alertcenter | Alerts |
classroom | Courses, students, teachers |
meet | Conference records, spaces |
sites | Sites management |
Using ToolRouter for Large Tool Sets
When enabling many services, usetoolRouter to automatically select only the relevant tools per query. This keeps LLM prompts small and responses fast:
Advanced: Raw MCPToolProvider
For full control over the MCP connection (custom filtering, include/exclude tools), useMCPToolProvider directly:
Lifecycle
The toolkit must be connected before use and closed when done:Comparison with Individual Toolkits
RadarOS also ships dedicated toolkits for Gmail, Google Sheets, and Google Calendar. Here’s when to use which:GoogleWorkspaceToolkit | Individual Toolkits | |
|---|---|---|
| Coverage | 30+ services, 500+ API methods | 3-4 hand-crafted tools per service |
| Setup | Install gws CLI + MCP SDK | Install googleapis npm package |
| Auth | Managed by gws (encrypted, multi-account) | Manual OAuth2 credentials + token files |
| Tool quality | Auto-generated from API schemas | Hand-tuned descriptions and parameters |
| Dependencies | gws binary + @modelcontextprotocol/sdk | googleapis |
| Best for | Broad workspace access, rapid prototyping | Fine-grained control over specific services |
Troubleshooting
”gws: command not found”
The gws CLI is not installed or not on your PATH.“Access blocked” during gws auth
Your OAuth app is in testing mode and your account isn’t listed as a test user. See the gws troubleshooting guide.Too many tools overwhelming the LLM
Reduce the service list or usetoolRouter: