Skip to main content
Glama

gmail_search

Read-only

Search Gmail messages with Gmail query syntax to retrieve matching headers and message IDs for summarizing threads or drafting replies.

Instructions

Find messages using Gmail search syntax and return headers and message IDs.

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
limitNo
queryNoin:inbox

Output Schema

NameRequiredDescriptionDefault
has_moreYes
messagesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true and destructiveHint=false, so the safety profile is covered. The description adds one genuinely useful behavioral fact: results are headers and IDs only, not full message content, which tells the agent a second call is needed for bodies. It says nothing about result ordering, paging, or what happens when the query matches nothing.

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?

One sentence, front-loaded with the action and resource, with no filler. It is slightly under-explained rather than verbose, which is the preferable failure mode.

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 two-parameter read tool with annotations and an output schema, the essentials are present – and the output schema means return shape needn't be described. Still missing are the limit semantics and any routing hint toward gmail_read for full bodies, which would meaningfully help an agent sequence calls.

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 0%, so the description carries the burden. It clarifies that 'query' takes Gmail search syntax, which is real added meaning over a bare string field. The 'limit' parameter (default 5, maximum 10) is never mentioned, leaving its truncation behavior undocumented.

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 and resource: 'Find messages using Gmail search syntax.' The clause about returning headers and message IDs further pins down what kind of result comes back. It does not explicitly name or contrast with the sibling gmail_read, 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 Guidelines3/5

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

Usage is implied by 'using Gmail search syntax' – an agent can infer this is the discovery/search entry point, and that header-level results mean follow-up reading is needed for bodies. However, there is no explicit statement of when to pick this over gmail_read, and no exclusions or query-shape guidance beyond 'Gmail syntax'.

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

Deploy Server

Other Tools