Skip to main content
Glama
salviz

Google Workspace MCP Server

by salviz

gmail_create_filter

Create a Gmail filter to automatically organize, forward, or label incoming emails based on criteria like sender, subject, size, or attachments.

Instructions

Create a Gmail filter (automatic message rule)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toNoMatch recipient
fromNoMatch sender
sizeNoMessage size in bytes for comparison
starNoStar matching messages
queryNoMatch Gmail search query
forwardNoEmail to forward matching messages to
subjectNoMatch subject
categorizeNoCategorize into tab
addLabelIdsNoComma-separated label IDs to add
excludeChatsNoExclude chat messages
negatedQueryNoExclude messages matching this query
hasAttachmentNoMatch messages with attachments
markImportantNoMark as important (true) or not important (false)
removeLabelIdsNoComma-separated label IDs to remove
sizeComparisonNoSize comparison operator
Behavior2/5

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

With no annotations, the description alone must convey behavioral traits. It does not mention permissions required, what happens if a filter with identical criteria exists, or whether the tool returns the created filter object. This lack of detail limits an agent's understanding of side effects or constraints.

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?

The description is very short and to the point, but it could be more informative without adding unnecessary length. It is not verbose, but it lacks critical details that would justify a higher score.

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 tool has 15 optional parameters and no output schema, the description should explain how parameters relate (e.g., whether criteria are AND/OR), what the tool returns, and any limitations. The current description is too bare to guide proper 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 100%, so the baseline is 3. The description adds no additional meaning beyond the schema; it merely restates that the tool creates a filter. The parameter descriptions in the schema are self-explanatory, so no extra value is provided.

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 'Create a Gmail filter (automatic message rule)', which conveys a specific action on a specific resource. It clearly distinguishes from sibling tools like gmail_list_filters, gmail_get_filter, and gmail_delete_filter.

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 is provided on when to use this tool versus alternatives such as gmail_modify_labels or gmail_batch_modify. It also lacks context about prerequisites, use cases, or conditions for creating filters.

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/salviz/google-mcp-server'

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