Skip to content
Back to skills

Gmail

ASecurity

Use when the task touches Gmail through grr (79 methods under `grr gmail` — settings, messages, drafts, labels, threads, …). Carries the service's generated command map, the naming rule applied to gmail, example commands verified with --dry-run, and the least-privilege scope callout.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 29, 2026
ai-agentsgoapi

Works with

  • cli
  • api
  • mcp

Security analysis

A100/100

Scanned November 29, 2026

npx -y skills add debanjanbasu/grr-cli --skill gmail --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Gmail?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Gmail
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/debanjanbasu-gmail/badge)](https://www.skillsdirectory.com/skills/debanjanbasu-gmail)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: grr-gmail
description: "Use when the task touches Gmail through grr (79 methods under `grr gmail` — settings, messages, drafts, labels, threads, …). Carries the service's generated command map, the naming rule applied to gmail, example commands verified with --dry-run, and the least-privilege scope callout."
---

<!-- GENERATED by scripts/generate-skills.ts from the committed Discovery index — index generated at 2026-11-27T13:50:27.758Z. Do not edit by hand; regenerate with `npm run skills`. -->

# grr gmail — Gmail API

**79 methods**, v1, Discovery revision 20261116, all reached as `grr gmail <resource…> <method>` and generated from the same committed index as the CLI tree — this file, `grr api`, and `grr gmail --help` never disagree. Load the core skill first: [grr](../grr/SKILL.md) owns the discovery discipline, the output contract, the safety flags, multi-account, `mcp`, and `ask`.

## Coverage

| Resource path (the id prefix — each command walks these words) | Methods |
| --- | --- |
| `users.messages` | 11 |
| `users.settings` | 10 |
| `users.settings.sendAs` | 7 |
| `users.drafts` | 6 |
| `users.labels` | 6 |
| `users.settings.cse.keypairs` | 6 |
| `users.threads` | 6 |
| `users.settings.cse.identities` | 5 |
| `users.settings.sendAs.smimeInfo` | 5 |
| `users.settings.delegates` | 4 |
| `users.settings.filters` | 4 |
| `users.settings.forwardingAddresses` | 4 |
| `users` | 3 |
| `users.history` | 1 |
| `users.messages.attachments` | 1 |

## Naming, applied to gmail

- Id dots become spaces: `gmail.users.messages.list` → `grr gmail users messages list`. Resource segments and method names keep their exact Discovery casing (`otherContacts`, `getProfile`).
- Flags are the same ids, camelCase → kebab-case: `userId` → `--user-id`, `maxResults` → `--max-results`. Integers parse as numbers, booleans are presence flags, repeated parameters repeat, enum parameters validate.
- 3 methods here take a parameter literally named `format` or `query`; that flag is spelled `--param-format` so it cannot collide with the reserved leaf flags.
- Request bodies are untyped by design: `--params '<json>'` or `--body-file PATH|-`. Typed flags win on conflict.

## Examples

```sh
grr gmail users messages list --user-id me --max-results 10
grr gmail users messages get --user-id me --id <id> --param-format minimal
grr gmail users drafts list --user-id me --max-results 10
grr gmail users messages send --user-id me --dry-run
```

Values in `<angle brackets>` are placeholders — substitute real ids (`me` is the authenticated user wherever the parameter is `--user-id`). Append `--dry-run` to any example to print the resolved request — verb, URL, scopes — instead of sending it.

## Scopes

- Least privilege for reads: `https://www.googleapis.com/auth/gmail.readonly` — the narrowest scope the service's methods accept (it is the least-privilege scope for 13 of 79 methods). Per method, ask the index: `grr api describe <id>` → `leastPrivilegeScope`.
- Scope honesty: a login grants only the scopes it asked for — `grr auth login` requests a small default set, `--service <name>` adds one service's scopes from the embedded index, `--all-scopes` the whole union — minus the Chat app-authentication scopes Google grants only to a service account (`chat.bot`, `chat.app.*`, `chat.import`), which a user consent screen cannot show. A `403` is therefore not a missing consent: it is either a scope outside the current grant (the remedy is a human re-running `grr auth login --service <name>`) or an API that is not enabled on the Cloud project. Surface that distinction; never retry a 403 in a loop.

## Contract

- stdout is data, stderr is logs; JSON by default, `-f jsonl|table|pretty` to switch.
- `--dry-run` before anything destructive — the resolved request as JSON, nothing sent.
- Non-zero exit on failure; errors are actionable (a 403 names the missing scope, a typo gets ranked suggestions).

## Go deeper

- Core skill: [skills/grr/SKILL.md](../grr/SKILL.md) — discipline, contract, safety, accounts.
- `grr api describe gmail.users.messages.list` — the authority on one method's parameters and scopes.
- `grr api list --service gmail` and `grr gmail --help` — browse the whole branch, offline, before any login.
- Site reference: [grr-cli.pages.dev/docs/api-reference/gmail/](https://grr-cli.pages.dev/docs/api-reference/gmail/)

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.