lethe
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| LETHE_HOME | No | Directory for the token, saved scans, audit log, and kill switch. | ~/.config/lethe |
| LETHE_WORKERS | No | Number of parallel unsubscribe requests (1–16). | 6 |
| LETHE_DISABLED | No | Set to `1` to enable the kill switch (or create `LETHE_HOME/DISABLED`). | |
| LETHE_PROVIDER | Yes | Mail provider to use: `m365` or `gmail` (required). | |
| LETHE_M365_CLIENT_ID | No | Your Microsoft Entra application (client) ID for Microsoft 365. | |
| LETHE_M365_TENANT_ID | No | Your Microsoft Entra tenant ID. | organizations |
| LETHE_GMAIL_CLIENT_SECRETS | No | Path to the Gmail desktop-client JSON (OAuth client secret file). |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| lethe_auth_statusA | Report the provider, whether lethe is signed in, its scope, and whether the kill switch is on. |
| lethe_loginA | Start sign-in. Microsoft 365: returns a URL and code to enter, then call lethe_login_finish. Gmail: opens a browser on this machine and waits up to four minutes for you to approve. |
| lethe_login_finishA | Microsoft 365 only: complete the sign-in started by lethe_login. Safe to call repeatedly. |
| lethe_scanA | Read the From and List-Unsubscribe headers of every message received in the last |
| lethe_sendersA | Page through a saved scan (latest by default), biggest senders first. query filters on address or display name; method filters on one-click | link | mailto; include_non_list also shows senders with no List-Unsubscribe header. |
| lethe_unsubscribeA | Unsubscribe from the named sender addresses (from a saved scan; latest by default). One-click senders (RFC 8058) get a single POST to their own unsubscribe URL. Senders with only a plain link are skipped unless allow_link_visits=true; a visited link may still need a confirm click on the sender's page. mailto-only senders are never contacted: lethe cannot send mail, so their addresses are returned for you to email yourself. Flagged senders (possible phishing or broken headers) are skipped unless include_flagged=true. Nothing happens without confirm=true. Without it, this returns the plan. |
| lethe_reportC | What has been done for a scan: every sender with a recorded unsubscribe status. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 7 tools
Each tool maps to a distinct stage of the workflow: auth_status/login/login_finish handle authentication, scan creates a saved scan, senders pages it, unsubscribe acts on senders, and report reviews outcomes. The two-step login pair is clearly differentiated by the descriptions.
All seven tools use the lethe_ prefix and lowercase snake_case, with no mixed casing conventions. The only minor deviation is that some names are verbs (scan, unsubscribe) while others are nouns (senders, report), but the pattern remains readable.
Seven tools are well scoped for a focused email-unsubscribe workflow, and each tool has a clear role. There is no obvious redundancy or missing operational stage that would require more tools.
The core lifecycle is covered: authenticate, scan the mailbox, inspect senders, unsubscribe, and report results. Minor gaps include no logout or kill-switch toggle despite auth_status mentioning it, and no explicit scan listing/deletion management.