Skip to main content
Glama

Get message

mail_get_message
Read-only

Fetch one email by opaque message ID to read the sender’s original subject and body plus its attachment list, optionally starting at a Unicode offset in the body.

Instructions

Fetches one message, including its text and attachment list. The subject and body are as the sender wrote them.

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": {
      "id": "<id>"
    },
    "name": "mail_get_message"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesOpaque message id.
offsetNoUnicode scalar offset into the body. Omitted means the start.

Output Schema

NameRequiredDescriptionDefault
idYes
toYes
bodyYes
dateYes
fromYes
subjectYes
attachmentsYes
next_offsetYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=true, so safety is covered. The description adds one genuinely useful behavioral note — subject and body are returned verbatim as the sender wrote them, implying no normalization or sanitization — but says nothing about failure modes for an invalid or missing id.

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

Conciseness4/5

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

Two short, front-loaded sentences with no padding; the return contents are stated first and the verbatim-content caveat second. Nothing is redundant, though the second sentence is slightly oblique in phrasing.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be explained, and the annotations cover the safety profile. What is missing is how to obtain a valid message id and any note on error behavior for unknown ids, leaving a modest gap for a simple two-parameter read tool.

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%, so both the opaque 'id' and the 'offset' Unicode-scalar paging parameter are already documented in the schema. The description adds no meaning beyond that, which is the expected baseline when the schema does the work.

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 gives a specific verb and resource ('Fetches one message') and names what comes back ('text and attachment list'), which lets an agent separate it from mail_get_attachment or mail_search. It stops short of explicitly contrasting with those siblings, so it is clear but not fully differentiated.

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

Usage Guidelines2/5

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

There is no statement of when to use this tool versus alternatives such as mail_search (to find an id) or mail_get_attachment (for attachment contents). The reader must infer that a known id is a prerequisite from the required 'id' parameter in the schema.

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