Skip to main content
Glama

unmake file tools

Read an e-mail file (.eml, .msg, .mbox)

mail_view
Read-onlyIdempotent

Read an e-mail file (.eml, .msg, .mbox). Opens an e-mail file and returns sender, recipients, date, subject, the text (HTML reduced to plain text, never rendered), all headers and the attachments as files. Outlook .msg, .eml, .emlx, .mht and mailboxes (.mbox: list of messages). The upload is deleted as soon as the result is delivered. Use when: An agent has an e-mail file and needs its text, addresses or attachments. Not for: Checking whether attachments are safe or whether the sender is genuine (SPF/DKIM). File types: eml, msg, emlx, mbox, mht. Max 30 MB.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "mail_view"
  }
}

Input Schema

NameRequiredDescriptionDefault
optionsNoTool options, if any (see the tool description).
file_urlNoPublic https URL of the file (preferred).
filenameNoFile name with its extension, e.g. part.step.
file_base64NoThe file as base64, for small files without a URL (give filename too).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Adds context well beyond the annotations: HTML is reduced to plain text and never rendered, the uploaded file is deleted as soon as the result is delivered, and there is a 30 MB size cap. These are exactly the security, privacy and limit facts an agent needs and cannot get from readOnlyHint/idempotentHint.

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?

Purpose is front-loaded and the use-when / not-for routing follows immediately, which is the right order. Minor waste remains: the extension list appears twice (once in the first sentence, again under "File types") and several sentences are verbless fragments.

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 no output schema, the description does the work of naming the returned fields, and it covers formats, size limits and lifecycle of the upload. The one gap is mbox handling: it says "list of messages" but not whether all messages are returned in one result or how multiples are represented, which matters for a mailbox file.

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 the four parameters are already documented, including the "give filename too" pairing with file_base64 and the URL being preferred. The description adds no further parameter guidance and leaves the nested "options" object entirely unexplored beyond "see the tool description".

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 ("Read an e-mail file") and immediately enumerates the concrete payload returned: sender, recipients, date, subject, plain-text body, headers, attachments. An agent can distinguish this from document-audit siblings like doc_invoice_audit without opening the schema.

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

Usage Guidelines4/5

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

Provides an explicit "Use when:" clause (agent has an e-mail file and needs text, addresses or attachments) and an explicit "Not for:" exclusion (attachment safety / sender authenticity via SPF/DKIM). It does not name a concrete alternative tool to route to for those excluded tasks, so it stops short of a 5.

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.

Resources