Skip to main content
Glama

get_email

Read-only

Eine Mail vollstaendig — empfangen (list_emails) ODER von uns gesendet (Kennung aus list_email_history; dann source='sent'): Kopfdaten, Klartext in body/email.body_text, den unveraendert gespeicherten HTML-Teil in html/email.body_html (wenn vorhanden), Anhaenge als Dokumente, Zuordnung und Klassifizierung. HTML ist nicht vertrauenswuerdig und darf in einer UI nur sanitisiert gerendert werden. Required: email_id. list_emails gibt die Liste und die Betreffs; das hier ist der einzige Weg zu dem, was eine Mail tatsaechlich SAGT. LANGE MAILS (Tagesberichte, Exporte): full=true oder max_chars (1000–60000) setzen — dann kommt eine schlanke Antwort mit EINEM Textfeld body (ohne HTML und ohne doppelte Felder), body_chars (Gesamtlaenge), next_offset und complete; ist complete=false, mit offset=next_offset weiterlesen. Ohne diese Parameter bleibt die Antwort wie bisher. Read-only.

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": {
      "email_id": "<email_id>"
    },
    "name": "get_email"
  }
}

Input Schema

NameRequiredDescriptionDefault
fullNoGanzen Text lesen (bis 60000 Zeichen je Aufruf), schlanke Antwort. Fuer Berichte immer setzen.
offsetNoAb diesem Zeichen weiterlesen (next_offset der vorigen Antwort).
email_idYesE-Mail-ID, die gelesen wird
max_charsNoHoechstens so viele Zeichen Text (1000–60000); schaltet die schlanke Antwort ein.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / full
      Added value: +{
      +  "description": "Ganzen Text lesen (bis 60000 Zeichen je Aufruf), schlanke Antwort. Fuer Berichte immer setzen.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / max_chars
      Added value: +{
      +  "description": "Hoechstens so viele Zeichen Text (1000–60000); schaltet die schlanke Antwort ein.",
      +  "type": "number"
      +}
    • addedInput schema / properties / offset
      Added value: +{
      +  "description": "Ab diesem Zeichen weiterlesen (next_offset der vorigen Antwort).",
      +  "type": "number"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / email_id / description
      Added value: +"E-Mail-ID, die gelesen wird"
  3. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the readOnlyHint/openWorldHint annotations it discloses real behavior: that the HTML part is untrusted and must only be rendered sanitized, and that full/max_chars switch the response into a slim shape with a single body field, body_chars, next_offset and complete, which must be looped on. The pagination contract and the trust warning are exactly the kind of context annotations cannot carry.

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?

The most important routing information (this is the only way to the actual content) and the long-mail handling come early and are clearly marked with capitalised headers. It is dense and dash-heavy with some redundancy, notably the closing 'Read-only.' which only repeats the readOnlyHint annotation.

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?

There is no output schema, and the description compensates well by describing both response shapes (rich fields vs. slim body/body_chars/next_offset/complete) and how to page. The only shortfall is the dangling source='sent' reference that the schema does not support, leaving a small ambiguity about how sent mails are actually addressed.

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% with per-parameter descriptions, so the baseline is 3; the description does add value by explaining that full and max_chars jointly enable the slim response and that offset must be set to the previous next_offset. However, it instructs the agent to use source='sent' for sent mails while no source property exists in the input schema, which can send an agent into a validation error.

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?

The description names a specific verb and resource (reading one complete email) and enumerates what is returned: headers, plaintext in body/email.body_text, the stored HTML part, attachments, assignment and classification. It explicitly separates itself from list_emails (list + subjects) and list_email_history (sent mails), so an agent can pick it without opening another schema.

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?

It states when to use it versus alternatives: list_emails for the list and subjects, this tool as 'the only way to what a mail actually SAYS', and list_email_history when the mail was sent by us. It also gives an explicit rule for long mails (set full=true or max_chars 1000–60000) and the continuation procedure via offset=next_offset.

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.