Skip to main content
Glama
Automata MCP

Automata MCP

Read email

read-email
Read-onlyIdempotent

Read a single email's headers, plain-text body, and attachment list by email ID; continue truncated bodies with an offset to retrieve the rest.

Instructions

[Email] Read one email: its headers, its body as plain text (HTML is converted), and its attachment list. Takes an emailId from list-emails or search-emails, unchanged. Long bodies come back in pieces: when truncated is true call again with offset: nextOffset for the rest. Attachments are listed by part; fetch one with get-email-attachment only when its content is needed. messageId, inReplyTo and references identify the email in its thread — search-emails by subject finds the rest of a conversation.

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": {
      "emailId": "<emailId>"
    },
    "name": "read-email"
  }
}

Input Schema

NameRequiredDescriptionDefault
offsetNoCharacter offset into the body, for continuing a truncated one
emailIdYesAn emailId from list-emails or search-emails
maxCharsNoMost body characters to return

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the annotations, the description discloses important behavior: HTML bodies are converted to plain text, long bodies are paginated with `truncated` and `nextOffset`, and attachments are listed by `part` rather than fetched automatically. It also explains how thread identifiers relate to search-emails.

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?

The description is dense but front-loaded: the primary read operation and returned fields come first, followed by pagination and attachment guidance. Every sentence carries actionable information without repetition.

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?

With no output schema, the description carries the burden of explaining return values and does so thoroughly: headers, converted body text, attachment list, truncation state, and thread identifiers. It gives an agent enough information to call the tool correctly and handle a truncated response.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the schema already documents all three parameters. The description adds useful semantics for `emailId` provenance and for `offset` as the continuation mechanism after truncation, though it does not further explain `maxChars` beyond the schema.

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 states a specific verb and resource: read one email. It precisely enumerates the returned content—headers, body converted from HTML to plain text, and attachment list—and distinguishes the tool from list-emails, search-emails, and get-email-attachment.

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 explicitly says to obtain `emailId` from list-emails or search-emails and pass it unchanged. It provides conditional continuation guidance for truncated bodies and directs attachment content retrieval to get-email-attachment only when needed.

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