Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LETHE_HOMENoDirectory for the token, saved scans, audit log, and kill switch.~/.config/lethe
LETHE_WORKERSNoNumber of parallel unsubscribe requests (1–16).6
LETHE_DISABLEDNoSet to `1` to enable the kill switch (or create `LETHE_HOME/DISABLED`).
LETHE_PROVIDERYesMail provider to use: `m365` or `gmail` (required).
LETHE_M365_CLIENT_IDNoYour Microsoft Entra application (client) ID for Microsoft 365.
LETHE_M365_TENANT_IDNoYour Microsoft Entra tenant ID.organizations
LETHE_GMAIL_CLIENT_SECRETSNoPath 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

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
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 days days (all folders except Sent, Drafts and Outbox), group them by sender, and save the result. Returns totals, the scan_id, and the top biggest senders that can be unsubscribed from. A large mailbox can take a few minutes.

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

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.6/5.0

Scored across 7 tools

Disambiguation5/5

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.

Naming Consistency4/5

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.

Tool Count5/5

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.

Completeness4/5

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.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues