Skip to main content
Glama

gmail_list_emails

Search and list Gmail messages using query filters like sender, attachments, or date. Specify label IDs or max results to narrow results.

Instructions

List / search Gmail messages in the connected mailbox.

Args: query: Gmail search query (e.g. 'from:alice has:attachment newer_than:7d'). max_results: label_ids: Filter to messages with these labels (e.g. ['INBOX']).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryNo
max_resultsNo
label_idsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations, the description carries full burden but only states it lists/searches messages. It provides a query example but lacks details on pagination, rate limits, or what the output contains (though output schema exists).

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 concise with a one-line purpose and arg list, but could be more structured (e.g., bullet points) to improve readability.

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?

Given the output schema, return value details are not needed, but the description lacks usage guidance and complete parameter descriptions, making it adequate but not comprehensive for a listing tool.

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 coverage is 0%, so description must compensate. It explains 'query' with an example and 'label_ids' with an example, but 'max_results' only has its name repeated without any description, leaving incomplete parameter semantics.

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 verb 'list/search' and the resource 'Gmail messages', distinguishing it from sibling Gmail tools like gmail_get_email and gmail_modify.

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 usage for searching emails with a query example but provides no explicit guidance on when to use this tool versus alternatives like gmail_get_email for single email retrieval.

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/RPasquale/lightbulb-mcp'

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