Skip to main content
Glama
TheSameAbramovych

qmailing MCP server

Download an email attachment

qmailing_get_attachment
Read-only

Download an attachment from an email using its UUID and attachment index; returns base64 content up to 5 MiB, or signals if the file is too large for inline retrieval.

Instructions

Download an attachment from an email and return its bytes as base64. Use after qmailing_get_email when the user asks to inspect, summarise, or forward an attachment. Inline payload is capped at 5 MiB — over the cap the tool returns { tooLarge: true, sizeBytes } instead of contentBase64, and the user has to fetch the file through the web UI.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
emailIdYesEmail UUID (from qmailing_list_emails / qmailing_get_email).
indexYesZero-based attachment index inside the email's attachment list.
Behavior5/5

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

Beyond annotations (readOnlyHint, openWorldHint), description discloses inline payload cap at 5 MiB and the return format { tooLarge: true, sizeBytes } when exceeded. No contradiction with annotations.

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?

Three sentences: first states purpose, second gives usage context, third details limit. No extraneous words. Front-loaded with key action.

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?

For a simple 2-param tool with no output schema, the description covers purpose, usage, behavioral constraint, and output format for edge case. Fully sufficient.

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 descriptions for emailId and index. Description adds little beyond schema, but context of using after qmailing_get_email adds value. Baseline 3 is appropriate.

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?

Description states 'Download an attachment from an email and return its bytes as base64' – specific verb+resource+output. Distinguishes from sibling qmailing_get_email which retrieves email content.

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?

Explicitly says 'Use after qmailing_get_email when the user asks to inspect, summarise, or forward an attachment.' Also mentions the 5 MiB cap and fallback to web UI, providing clear when-to-use and limitations.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/TheSameAbramovych/qmailing-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server