Skip to main content
Glama

gmail_message_read

Fetch a single Gmail message by ID in minimal, metadata, full, or raw format. Optionally save large messages or attachments with attachments to a file and get a short YAML summary.

Instructions

Read a single Gmail message by id. format is minimal (ids/labels only), metadata (headers + snippet only), full (default; parsed MIME structure), or raw (base64url-encoded RFC 2822 source) — Gmail's own wire values verbatim. When output_file is set, writes the rendered message to that path and returns a short YAML summary instead of the inline body — use it for large messages or ones with attachments that would exceed the response size limit. Read-only. Mirrors omni-dev gmail read. Output is YAML.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
formatNo`minimal` (ids/labels only), `metadata` (headers + snippet), `full` (default; parsed MIME structure), or `raw` (base64url RFC 2822 source). Matches Gmail's own wire values verbatim.
accountNoSelects a named Gmail account instead of the ambient `--account`/`OMNI_DEV_GMAIL_ACCOUNT` resolution — e.g. `work`. Omit to use the resolved default account (or the legacy single-account credentials, if no named accounts are configured). Call `gmail_account_list` to discover configured names.
message_idYesGmail message id. Required.
output_fileNoWhen set, writes the rendered message to this path and returns a short YAML summary (path/bytes/format) instead of the inline body — use for large messages/attachments that would blow past the context window.
Behavior3/5

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

No annotations are provided, so the description bears full behavioral disclosure responsibility. It discloses read-only nature, the side effect of writing to a file when output_file is set, and default format behavior. However, it doesn't mention authentication requirements or error handling (e.g., nonexistent ID). The statement 'Mirrors `omni-dev gmail read`' adds little to agent understanding.

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?

The description is a single concise paragraph that front-loads the tool's core function and then details format options. It includes a redundant 'Mirrors `omni-dev gmail read`' stating the obvious and the phrase 'Gmail's own wire values' adds little. Slightly verbose but mostly efficient.

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

Completeness4/5

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

The description covers the essential behaviors: format options with defaults, output_file side effect (writing to disk and changing return), and account selection. It lacks details on error handling, authentication, or the exact return structure when no output_file is used, but the schema and tool name cover most expectations. For a read tool, this is fairly complete.

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?

The input schema fully documents all four parameters (100% coverage), so the baseline is 3. The description adds value by elaborating on format defaults and the purpose of output_file for large messages, but most semantic detail is already in the schema. It adds marginal but non-essential guidance beyond the schema.

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 clearly states 'Read a single Gmail message by id', specifying the verb (read), resource (Gmail message), and the identifier ('by id'). It distinguishes itself from search/thread tools by focusing on a single message. However, it doesn't explicitly differentiate from sibling tools like gmail_thread_read beyond the singular nature, which is implicit but sufficient.

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?

The description provides some usage context, such as when to use 'output_file' (to avoid exceeding context window with attachments) and how the 'account' parameter selects via 'gmail_account_list'. However, it lacks explicit guidance on when to choose this tool over alternatives like gmail_search or gmail_thread_read, and doesn't mention prerequisites like authentication.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rust-works/omni-dev'

If you have feedback or need assistance with the MCP directory API, please join our Discord server