Skip to main content
Glama
Albretsen

MCP Emails

Read Email

email_read
Read-onlyIdempotent

Read, list, and search emails in one inbox, using pagination offsets to retrieve complete results and truncated body continuations.

Instructions

Read, list and search email in one inbox. list and search return a single page: when the response says has_more, call again with the returned next_offset and otherwise identical arguments. Only has_more: false means you have seen everything. Long bodies are windowed the same way: body_truncated means read again with body_next_offset as body_offset.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ccNoCc recipient to match: address, name, or fragment.
toNoTo recipient to match: address, name, or fragment.
bodyNoText to find in the body. On Gmail this matches the whole message.
fromNoSender to match: address, name, or fragment.
textNoText to match anywhere, headers included.
inboxNoInbox email address; an alternative to inbox_id, which wins when both are given.
limitNoMessage summaries per page. Prefer paginating over a large limit.
queryNoProvider-native raw query (escape hatch); prefer the structured fields. Ignored on Fastmail.
sinceNoReceived on or after this date or datetime (no timezone = UTC).
actionYesOperation to run. list = recent messages, optionally by folder or unread; read = full content of one message_id; read_batch = up to 50 message_ids, bodies windowed tighter than read; search = structured filters (from/to/subject/body/since/before/unread/has_attachment/flagged); attachment = download one attachment by attachment_index or filename, base64; extract = readable text from one attachment, without its bytes; original = the whole stored message as an .eml resource.
beforeNoReceived strictly before this date or datetime (no timezone = UTC).
folderNoFolder to list, case-sensitive: 'INBOX', 'SENT', 'DRAFTS', 'TRASH', or provider-specific such as '[Gmail]/Spam'.INBOX
offsetNoZero-based page offset. Pass the previous response's next_offset exactly; a short page is not proof of the end. Newest first.
unreadNotrue = unread only; false = read only; omit for both.
flaggedNotrue = only flagged/starred messages. Ignored on Outlook.
subjectNoText to match in the subject; phrases match as-is.
filenameNoExact attachment filename, case-insensitive. Ignored when `attachment_index` is given.
inbox_idNoInbox UUID. Optional when the key has exactly one inbox. Otherwise pass this or `inbox`; omit both and the error lists every inbox_id.
message_idNoProvider-native message id, from a previous list or search.
body_offsetNoStart of the plain-text window. Pass back body_next_offset to continue a truncated body.
message_idsNoMessage ids to read. Duplicates are removed, first occurrence kept.
unread_onlyNoReturn only unread messages.
include_htmlNoAlso return the sanitized HTML body. Worth it only when you need the formatting or structure.
mark_as_readNoMark the message read at the provider after fetching it.
body_max_charsNoBody chars per message. Default 8000 here, 2000 on read_batch. 0 returns headers only.
has_attachmentNotrue = only messages with an attachment. Ignored on generic IMAP.
include_foldersNoFolders to search. IMAP covers INBOX only unless you name archive or sent folders; Gmail always searches everything.
attachment_indexNo0-based position in the `attachments` list from action: read. Wins over `filename`.
body_html_offsetNoThe same for body_html: pass back body_html_next_offset.
include_attachmentsNoInline attachment bytes as base64, sharing one 10 MB budget. Files over 2 MB are NOT inlined; they return metadata with a `note`. Metadata (filename, mime_type, size_bytes, attachment_index) always comes back anyway, so prefer false, then fetch the one file you need with action: attachment by its attachment_index (up to 25 MB).

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.0.4

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true, idempotentHint=true, and destructiveHint=false, covering the safety profile. The description adds genuinely non-obvious behavior beyond that: single-page returns with has_more/next_offet continuation ('Only has_more: false means you have seen everything') and windowed bodies via body_truncated/body_next_offet. No contradiction with annotations.

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?

Four short sentences with zero filler. The purpose is front-loaded in sentence one, and each of the two protocol traps (page continuation, body windowing) gets one dense sentence that earns its place. Nothing is redundant with the schema.

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?

For a 30-parameter, 7-action tool with no output schema, the description captures the trickiest protocol contract — pagination and body windowing — that an agent would most likely get wrong. Operational details like per-action semantics, the 10 MB attachment budget, inbox disambiguation, and provider quirks are carried by the thoroughly described schema, so the division of labour is reasonable. Return shapes aren't covered, but the absent output schema makes that a minor gap.

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%, and the parameter docs already explain the continuation semantics (offset: 'Pass the previous response's next_offset exactly'; body_offset: 'Pass back body_next_offset to continue a truncated body'). The description reinforces this at the protocol level but adds little the schema didn't already say, 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?

The description states a specific scope: 'Read, list and search email in one inbox.' The verbs (read, list, search) name the concrete operations and the resource is unambiguous. It doesn't explicitly differentiate from siblings like inbox_list or email_organize, but the operation set is precise enough that an agent can tell what this tool does at a glance.

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?

The description gives no explicit when-to-use-vs-alternatives guidance for sibling tools. It does teach the pagination loop within the tool, and the schema's `action` parameter description routes the agent to the right action (list/read/read_batch/search/attachment/extract/original) with per-action semantics. This is implied rather than explicit guidance, so a 3 fits.

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

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/Albretsen/MCPEmails'

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