Skip to main content
Glama
MIT License
656
25
  • Apple
  • Linux

create_filter

Automate email organization by creating filters in Gmail. Define criteria like sender, subject, or attachments, and apply actions such as labeling, forwarding, or removing labels for efficient inbox management.

Instructions

Creates a filter

Input Schema

NameRequiredDescriptionDefault
actionYesActions to perform on messages matching the criteria
criteriaYesFilter criteria

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "action": { "additionalProperties": false, "description": "Actions to perform on messages matching the criteria", "properties": { "addLabelIds": { "description": "List of labels to add to messages", "items": { "type": "string" }, "type": "array" }, "forward": { "description": "Email address that the message should be forwarded to", "type": "string" }, "removeLabelIds": { "description": "List of labels to remove from messages", "items": { "type": "string" }, "type": "array" } }, "type": "object" }, "criteria": { "additionalProperties": false, "description": "Filter criteria", "properties": { "excludeChats": { "description": "Whether the response should exclude chats", "type": "boolean" }, "from": { "description": "The sender's display name or email address", "type": "string" }, "hasAttachment": { "description": "Whether the message has any attachment", "type": "boolean" }, "negatedQuery": { "description": "A Gmail search query that specifies criteria the message must not match", "type": "string" }, "query": { "description": "A Gmail search query that specifies the filter's criteria", "type": "string" }, "size": { "description": "The size of the entire RFC822 message in bytes", "type": "number" }, "sizeComparison": { "description": "How the message size in bytes should be in relation to the size field", "enum": [ "smaller", "larger" ], "type": "string" }, "subject": { "description": "Case-insensitive phrase in the message's subject", "type": "string" }, "to": { "description": "The recipient's display name or email address", "type": "string" } }, "type": "object" } }, "required": [ "criteria", "action" ], "type": "object" }

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/shinzo-labs/gmail-mcp'

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