Skip to main content
Glama
arkaigrowth

Gmail MCP Server

by arkaigrowth

gmail_create_filter

Create Gmail filters with conditions (from, to, subject, attachment) and actions (add/remove labels) to automatically organize incoming emails.

Instructions

Create a Gmail filter. Label names must already exist and are resolved to label IDs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYes
accountNoEmail or alias (uses active account if omitted)
criteriaYes
Behavior3/5

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

With no annotations, the description carries the burden of behavioral disclosure. It adds a key detail about label name resolution, but lacks information on error behavior, side effects, or response format. This is adequate but not thorough.

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 a single, front-loaded sentence that efficiently communicates the core action and a key constraint. It is concise, though could include additional detail without becoming verbose.

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's complexity (nested objects, many properties, no output schema, no annotations), the description is incomplete. It does not explain criteria fields, action fields, error handling, or return values, leaving significant gaps for an agent.

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

Parameters2/5

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

Schema description coverage is only 33% (only 'account' described). The description adds meaning for the 'add_label_names' parameter (label resolution) but does not explain other parameters like criteria fields or remove_label_ids. This is insufficient for a tool with many undocumented properties.

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 creates a Gmail filter, using a specific verb and resource. It distinguishes from sibling tools like gmail_list_filters and gmail_delete_filter, making the purpose unmistakable.

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 mentions that label names must already exist, providing a prerequisite. However, it does not specify when to use this tool over alternatives, nor does it give guidance on when not to use it.

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/arkaigrowth/gmail-mcp-server'

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