Skip to main content
Glama
tszaks

Gmail Multi-Inbox MCP Server

by tszaks

block_sender

Block a sender by creating a Gmail filter, optionally trashing existing mail from that sender to reduce inbox clutter.

Instructions

Block a sender by creating a Gmail filter (same mechanism as Gmail's native "Block" button). Optionally also trashes existing mail from that sender.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionNoWhat to do with matching mail. "trash" (default) mirrors Gmail's Block button.trash
senderYesEmail address (e.g. "spam@foo.com"), domain ("@foo.com"), or Gmail search fragment ("from:x subject:promo").
accountYesAccount id.
also_trash_existingNoIf true (default), retroactively trashes up to 100 existing messages from this sender.
Behavior2/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It does disclose the core mechanism (creating a filter) and the optional existing-mail trash behavior, but it omits important side effects such as the filter persisting after the call, the fact that the filter action is configurable (trash/archive/spam), and how to reverse the block (unblock_sender sibling exists but is not mentioned). A user cannot infer reversibility or what happens to incoming mail beyond 'block'.

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 exactly two sentences, front-loaded with the primary action and mechanism, then a concise optional behavior. Every word earns its place; there is no fluff, repetition, or unnecessary detail. This is an exemplary concise description.

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

Completeness3/5

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

Given that there is no output schema and no annotations, the description only partially covers the needed context. It explains the mechanism and optional existing-mail trash, but it does not mention how to undo the block, when to prefer this over trash_emails, or that the filter action can be archive/spam. The schema covers parameters well, but the broader behavioral context is incomplete for a mutating tool.

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 100%, so the parameters are fully described in the schema (account, sender, action, also_trash_existing). The description adds only a high-level context that the filter mirrors Gmail's Block button, which does not meaningfully elaborate on individual parameters. It provides no additional syntax or format details beyond what the schema already documents, so a baseline score of 3 is appropriate.

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 uses a specific verb 'Block a sender' and identifies the resource (sender) plus the mechanism ('by creating a Gmail filter'). It clearly distinguishes this from sibling tools like trash_emails (which only trashes selected messages) and unblock_sender (which removes a block). The reference to Gmail's native Block button makes the purpose instantly recognizable.

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?

The description implies usage context by equating the action to Gmail's Block button, but it does not explicitly state when to use this tool versus alternatives such as trash_emails or archive_emails. There are no exclusionary statements (e.g., 'use this when you want to prevent future mail; use trash_emails for one-off deletion'). The optional trash behavior is mentioned, but no alternatives are named.

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