Skip to main content
Glama
dipseth

google-workspace-unlimited

Gmail Message Search

search_gmail_messages
Read-onlyIdempotent

Search Gmail messages with standard query syntax. Use operators like from:, subject: to locate emails and threads.

Instructions

Search messages in Gmail account using Gmail query syntax with message and thread IDs

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesGmail search query using standard Gmail search operators (e.g., 'from:sender@example.com', 'subject:important')
page_sizeNoMaximum number of messages to return
user_google_emailNoUse 'me' or 'myself' for auto-resolution to authenticated user, or provide specific email address. If None, uses current authenticated user (auto-injected by middleware).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorNo
queryYes
successYes
messagesYes
page_sizeYes
userEmailYes
total_foundYes
Behavior3/5

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

Annotations already indicate readOnlyHint, openWorldHint, idempotentHint, and destructiveHint are false. The description adds that it uses Gmail query syntax and message/thread IDs, but does not disclose rate limits, auth needs, or other behaviors beyond annotations.

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 sentence that front-loads the purpose. It is concise but could be slightly more informative without becoming verbose.

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

Completeness4/5

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

Given the existence of an output schema and adequate parameter documentation, the description is complete enough. It does not need to explain return values, but could mention pagination or result limits.

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 description coverage is 100%, and the description does not add significant meaning beyond what the schema provides. The schema already explains the query parameter with examples, so the description's mention of 'query syntax' is redundant.

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 'Search messages in Gmail account', specifying the verb 'search' and resource 'messages'. It also mentions using Gmail query syntax, distinguishing it from sibling tools like 'list_messages' or 'get_gmail_message_content'.

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 does not explicitly state when to use this tool versus alternatives like 'list_messages' or 'search_messages'. It implies usage through Gmail query syntax but lacks exclusions or contextual guidance.

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/dipseth/google_workspace_fastmcp2'

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