Skip to main content
Glama
eitan3

Gmail + Calendar MCP Server

by eitan3

create_filter

Automate email management by creating Gmail filters that sort, label, archive, or forward incoming messages based on sender, subject, size, and other criteria.

Instructions

Create a filter.

Criteria: from_address, to_address, subject, query (Gmail search syntax), negated_query, has_attachment, exclude_chats, size + size_comparison ('larger'/'smaller'). Actions: add_labels/remove_labels (names or ids), forward_to, and the booleans mark_read, archive (skip Inbox), star, mark_important, never_mark_important, never_spam, trash.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
from_addressNo
to_addressNo
subjectNo
queryNo
negated_queryNo
has_attachmentNo
exclude_chatsNo
sizeNo
size_comparisonNo
add_labelsNo
remove_labelsNo
forward_toNo
mark_readNo
archiveNo
starNo
mark_importantNo
never_mark_importantNo
never_spamNo
trashNo
accountNo
passwordNo
Behavior3/5

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

The description details criteria and actions, providing some behavioral insight. However, it omits important parameters (account, password) and does not disclose side effects, errors, or authentication needs. With no annotations, the description only partially covers behavioral transparency.

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?

The description is structured into criteria and actions, relatively concise with minimal waste. It uses backticks for clarity, though readability could be slightly improved.

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

Completeness2/5

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

Given the complexity (21 parameters, no annotations, no output schema), the description lacks return value info, error handling, and authentication context. It is not complete enough for an AI agent to fully understand the tool's usage.

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 compensates by explaining many parameters. It covers most criteria and actions, but misses 'account' and 'password', which are significant. The description adds value beyond the schema but is not complete.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool creates a filter and lists criteria and actions. It distinguishes from siblings by being the only creation tool for filters, but does not explicitly mention it's for Gmail filters, though Gmail search syntax is referenced.

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

Usage Guidelines2/5

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

No guidance on when to use this tool versus alternatives like list_filters or delete_filter. No prerequisites or context for usage are provided.

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/eitan3/Gmail_MCP'

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