gws-mcp
v0.3.1MCP server wrapping the local `gws` (Google Workspace) CLI, so sandboxed agents (Claude Cowork, etc.) can use Google Workspace through your host-side OAuth…
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
gws_list_services List Google Workspace services
List the Google Workspace services exposed by this MCP server. Respects the host's allowlist (GWS_MCP_ALLOWED_SERVICES).
gws_help Show gws CLI help
Run `gws [args...] --help` to discover services, resources, and methods. Pass an empty array for the top-level help.
| Parameter | Type | Description |
|---|---|---|
args | array | Up to 4 positional args, e.g. ['drive'] or ['drive','files'] |
gws_schema Inspect method schema
Get the JSON schema for `service.resource.method` (e.g. `drive.files.list`, `gmail.users.messages.send`). Use this BEFORE calling `gws_call` to learn parameter and body shapes.
| Parameter | Type | Description |
|---|---|---|
target * | string | Dotted path: service.resource[.subresource].method |
resolveRefs | boolean | Inline $ref references into a single schema |
gws_call Invoke a Google Workspace API
Generic dispatcher to the host's `gws` CLI. Always call `gws_schema` first to learn the exact param/body shape.
| Parameter | Type | Description |
|---|---|---|
method * | string | Method name, e.g. list, get, create, update, send, delete |
resource * | string | Resource on the service, e.g. files, spreadsheets, users |
service * | string | Service name, e.g. drive, sheets, gmail, calendar, docs |
apiVersion | string | Override API version (e.g. v2, v3) |
dryRun | boolean | Validate the request locally and print what would be sent without hitting Google. Use this to debug body/param shapes safely. |
format | string | Output format (default json) |
json | Request body for POST/PATCH/PUT methods. Pass a JSON object/array (preferred) — do NOT pre-stringify it; the server will JSON.stringify exactly once. A raw JSON string is accepted as a fallback (and… | |
output | string | HOST path to write binary response (e.g. for drive.files.get with alt=media) |
pageAll | boolean | Auto-paginate, one JSON line per page (NDJSON) |
pageDelayMs | integer | Delay between pages in ms |
pageLimit | integer | Max pages when pageAll=true |
params | URL/query parameters. Pass a JSON object (preferred) — do NOT pre-stringify it. A JSON-encoded string is also accepted as a fallback. | |
subResource | string | Optional sub-resource (e.g. 'messages' for gmail users messages) |
upload | string | Absolute path on the HOST to a file to upload as multipart media. Sandbox paths will NOT work — write the file to a host-shared location first. |
uploadContentType | string | MIME type of the upload |
gws_list_skills List Google Workspace skills
List field-tested skill guides (loaded from the host's ~/.agents/skills/gws-*). Each entry has name, description, and the related `gws ... --help` command. Call `gws_get_skill` to read the full guide.
gws_get_skill Read a Google Workspace skill guide
Return the full markdown body of a skill loaded from ~/.agents/skills/<name>/SKILL.md. Use this to get concrete examples, param shapes, and safety notes for a specific workflow.
| Parameter | Type | Description |
|---|---|---|
name * | string | Skill name as shown by `gws_list_skills`, e.g. `gws-drive`, `gws-sheets` |