Skip to main content
Glama
Xallor Email MCP

Xallor Email MCP

Official
by xallor-ai

read_attachment

Downloads an email attachment to a temporary file and returns its path using messageId and attachmentId from a prior read_email call.

Instructions

Download an email attachment to a temporary file and return its path. Use messageId and attachmentId from a prior read_email call. The response may include the parent message's webUrl, a user-shareable native-client link that requires mailbox access, or webUrlUnavailableReason when no link is available.

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": {
      "account": "<account>",
      "messageId": "<messageId>",
      "attachmentId": "<attachmentId>"
    },
    "name": "read_attachment"
  }
}

Input Schema

NameRequiredDescriptionDefault
accountYes
messageIdYes
attachmentIdYes

Output Schema

NameRequiredDescriptionDefault
nameYes
pathYes
webUrlNo
contentTypeNo
webUrlUnavailableReasonNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.8.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden. It usefully discloses that the attachment is downloaded to a temporary file and that webUrl requires mailbox access, but it does not cover permissions for downloading, temp-file persistence or cleanup, size limits, or error behavior.

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 action and return value are front-loaded in the first sentence, and the prerequisite follows immediately. The final sentence about webUrl is dense but relevant and does not read as padding.

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 the description need not fully document return values, and it adds useful context about webUrl and webUrlUnavailableReason. However, for a tool with three required parameters, no annotations, and zero schema description coverage, the missing account semantics and download-permission details leave meaningful gaps.

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 0%, so the description should compensate. It explains where messageId and attachmentId come from, but it leaves the required account parameter unexplained beyond the schema's email format pattern.

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: downloading an email attachment to a temporary file and returning its path. It clearly distinguishes this from sibling tools such as read_email, which is named only as the source of identifiers.

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?

It gives a clear prerequisite: messageId and attachmentId must come from a prior read_email call. It does not describe when not to use the tool or name any alternative attachment-access method, but the usage context is clear.

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