Skip to main content
Glama

Mail Get

mail_get
Read-only

Fetch a single email by ID and unwrap forwarded messages to extract the original sender, subject, body, and attachment paths for review or reply drafting.

Instructions

Fetch a single email by ID. Unwraps forwarded messages to extract the original.

Returns dict with keys: id, thread_id, sender (the account that forwarded this message to Hermes), original_sender, original_subject, original_body (plain text), original_to, original_cc, original_reply_to, rfc_message_id, in_reply_to, references (RFC 822 threading headers; mail_create_reply_draft uses them for you), forwarding_note (text the user wrote above the forward delimiter, or null), attachment_paths (list of local file paths in ~/.cache/hermes-google/).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "message_id": "<message_id>"
    },
    "name": "mail_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
message_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, non-destructive, closed-world), and the description goes well beyond them by disclosing the non-obvious transformation (forward unwrapping), the meaning of `sender` as the forwarding account, and that attachments are written into a local cache directory. It loses a point only because most of the remaining content restates return fields rather than behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose sentence is well front-loaded and earns its place, but the long second paragraph enumerating eleven return keys largely duplicates the output schema; only a few entries (sender, forwarding_note, attachment_paths) add meaning, so the length is only partly justified.

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?

With an output schema present, the description need not explain return values, and with annotations present it need not explain safety; the key behavioral surprise (forward unwrapping) is disclosed. The one missing piece an agent needs to call it correctly is how to obtain a valid message_id.

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?

There is one required parameter with 0% schema description coverage, so the description must carry the load, and it only says "by ID". Given that the returned dict contains both `id` and `rfc_message_id`, it is genuinely ambiguous which identifier form message_id accepts — a meaningful gap for a single-param lookup tool.

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?

States a specific verb and resource ("Fetch a single email by ID") and adds a distinguishing behavior — unwrapping forwarded messages to extract the original — that separates it from mail_search or mail_list_pending in the sibling set.

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?

Usage is only implied: the agent can infer this is the way to read one message once an ID is known, and there is a useful forward reference that mail_create_reply_draft consumes the threading headers. However, it never says where the message_id comes from (mail_search/mail_list_pending) or when to prefer it over those siblings.

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