Skip to main content
Glama

Read a Gmail message

get_gmail_message
Read-only

Read one message in full, including its decoded text body and its attachments — name, type, size and the attachmentId that read_gmail_attachment and save_gmail_attachment_to_drive take. HTML-only messages are converted to plain text. Get the message ID from search_gmail_messages.

Input Schema

NameRequiredDescriptionDefault
mailboxYesEmail address of the connected Gmail/Google Workspace mailbox to act on. Call list_authorized_mailboxes to see available options.
maxCharsNoTruncate the body beyond this many characters (default 20000)
messageIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare the safe read-only profile, but the description adds real behavioral content: the body is decoded, HTML-only messages are down-converted to plain text, and attachments are returned as metadata with the attachmentId consumed by two named sibling tools. It does not mention auth requirements or attachment-size limits, but the added context is substantive.

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?

Three sentences, front-loaded with the core action and scope, then behavior, then the prerequisite. Every clause either distinguishes the tool or changes how an agent calls it; nothing is redundant.

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?

With no output schema, the description carries the return-shape burden and does explain body and attachment fields. It omits other likely returned metadata (headers, subject, labels), which is a minor gap for a single-message read.

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 67% and messageId has no schema description at all; the description compensates by explaining where that ID comes from. maxChars and mailbox are covered by the schema, so the description's remaining contribution is the attachmentId/parameter linkage.

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?

"Read one message in full, including its decoded text body and its attachments" names a specific verb, resource and scope, and implicitly separates it from get_gmail_thread (whole thread) and list_messages (envelopes). An agent can identify the right tool without opening the 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?

It gives a clear workflow precondition: get the message ID from search_gmail_messages, which tells the agent this is the step after a search. It does not state when to prefer get_gmail_thread or get_outlook_message instead, so no explicit exclusion is offered.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources