Skip to main content
Glama

Search Gmail

google_mail_search
Read-onlyIdempotent

The newest messages in a mailbox (the inbox by default), or those matching a Gmail search like "from:rachel subject:tabor": sender, subject, a preview and whether they are read. Free. Free.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "google_mail_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
queryNo
folderNoinbox
mailboxNoOne of the mailboxes the agent may act as; optional when only one is connected.
unread_onlyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.6/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive, so the safety profile is covered. The description's one genuine addition is disclosing the return shape (sender, subject, preview, read status), but it omits result ordering interplay with limit, any pagination/cursor behavior, and the trailing 'Free. Free.' is unexplained noise.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Very short, but it opens with an incomplete sentence fragment and ends with a duplicated 'Free. Free.' that carries no actionable meaning. The useful content (query example, return fields) is present but not cleanly structured.

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

Completeness2/5

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

For a 5-parameter tool with no output schema and 20% schema coverage, the description leaves limit, unread_only, and folder options unexplained, does not describe ordering guarantees or pagination, and does not differentiate from sibling mail tools. It is not sufficient for an agent to call this confidently.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 20% (just the mailbox param). The description does add a Gmail query syntax example and states inbox is the default folder, which helps two parameters, but limit (max 25), unread_only, and the folder enum values are undocumented in both places, so it does not compensate for the low coverage.

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

Purpose3/5

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

The description identifies the resource (messages in a mailbox or matching a Gmail query) and names the returned fields (sender, subject, preview, read flag), which hints at a list/search over message previews rather than full messages. However it is a noun-phrase fragment with no verb ('The newest messages...'), so the agent must infer that this retrieves message previews, and it never distinguishes itself from google_mail_read or m365_mail_search.

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

Usage Guidelines2/5

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

No when-to-use or when-not-to-use guidance is given. Nothing tells the agent to prefer this over google_mail_read (full message fetch) or m365_mail_search (other provider), or when to pass a query versus just relying on the default newest-first listing.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources