Skip to main content
Glama

Add attachment

attachments.add

Attach a file to a test-injected email (base64 payload).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYesFile contents, standard base64
mailIdYesMail ID
filenameYesAttachment file name
expiresInNoAttachment lifetime in minutes (>=1). Optional.
mailboxIdYesMailbox ID
sizeBytesNoExpected size in bytes. Optional; validated against the decoded data when set.
contentTypeNoMIME type, defaults to application/octet-stream

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesAttachment ID
filenameYesAttachment file name
expiresAtNoExpiry timestamp (RFC 3339)
sizeBytesNoSize in bytes
contentTypeNoMIME type

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations show this is a write operation (readOnlyHint false, idempotentHint false), and the description's "attach" aligns with that without contradicting it. It adds the context that the target is a test-injected email, but does not disclose side effects such as whether an existing attachment is replaced or how errors are handled.

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 a single, front-loaded sentence that says what the tool does and the payload format. There is no filler or repetition.

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?

The tool is a simple add operation with a full input schema and an output schema, so the minimal description is largely sufficient. It lacks only an explicit statement that the mail must already exist, though the required mailId parameter implies this.

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 documents all seven parameters. The description's only parameter-related phrase, "base64 payload," duplicates the data parameter's existing description, so it adds no new meaning.

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?

"Attach a file to a test-injected email" names a specific action and target resource, and the verb clearly distinguishes it from sibling get/list/delete tools. The base64 payload parenthetical adds the technical mechanism without blurring the purpose.

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 phrase "test-injected email" gives a clear context: this tool is for adding attachments to synthetic emails, not to arbitrary real mail. It does not explicitly name alternatives or exclusions, 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.

TDQS

A3.6/5.0
Disambiguation4/5

The resource namespaces make most tools easy to tell apart, and each action has a clear target. A couple of boundary cases exist, such as attachments.add versus mails.inject, since both relate to putting files on a simulated email, but descriptions mostly resolve the ambiguity.

Naming Consistency5/5

Every tool follows the same resource.action convention, and the action verbs are predictable across the set, including delete_bulk and rotate_secret. The pattern is uniform even across different resource families, making the API very predictable.

Tool Count2/5

With 40 tools, the surface is quite large for an MCP server, even though the namespaces are clean. Many singular and bulk delete variants could be combined or expressed as parameters to reduce the count, so the set feels heavier than it needs to be.

Completeness4/5

The server covers the main lifecycle needs for mailboxes, emails, attachments, archived mailboxes, domains, identities, OAuth clients, and team management. Minor gaps remain, such as no mailbox update/rename, no manual archive action, and no invitation acceptance endpoint, but agents can work around these.