Skip to main content
Glama
suhail-ak-2

gmail-mcp-imap

by suhail-ak-2

search_emails

Search for emails using keywords in the subject and sender. Specify a query and an optional limit to retrieve matching messages.

Instructions

Search emails using keywords - searches in subject and sender

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum results
queryYesSearch query (searches subject and sender)
Behavior3/5

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

With no annotations, the description carries the behavioral transparency burden. It discloses a key limitation: search covers subject and sender only, not body or other fields. However, it does not mention sorting, result shape, pagination behavior, or whether it searches across all mailboxes, which would be valuable for a search tool.

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 a single, front-loaded sentence with zero filler. It states the core behavior and the most important scope limitation efficiently.

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?

For a simple two-parameter search tool with no output schema, the description is reasonably complete: it states search targets and the fields searched. Yet it omits guidance on when to use this versus label-based or category-specific sibling tools, and does not clarify what a successful result looks like.

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%, with both 'query' and 'limit' already documented. The description repeats the query behavior already present in the schema and adds no new parameter-level detail, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly identifies the operation ('Search emails'), the resource, and the key scope: 'searches in subject and sender'. It is not a tautology and distinguishes this from label-based or category-based retrieval, though it does not explicitly name a sibling alternative.

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 implies when to use this tool: when the user wants keyword-based email search over subject and sender. However, it does not explicitly state when not to use it or mention alternatives like get_emails_by_label or category-specific retrieval, leaving some ambiguity for an agent deciding between tools.

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/suhail-ak-2/gmail-mcp-imap'

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