Gmail capability
How to retrieve the body of a Gmail message
Call users.messages.get with format=full to inspect the parsed message or format=raw to get the original MIME payload. A connected Gmail MCP client can retrieve the body using get_message.
Documentation reviewed
Ways to do it
API
users.messages.get
Retrieve a message by Gmail message ID. Choose full for a parsed MIME payload or raw for the encoded original.
- Requirements
- An authorized Gmail OAuth token with a content scope such as gmail.readonly, plus the Gmail message ID.
- Limitations
- The gmail.metadata scope can return metadata only. The raw format requires a scope that can read message content.
Example
GET https://gmail.googleapis.com/gmail/v1/users/me/messages/MESSAGE_ID?format=fullMCP
get_message
Retrieve a message in plain text by default. Request FULL_CONTENT when you also need its HTML body.
- Requirements
- An authenticated Gmail MCP connection and the message ID.
- Limitations
- This tool is for existing messages. Gmail’s MCP reference directs you to list_drafts for drafts.
Example
{
"messageId": "MESSAGE_ID",
"messageFormat": "PLAIN_TEXT"
}