Skip to main content
Glama

Get Email Details

mail_get_email
Read-onlyIdempotent

Retrieve a single email's full body text directly from disk without specifying a mailbox or account, and return its account and mailbox. Use it to read email content before replying or forwarding.

Instructions

Get a single email with full content including body text. Reads the email body directly from disk — no need to specify mailbox or account. Returns the account and mailbox the email belongs to. Use when: reading full email content, preparing to reply or forward

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": {
      "messageId": "<messageId>"
    },
    "name": "mail_get_email"
  }
}

Input Schema

NameRequiredDescriptionDefault
messageIdYesEmail ID (from mail_get_emails or mail_search)
response_formatNoOutput format: 'json' for structured data, 'markdown' for human-readable textjson

Output Schema

NameRequiredDescriptionDefault
ccYes
idYes
toYes
readYes
senderYes
accountYes
contentYes
flaggedYes
mailboxYes
previewYes
replyToYes
subjectYes
dateSentYes
messageIdYes
attachmentsYesAttachment metadata (filename, type, size). Content not included — metadata only.
dateReceivedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the description's job is supplemental and it delivers: it discloses that the body is read directly from disk, that no mailbox/account scoping is required, and that the owning account and mailbox are returned. It does not cover failure modes for an invalid messageId, which keeps it off a 5.

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 main purpose is front-loaded in the first sentence, and each subsequent sentence adds a distinct fact (disk read, returned ownership metadata, usage triggers). Slightly repetitive phrasing about not needing to specify mailbox or account could be folded tighter.

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 rich annotations, a fully documented two-parameter schema, and an output schema covering return values, the description supplies the remaining essentials: minimum input requirement and intended use. It is complete enough to call correctly, missing only error/not-found behavior on a bad ID.

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 100%, including the messageId's origin (mail_get_emails or mail_search) and the response_format enum, so the schema already carries parameter meaning. The description adds only the negative constraint that mailbox/account need not be supplied, which is modest incremental value, so the baseline 3 applies.

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?

"Get a single email with full content including body text" states a specific verb, resource, and scope, which implicitly separates it from the plural mail_get_emails and the query-oriented mail_search. No sibling is named explicitly, so an agent must infer the boundary rather than being told it.

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?

The "Use when: reading full email content, preparing to reply or forward" clause gives concrete trigger scenarios tied to downstream actions (reply/forward). It stops short of stating when NOT to use it or naming an alternative for list/search retrieval.

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