Skip to main content
Glama

Get Email

email_get
Read-onlyIdempotent

Retrieve detailed email information including headers, body, and attachment metadata. Supports caching and optional forced refresh for fresh data.

Instructions

📖 Get detailed information about a specific email (read-only, safe for unsupervised use)

Includes full headers, body content, and attachment metadata. Body content is truncated at 50,000 characters by default.

Caching: Results are cached for 15 minutes (fresh) / 1 hour (stale). Use force_refresh=True to bypass cache and fetch fresh data.

Args: email_id: The email ID account_id: The account ID include_body: Whether to include the email body (default: True) body_max_length: Maximum characters for body content (1-500000, default: 50000) include_attachments: Whether to include attachment metadata (default: True) use_cache: Whether to use cached data if available (default: True) force_refresh: Force refresh from API, bypassing cache (default: False)

Returns: Email details with: - _cache_status: Cache state (fresh/stale/miss) - _cached_at: When data was cached (ISO format)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
email_idYes
account_idYes
include_bodyNo
body_max_lengthNo
include_attachmentsNo
use_cacheNo
force_refreshNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

Annotations already cover readOnlyHint, destructiveHint, idempotentHint, and openWorldHint. The description adds value by detailing body truncation at 50,000 characters, caching freshness (15 min fresh, 1 hour stale), and the effect of force_refresh. No contradiction.

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?

The description is well-structured, using emojis for visual cues, bullet points for clarity, and front-loading the key purpose. Every sentence adds value without unnecessary verbosity.

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

Completeness5/5

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

Given 7 parameters, presence of output schema, and annotations, the description is thorough. It covers return values including _cache_status and _cached_at, and explains caching behavior, making it complete for the tool's complexity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, but the description explains all 7 parameters: email_id, account_id, include_body, body_max_length, include_attachments, use_cache, and force_refresh, including defaults and purpose. This fully compensates for the lack of schema descriptions.

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 clearly states it retrieves detailed information about a specific email, specifying it's read-only and safe for unsupervised use. It distinguishes itself from sibling tools like email_list and email_get_attachment by focusing on a single email with full details.

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 description provides guidance on caching behavior and when to use force_refresh. It also implies safe usage (read-only, unsupervised). However, it does not explicitly mention when not to use this tool versus alternatives like email_list.

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/robin-collins/m365-mcp'

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