Skip to main content
Glama

read_emails

Read-only

Lists recent emails from one account or all enabled inboxes combined, using Gmail query syntax, with optional plaintext bodies and pagination so you can review incoming mail.

Instructions

List messages from one account, or from every enabled inbox merged together when account is omitted. Same Gmail query syntax as search_emails (see that tool for the operator reference); an empty query lists the most recent mail across all folders. Returns individual messages, not threads — use get_email_thread with a returned Thread ID to read a whole conversation. Each result carries its label ids and display names, so unread/starred/important state is visible without a second call. With include_body=true the plaintext body is included, truncated at 2000 characters; pass full_body=true for the complete text. Reports Gmail's own estimate of total matches plus a next_page_token when more results exist.

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

Input Schema

NameRequiredDescriptionDefault
queryNoOptional Gmail query string. Empty lists the most recent mail.
accountNoOptional account id ("personal", "tamu"). Omit to aggregate across all enabled accounts.
full_bodyNoWith include_body=true, return the ENTIRE body instead of the first 2000 characters. Use when you need to reason over the full text.
page_tokenNoToken from a previous call's "Next Page Token" to fetch the next page. Reuse the SAME query, max_results and `account` scope — the token records every queried account's position, including matches already fetched but not shown, and is rejected with an explanation if the scope changed.
max_resultsNoMaximum emails to return per account (1-500).
include_bodyNoInclude the plaintext body of each message.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.6.2

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, and the description adds substantial behavior beyond that: results are messages not threads, each carries label ids and display names so state is visible without a second call, bodies truncate at 2000 characters unless full_body=true, and it reports Gmail's own total estimate plus a next_page_token. This is exactly the kind of return-shape and scope context annotations cannot convey.

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

Conciseness5/5

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

Five dense sentences, each carrying distinct actionable information (scope, query syntax pointer, thread caveat, label visibility, body truncation, pagination). The most load-bearing content — what gets listed and the account-omission behavior — is front-loaded, with no filler or restated title.

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

Completeness5/5

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

For a six-parameter read tool with no output schema, the description covers what is returned (individual messages with labels), how bodies are truncated, and how pagination and totals work. An agent has everything needed to call it correctly and to know when to follow up with get_email_thread or a page_token call.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3, but the description adds real meaning: omitting `account` merges every enabled inbox, an empty query spans all folders rather than a single one, and include_body/full_body are framed as a paired tradeoff for reasoning over text. These clarify cross-parameter interaction rather than restating the schema.

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?

States a specific verb and resource ('List messages') plus the two scopes it supports (one account vs. all enabled inboxes merged). It explicitly contrasts itself with two siblings: search_emails for query-operator reference and get_email_thread for whole conversations, so an agent can tell what this tool returns without opening a schema.

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

Usage Guidelines4/5

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

Gives concrete context cues: omit `account` to aggregate, empty query lists recent mail, use get_email_thread with a returned Thread ID for conversations, and set full_body only when reasoning over full text. The one gap is that it never states when to prefer read_emails over search_emails, deferring only to the operator reference rather than a selection rule.

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