Skip to main content
Glama

Connect Google Workspace

connect_google_workspace

Authenticate to Google Workspace via OAuth, enabling access to services like Gmail, Calendar, and Drive. Supports local loopback or remote consent URL.

Instructions

Connect locally with loopback OAuth or return a remote incremental-consent URL.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
capabilitiesNoGoogle Workspace capability names to request scopes for, e.g. ['calendar', 'chat', 'docs', 'drive', 'forms', 'gmail', 'keep', 'meet', 'people', 'sheets', 'slides', 'tasks']; defaults to ['gmail'] when omitted.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNoResponse field: mode.
stateNoResponse field: state.
actionNoResponse field: action.
resourceNoStable cross-tool Workspace resource handle when applicable.
connectedNoResponse field: connected.
expires_atNoResponse field: expires at.
capabilitiesNoResponse field: capabilities.
after_consentNoResponse field: after consent.
granted_scopesNoResponse field: granted scopes.
requested_scopesNoResponse field: requested scopes.
authorization_urlNoResponse field: authorization url.
granted_capabilitiesNoResponse field: granted capabilities.
newly_requested_scopesNoResponse field: newly requested scopes.
requested_capabilitiesNoResponse field: requested capabilities.
Behavior3/5

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

Annotations indicate readOnlyHint=false and openWorldHint=true, meaning the tool modifies state and may have unknown side effects. The description discloses two OAuth modes but does not elaborate on side effects, credential storage, or the OAuth flow. It adds context beyond annotations but still leaves gaps.

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

Conciseness5/5

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

The description is a single, front-loaded sentence with no wasted words. It efficiently conveys the two modes of operation.

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

Completeness4/5

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

Given the output schema exists and annotations are present, the description covers the key behavioral modes. However, it lacks details on prerequisites (e.g., existing Google credentials), error conditions, and behavior when already connected. Still fairly complete for a connection tool.

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%, and the tool description does not add additional meaning to the single parameter 'capabilities' beyond what the schema provides. Baseline 3 is appropriate.

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

Purpose5/5

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

The description clearly specifies the verb 'connect' and the resource 'Google Workspace' via OAuth, and distinguishes two modes: local loopback OAuth and remote incremental-consent URL. This differentiates it from siblings like 'disconnect_google_workspace' and 'get_google_connection_status'.

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

Usage Guidelines4/5

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

The description implies when to use (to connect to Google Workspace) but does not explicitly state when not to use or mention alternatives like 'refresh_workspace_catalog'. It provides clear context but lacks exclusions.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/guinacio/mcp-google-workspace'

If you have feedback or need assistance with the MCP directory API, please join our Discord server