Skip to main content
Glama

lethe_scan

Scans From and List-Unsubscribe headers for messages from the last N days, groups senders, saves results, and returns top unsubscribe candidates.

Instructions

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.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "lethe_scan"
  }
}

Input Schema

NameRequiredDescriptionDefault
topNo
daysNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does well: it discloses a persistent side effect ('save the result'), the folder exclusion set, the returned fields, and a latency warning ('A large mailbox can take a few minutes'). It does not disclose whether a rescan overwrites or duplicates prior scans, where results are stored, or any authentication prerequisite implied by the lethe_login/lethe_auth_status siblings.

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?

Three sentences, front-loaded with the operation and scope, then the return contract, then the performance caveat. Every sentence adds information the agent needs, and no wording is redundant.

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?

For a two-parameter, no-annotation, no-output-schema tool, the description covers what it reads, what it excludes, what it persists, and what it returns, including the latency caveat. The remaining gap is workflow context - whether authentication is required and how the scan_id feeds lethe_report/lethe_unsubscribe - which the agent must infer.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate, and it mostly does: `days` is defined as the lookback window and `top` as the count of largest unsubscribable senders returned. It does not state units/bounds for either (e.g. whether `top` caps the returned list only, or whether `days=0` means something special), leaving a small gap.

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 names a specific verb and resource ('Read the From and List-Unsubscribe headers of every message'), scopes it precisely to messages in the last `days` days across all folders except Sent, Drafts and Outbox, and states the transformation ('group them by sender') and the persist step ('save the result'). An agent can tell this is a mailbox-wide header scan that produces a reusable scan_id, distinct from a report or per-sender listing.

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

Usage Guidelines3/5

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

Usage is only implied: the mention of a returned scan_id and 'senders that can be unsubscribed from' hints this is a preparatory step for report/unsubscribe work, but the description never says when to run it versus alternatives such as lethe_report or lethe_senders, nor that a prior lethe_login may be required. The when-to-use signal is inferable but not stated.

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