Skip to main content
Glama

gmail_search

Search Gmail by keyword, sender, subject, or date range to retrieve matching emails. Returns a compact list with snippet and id for reading full messages.

Instructions

Search your Gmail and return a compact list of matching emails.

Filter by any combination of: a free-text keyword (matches anywhere), a sender email/name, words in the subject, and a date range. Dates use dd.mm.yyyy (e.g. 31.12.2026). 'after' means on/after that day, 'before' means before that day. With NO filters, returns your most recent emails. Returns id, from, subject, date and a short snippet for each hit. Use the id with gmail_read_email to read the full message.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keywordNo
senderNo
subjectNo
afterNo
beforeNo
unread_onlyNo
max_resultsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

No annotations present, so description covers all behavioral traits: returns specific fields (id, from, subject, date, snippet), date range meanings (after=on/after, before=before day), and default behavior with no filters. Mentions max_results indirectly via default, but does not disclose rate limits or pagination.

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?

Four sentences, front-loaded with purpose, followed by filtering details, date format, and mention of sibling tool. No redundant or irrelevant content.

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

Completeness5/5

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

Despite no annotations and many parameters, the description sufficiently explains search behavior, input combinations, return fields, and link to gmail_read_email. Output schema exists, so return format details are covered.

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 has 7 parameters with 0% description coverage. Description covers keyword, sender, subject, after, before (5/7) but omits unread_only and max_results. While it gives context for most parameters, two are left undocumented, requiring compensation that is not fully 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?

Description clearly states the tool searches Gmail and returns a compact list. It identifies the specific verb 'Search' and resource 'your Gmail', and distinguishes from the sibling gmail_read_email by mentioning it can be used with the returned ids.

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

Usage Guidelines4/5

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

Explains when to use filters and that no filters returns recent emails. Provides date format and semantics. Could explicitly mention when not to use, but alternatives (gmail_read_email) are referenced for reading full messages.

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/Schneckenhausmann/google-nice-mcp'

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