Skip to main content
Glama

get_email

Read-onlyIdempotent

Read a message body and attachment metadata by its opaque message ID. freshness.checkedAt is the last confirmed mailbox check; a recent value remains usable within the thirty-minute provider-latency tolerance even if freshness.stale or freshness.refreshing is true. Missing checkedAt means freshness is unknown, not that the message body is old. Set waitForFresh only when the user explicitly asks for a live refresh; a bounded timeout returns the cached body and does not by itself indicate failure. Reading 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>",
      "messageId": "<messageId>"
    },
    "name": "get_email"
  }
}

Input Schema

NameRequiredDescriptionDefault
accountIdYes
maxWaitMsNoMaximum refresh wait in milliseconds (up to 15000). At the deadline, a cached copy may be returned with freshness metadata; this is not a guarantee of a fresh response.
messageIdYesPass the full opaque message ID exactly as returned by search_emails, get_email, or a completed action. Never decode, reconstruct, shorten, or otherwise alter it. After archive_email or move_email completes, use its returned replacement messageId for later message operations.
waitForFreshNoWait briefly for a provider refresh instead of immediately returning a cached copy. Check the returned freshness timestamps and stale/refreshing flags.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. Changed1 schema field changed
    • addedInput schema / properties / messageId / description
      Added value: +"Pass the full opaque message ID exactly as returned by search_emails, get_email, or a completed action. Never decode, reconstruct, shorten, or otherwise alter it. After archive_email or move_email completes, use its returned replacement messageId for later message operations."
  4. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, and the description adds real context beyond them: reading does not mark the message as read, stale/refreshing flags still permit a usable body within a thirty-minute tolerance, and a timeout is not a failure. The remaining gap is that it never describes pagination, size limits, or what attachment metadata actually contains.

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 core action is front-loaded in sentence one, with freshness semantics following in a logical order. Four sentences are spent on freshness edge cases, which is dense but each clarifies an ambiguity an agent would otherwise misread; only the 'thirty-minute provider-latency tolerance' phrasing feels slightly overloaded.

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 burden of explaining returned freshness fields (checkedAt, stale, refreshing) and does so, plus timeout and read-state behavior. It is close to complete for a read tool, though it could say more about attachment metadata and response size characteristics.

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 75% and the schema already documents messageId handling and maxWaitMs limits, so the baseline is 3. The description earns above that by adding interpretive semantics the schema lacks: what freshness.checkedAt means, that a missing checkedAt signals unknown freshness rather than an old body, and the narrower trigger for waitForFresh (explicit user request for a live refresh).

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 first sentence gives a specific verb+resource pair ('Read a message body and attachment metadata') and states the key ('opaque message ID'), which is enough to distinguish it from write tools like archive_email. It does not, however, differentiate itself from close siblings such as get_cached_message or get_thread, which an agent would need in order to choose correctly.

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?

There is explicit conditional guidance for one parameter ('Set waitForFresh only when the user explicitly asks for a live refresh') and a useful note about interpreting a bounded timeout. What is missing is when to use this tool versus the cached-message or thread siblings; usage is only implied by the freshness discussion.

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