Skip to main content
Glama

Read an email

get_message
Read-only

Reads a full email: sender, recipients, date, subject, plain-text body (HTML converted, truncated beyond 20,000 characters with bodyTruncated) and the list of attachments (name, type, size); get_attachment reads one of them. Also returns messageId and references, which create_draft accepts as inReplyTo and references to keep a reply in the same thread. On Gmail accounts, webUrl opens the message in Gmail. Does not mark the message as read.

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": {
      "accountId": "<accountId>",
      "uid": "<uid>"
    },
    "name": "get_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
uidYesIMAP UID of the message, as returned by search and listing tools.
folderNoIMAP folder containing the message. Defaults to INBOX.INBOX
accountIdYesAccount id, as returned by list_accounts.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is covered without the description. The description does add value with the truncation rule (20,000 chars plus bodyTruncated), the HTML-to-text conversion, and the explicit "Does not mark the message as read" note, which is a meaningful side-effect clarification. It leaves out failure modes such as an invalid folder or missing UID, so it stops short of full behavioral disclosure.

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?

A single dense paragraph that leads with the primary purpose and then layers return contents, cross-tool handoffs, and side-effect notes in descending priority. Every clause carries information; none is filler.

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?

There is no output schema, so the description must describe the return payload, and it does so carefully: field list, attachment metadata, truncation signal, threading references, and the Gmail webUrl. What remains uncovered is error behavior and any hint about how large bodies or missing messages are handled beyond truncation.

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 each parameter is already documented in the schema and the description need not repeat them. It does add meaning by tying uid back to search/listing tools and by explaining how the returned messageId and references map onto create_draft's inReplyTo and references, which is semantic guidance the schema cannot carry. Not a 5 because the folder parameter gets no treatment beyond the schema default.

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?

The description opens with a specific verb and resource ("Reads a full email") and then enumerates exactly what comes back: sender, recipients, date, subject, body, attachments. That is enough for an agent to tell this apart from list/search siblings and from get_attachment.

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 routes the agent explicitly to get_attachment for a single attachment and to create_draft (via messageId/references) for threaded replies, which are real alternatives. It does not state the prerequisite that uid comes from search/listing tools or when it should be preferred over get_thread, so the guidance is clear but not exhaustive.

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