Skip to main content
Glama

Email: Read message

email_read_message
Read-onlyIdempotent

Read a specific email including body/headers from Gmail, Microsoft/Outlook or IMAP. Use after email_list_messages and before a contextual reply or cross-channel decision.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
email_idYesExact provider email ID returned by an email list/resolve/read result. Never pass the subject or sender. Email provider ID: Exact email ID returned by Nilyo/Unipile for the connected mailbox. On IMAP (and Exchange over IMAP) the ID encodes folder + UID: it CHANGES when the email is moved or a draft is updated; always reuse the id returned by the last operation. Obtain with: email_list_messages or email_list_folder_messages -> email.id; the id returned by email_move_or_label / email_update_draft after a change Never pass: RFC Message-ID unless a tool explicitly documents it, subject, an email_id captured before a move/update on IMAP.
account_idNoOptional Nilyo connection ID (unipile_account_id from list_connected_accounts). Omit when the user has one account for this provider. When several exist, Nilyo never guesses: list them (display name, identifier, provider user ID), choose the one the user named or ask, and pass its ID here.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already establish the read-only, idempotent, non-destructive profile, and the description's 'Read' is consistent with that. The description adds useful scoping (body/headers, provider support) but does not disclose behavior such as whether fetching marks the email as read, how attachments are handled, or response shape. Since annotations cover the safety profile, this is acceptable but not exemplary.

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?

Two short sentences, with the core action and scope in the first sentence and workflow placement in the second. There is no filler, repetition, or needless detail; each sentence earns its place.

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?

The schema carries the complex ID caveats and account-selection rule, while the description supplies workflow placement and a high-level return description ('body/headers') in the absence of an output schema. It could be more complete by explicitly excluding attachments or pointing to email_get_attachment/email_get_thread, but the tool remains callable with the information provided.

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?

Both parameters have 100% schema description coverage, with the email_id description going into depth about provider IDs, IMAP ID instability, and what not to pass. The prose description adds no extra parameter semantics beyond that, 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?

States a concrete action ('Read'), the resource ('a specific email'), and the payload scope ('body/headers'), plus supported providers (Gmail, Microsoft/Outlook, IMAP). It is clear enough to be picked over list/resolve tools, but it does not explicitly contrast itself with sibling getters such as email_get_thread or email_get_draft.

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 second sentence is explicit workflow guidance: 'Use after email_list_messages and before a contextual reply or cross-channel decision.' This tells an agent the appropriate position in a multi-step task. It does not, however, name exclusions or alternative tools like email_get_thread for thread-level reads, so it stops short of full when/when-not guidance.

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.