Skip to main content
Glama

google_gmail_search

Search Gmail messages using advanced Gmail search syntax. Filter by labels and limit results to find specific emails.

Instructions

Search Gmail messages. Uses Gmail search syntax (e.g. 'from:user@example.com', 'subject:invoice', 'after:2026/01/01', 'is:unread').

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesGmail search query
max_resultsNo
label_idsNoFilter by label IDs (e.g. ['INBOX', 'UNREAD'])
Behavior2/5

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

No annotations exist, and the description fails to disclose behavioral traits such as whether the tool returns full message content, metadata only, or pagination limits. It only describes the search capability without details on outputs or side effects.

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?

The description is extremely concise (two sentences), front-loaded with the core purpose, and includes relevant examples without unnecessary text.

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

Completeness3/5

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

While the description effectively conveys the search purpose and syntax, it lacks details on the output format (e.g., returns message metadata, snippets) and any constraints like rate limits or maximum results, leaving a gap for an agent to fully understand the tool's behavior.

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?

The description adds value for the `query` parameter with syntax examples, but does not enhance the `max_results` or `label_ids` parameters beyond the schema's minimal descriptions. Schema coverage is 67%, leaving one parameter undocumented in description.

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 searches Gmail messages and provides specific examples of Gmail search syntax, distinguishing it from sibling tools like read (single message) and send.

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?

The description gives explicit search syntax examples, implying when to use the tool (e.g., searching by subject, date). However, it doesn't explicitly state when not to use it compared to related tools or provide conditions for effective use.

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/rosenvladimirov/odoo-claude-mcp'

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