Skip to main content
Glama

Review newsletters and mailing lists

review_unsubscribes
Read-onlyIdempotent

Lists newsletter and mailing-list senders so the person can review and unsubscribe.

Lists the newsletter and mailing-list senders in the synced mail across all inboxes (or one), one row per sender: how many messages, how many unread, the newest date, whether one-click unsubscribe is available, and a noise reading: perWeek (messages per week over windowDays days, up to 28), unreadRatio, noise (high, medium, low: how much the person ignores a frequent sender; never high for a VIP or someone they have replied to) and a suggestion (unsubscribe, archive, keep) and a one-sentence reason built from those same numbers, to show when the person asks why. A known-good sender is never noise, and a service's notification stream (notifications@, alerts@; notification: true) is always keep: its settings live in that service. Noisiest first. Paged: returns at most limit senders (default 25, max 100) starting at offset, plus totalSenders/hasMore/nextOffset; page with offset rather than assuming one call returns every sender. Rows no longer carry messageIds (only hasInboxMail, a boolean): to archive a sender's mail use archive_messages with sender { inboxId, email }, not a raw id list. Every call also includes a numbered text list with previews (same as show_inbox) and a top-level sayToHuman summary; apps that cannot show the list (Claude Code and other terminals) should show the text as-is, without the block marked for the agent. When the person names rows ("unsubscribe from 1 and 3"), take inboxId, email, and newestMessageId from that block or from structuredContent.rows (field n is the row number). Unsubscribe with propose_unsubscribe and the person's approval; archive a sender's mail with archive_messages and sender. VIP senders are marked and never archived in bulk.

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": "review_unsubscribes"
  }
}

Input Schema

NameRequiredDescriptionDefault
inboxNoInbox name (like "Work Gmail"), inbox id, or leave empty for all inboxes
limitNoSenders per page, 1 to 100. Default 25.
offsetNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare a safe read, but the description adds substantial behavior beyond them: sort order (noisiest first), paging envelope (totalSenders/hasMore/nextOffset), the noise/VIP/notification-stream heuristics, a breaking-change note that rows no longer carry messageIds (only hasInboxMail), and terminal-specific rendering guidance for the text block. These are exactly the details an agent cannot get from readOnlyHint alone.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded, but the body is a single dense run-on paragraph with nested parentheticals that is hard to scan. The opening two sentences also restate the same idea ('Lists ... so the person can review and unsubscribe' / 'Lists the ... senders in the synced mail'), which is redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description carries the full burden of describing returns, and it does: row fields, noise metrics, suggestion + reason, page envelope, and the companion numbered text list with sayToHuman. For a 3-parameter read tool, an agent has everything needed to call it and interpret the result.

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 coverage is 67%, and the description compensates by restating the meaningful bounds ('at most limit senders (default 25, max 100) starting at offset') and the inbox scope ('all inboxes (or one)'). The offset parameter itself is only implied through the paging sentence, so it does not fully close the coverage 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 opens with a specific verb+resource ('Lists newsletter and mailing-list senders ... so the person can review and unsubscribe') and immediately scopes it ('in the synced mail across all inboxes (or one), one row per sender'). It is clearly distinguishable from siblings like archive_messages and propose_unsubscribe, which it names as the actual action tools.

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

Usage Guidelines5/5

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

It states when to use this versus alternatives explicitly: read/review here, then 'Unsubscribe with propose_unsubscribe and the person's approval' and 'archive a sender's mail with archive_messages and sender'. It also gives paging guidance ('page with offset rather than assuming one call returns every sender') and an exclusion ('VIP senders are marked and never archived in bulk').

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources