Skip to main content
Glama

list_subscriptions

Read-only

Identify senders filling your inbox, see each sender's opt-out options, and choose targets for bulk unsubscribe.

Instructions

Who keeps writing, how often, and whether you can get off the list — a mailbox slice grouped by SENDER, each row carrying its opt-out options. Contacts nobody: opt-out options come from the List-Unsubscribe header of each sender's newest thread (one metadata fetch per sender, not per thread). optOut is 'one-click' (the unsubscribe tool can perform it), 'link' (a human opens it in a browser), 'mailto' (would need sending, which mailwarden never does), 'none', or 'unknown' when that sender's header fetch failed or was never made because Gmail's quota ran out mid-listing. oldestDate/newestDate bound what the SAMPLE saw of that sender, not the sender's whole history — a query capped at max reaches back only as far as those threads go, which on a busy mailbox is days. There is deliberately NO precomputed frequency: judge it from threads across that span, with the sampling caveat in view. newestThreadId is what to hand to unsubscribe or bulk_unsubscribe. sendersFound is how many DISTINCT senders the sample held — when it exceeds topN, the list is truncated and raising topN shows more. USE WHEN: 'what am I subscribed to', 'which newsletters flood me', or picking targets before a bulk unsubscribe. DO NOT USE: for a general inbox overview (use triage_digest — it buckets by label and age too), or for one known thread (use list_unsubscribe). SIDE EFFECTS: none.

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

Input Schema

NameRequiredDescriptionDefault
maxNo
topNNo
queryNocategory:promotions

Output Schema

NameRequiredDescriptionDefault
queryYes
hasMoreYes
sampledYes
sendersFoundYes
subscriptionsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.32.0
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Changed1 schema field changedv0.25.0
    • removedInput schema / additionalProperties
      Removed value: -false
  3. Addedv0.9.0

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only declare readOnlyHint and openWorldHint; the description adds real behavioral detail beyond them: it contacts nobody, performs one List-Unsubscribe header fetch per sender rather than per thread, never sends mailto opt-outs, and degrades to 'unknown' when Gmail quota runs out mid-listing. It also spells out the sampling caveat for oldestDate/newestDate and states 'SIDE EFFECTS: none', consistent with readOnlyHint=true.

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

Conciseness4/5

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

Labelled USE WHEN / DO NOT USE / SIDE EFFECTS blocks make it scannable, and most clauses (optOut enum meanings, sampling caveat) carry information an agent needs. The opening sentence is stylized and the middle paragraph is dense with em-dash asides, which costs a point on front-loading.

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 sampling-based tool with an output schema, it covers the risky edges well: truncated lists, quota-limited header fetches, and which field to feed into unsubscribe. The main remaining gap is the undocumented `query` filter, which is the parameter most likely to change what 'subscriptions' means.

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

Parameters3/5

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

Schema coverage is 0%, so the description must carry parameter meaning. It does explain max ('a query capped at `max`', bounded reach) and topN (truncation and `sendersFound` exceeding it), but the `query` parameter and its default of category:promotions get no mention at all, nor do the max=100 / topN=25 ceilings.

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 states a specific resource and grouping: 'a mailbox slice grouped by SENDER, each row carrying its opt-out options', plus what each row conveys (sender, thread count, opt-out type). That is enough for an agent to distinguish it from list_unsubscribe, bulk_unsubscribe and triage_digest without opening any schema.

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 gives an explicit USE WHEN block naming the exact intents ('what am I subscribed to', 'which newsletters flood me', picking targets before a bulk unsubscribe) and an explicit DO NOT USE block routing to triage_digest for a general overview and list_unsubscribe for one known thread.

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