Skip to main content
Glama

import_attachment

Prepare an attachment from a client upload, an existing mail attachment or an original .eml. Use its attachmentId only when READY.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sourceYesSource of the attachment; arbitrary URLs and server file paths are forbidden.
mailboxIdYesEPST mailbox UUID, not an email address or RFC Message-ID.
idempotencyKeyYesA new operation key; reuse exactly the same key and input when retrying.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Beyond the annotations, it discloses an important behavioral trait: the attachment is not immediately usable, but only once its ID is in READY state. It also implies a non-read, stateful operation, consistent with readOnlyHint=false. This readiness behavior is not available from annotations or schema alone.

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?

Two sentences carry all essential information: the verb, the resource, the source categories, and the readiness condition. It is front-loaded with purpose and contains no filler or redundant restatement of schema fields.

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 tool with a rich nested input schema and an output schema, the description covers what an agent must know outside the schema: the types of sources accepted and the need to wait for READY before using the returned attachmentId. No critical operational guidance is missing.

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 schema already fully documents all parameters and nested source variants. The description only summarizes the three source categories already defined as the oneOf variants, adding no new meaning 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 clearly states a specific verb ('Prepare') and resource ('an attachment'), and enumerates the three supported source types: client upload, existing mail attachment, or original .eml. This differentiates it from siblings like read_attachment and send_email by naming the exact input forms.

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?

The description gives clear context for when to use the tool: when an attachment must be prepared from one of the listed sources. It also adds a key usage condition, 'Use its attachmentId only when READY,' though it does not explicitly contrast with alternative tools.

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