Skip to main content
Glama

gmail_search

Search and list Gmail messages with Gmail search syntax to find, filter, and review emails, including unread or sender-specific results. Read-only and supports pagination.

Instructions

搜索/列出邮件(Gmail 搜索语法)。只读。

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": "gmail_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNoGmail 搜索语法,如 "from:boss@example.com is:unread after:2026/01/01"
pageTokenNo翻页 token
maxResultsNo最多返回条数,1-100,默认 10

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations supplied, the description must carry the behavioral load, and it does disclose the most important trait: '只读' (read-only), which matches what readOnlyHint would declare. Beyond that it says nothing about result ordering, pagination behavior (despite a pageToken param), auth/permission requirements, or rate limits, which leaves notable gaps for an un-annotated tool.

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?

Two short fragments, front-loaded with purpose followed by the read-only marker; no filler whatsoever. It is arguably too terse, but nothing present is wasted.

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 three-parameter, zero-required search tool with full schema coverage and no output schema, the description covers purpose and the read-only contract. It omits what the results look like and how to continue paging, which are the main things an agent would still need to infer.

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%, so each of the three parameters (q, pageToken, maxResults) is already documented in the schema, including the syntax example and the 1-100 range with default 10. The description only repeats the 'Gmail search syntax' phrasing already in the schema, adding no new meaning, so the baseline 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?

States a specific verb+resource pair ('search/list emails') plus the query dialect ('Gmail search syntax'), which is enough to distinguish listing many messages from the single-message gmail_read sibling. It does not explicitly name or contrast with that sibling, so it stops short of a 5.

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?

There is no guidance on when to use this versus gmail_read or the send tools, and no exclusions. The only hint is 'search/list', which implies multi-message retrieval rather than reading one message, but that inference is left entirely to the agent.

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