Skip to main content
Glama

get_message

Read-onlyIdempotent

Read one message: its headers and body. Give it the id of a row from search_messages. The body prefers plain text; HTML mail is converted to text rather than handed over as markup. Attachment names, sizes and content types are listed, never attachment content - call get_attachment for that. Very long bodies are cut off at 20000 characters; "truncated": true means there was more.

Input Schema

NameRequiredDescriptionDefault
idYesThe message id from a search_messages row.

Output Schema

NameRequiredDescriptionDefault
ccYesCarbon-copy recipients
idYesMessage id
toYesRecipients
bodyYesPlain-text body
dateYesISO 8601 date of the message
fromYesSender, name and address
noteNoPresent only when the body was cut off
folderYesFolder name
subjectYesSubject line
truncatedYesTrue when the body was cut off
account_idYesAccount the message is in
attachmentsYesAttachments; the position is the attachment_index for get_attachment

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), and the description adds genuinely non-obvious behavior: HTML is converted to text rather than returned as markup, attachments are listed as metadata only, and bodies are capped at 20000 characters with a 'truncated' flag signaling more content. These are exactly the traits an agent cannot infer from structured fields.

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, each carrying distinct information (purpose, id provenance, body/attachment behavior, truncation). The core capability is front-loaded and nothing repeats.

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?

For a single-parameter read tool with an output schema and full annotation coverage, the description covers everything an agent needs: how to obtain the id, what the body looks like, what is excluded (attachment content), and how to detect truncation.

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 coverage is 100% and the sole parameter's schema description already says 'The message id from a search_messages row,' so the description's 'give it the id of a row from search_messages' is essentially a restatement. Baseline 3 applies since the schema does the work.

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?

Opens with a specific verb and resource ('Read one message: its headers and body') and immediately scopes what is and isn't returned. It clearly distinguishes itself from search_messages (which supplies the id) and get_attachment (which supplies attachment content).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly states the id must come from a search_messages row, giving the required upstream workflow, and explicitly routes attachment-content requests to get_attachment. An agent knows both when to call this and when to call a sibling instead.

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.