Skip to main content
Glama

gmail_search

Search Gmail for emails matching a query and return up to a specified number of results. Use it to find messages by sender, subject, or other Gmail search terms.

Instructions

Search Gmail for emails matching a query

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>"
    },
    "name": "gmail_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesGmail search query (e.g., "from:john@example.com subject:proposal")
maxResultsNoMaximum results to return (default: 10)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden, yet it says nothing about what a search returns, how results are ordered, whether pagination or a result cap applies, or what permission scope is needed. Only the bare matching behavior is conveyed.

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?

It is a single front-loaded sentence with no redundant wording, and the purpose is stated immediately. It is efficient, though efficiency here reflects brevity rather than a well-structured multi-part explanation.

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 two-parameter read tool this is thin: with no annotations and no output schema, the description should at least indicate the shape of results or the existence of the unread-specific sibling. As written, an agent knows the verb but not the boundaries of the 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 description coverage is 100%, with both the query syntax example and the maxResults default already documented in the schema. The description adds no parameter meaning beyond that, 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 pairs a specific verb ("Search") with a specific resource ("Gmail for emails") and the matching condition ("matching a query"), so the operation is unambiguous. It does not differentiate itself from the sibling gmail_search_unread_from, which is a near-identical search variant, leaving the agent to guess which one applies.

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 tool versus gmail_search_unread_from or gmail_get_thread, and no mention of prerequisites or scope. The agent must infer usage entirely from the name.

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