Skip to main content
Glama
tszaks

Gmail Multi-Inbox MCP Server

by tszaks

unsubscribe_from_email

Unsubscribe from mailing lists using the List-Unsubscribe header, similar to Gmail's native button. Falls back to mailto if needed and returns the method used.

Instructions

Unsubscribe from a mailing list by invoking the List-Unsubscribe header (RFC 2369/8058). Same mechanism as Gmail's native "Unsubscribe" button. Falls back to mailto:. Returns method used.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
accountYesAccount id.
dry_runNoIf true, report what method would be used without executing the unsubscribe. Default false.
message_idYesGmail message id of a message from the sender to unsubscribe from.
Behavior4/5

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

With no annotations, the description carries the full burden. It discloses the mechanism (List-Unsubscribe), the fallback to mailto, and the return value (method used), which is meaningful behavioral context. It does not cover edge cases like what happens when no header exists, but for a relatively simple tool, it is transparent enough.

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?

The description is three concise sentences, each adding meaningful details: the core action, the comparison to Gmail, the fallback mechanism, and the return value. It is front-loaded and free of fluff.

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?

The tool is simple with three parameters and no output schema. The description covers the main behavior, fallback, and return value, making it sufficient for invocation. It doesn't mention error handling when no List-Unsubscribe header is present, but that is a minor gap given the tool's simplicity.

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 description coverage is 100%, so the baseline is 3. The description adds no additional parameter-level context beyond the schema's own descriptions (e.g., account and message_id are not explained further). It neither enhances nor detracts from the schema.

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 clearly states the tool's purpose: 'Unsubscribe from a mailing list' by invoking the List-Unsubscribe header. It also distinguishes itself from siblings like block_sender by specifying the exact mechanism (RFC 2369/8058) and referencing Gmail's native button, making it unambiguous.

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

Usage Guidelines4/5

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

The description provides clear context by comparing to Gmail's 'Unsubscribe' button, indicating when this tool is appropriate. However, it does not explicitly mention alternatives or exclusions (e.g., when to use block_sender instead), so it falls short of a perfect score.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/tszaks/ghub'

If you have feedback or need assistance with the MCP directory API, please join our Discord server