Skip to main content
Glama

Inject test mail

mails.inject

Inject a simulated inbound email into a mailbox (multipart upload). No external mail is sent; use this to simulate inbound mail for flow testing.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bodyYesPlain-text body
senderYesSender email address
subjectYesEmail subject
expiresInNoMail lifetime in minutes (>=1). Optional.
mailboxIdYesMailbox ID
attachmentsNoAttachments to include

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesMail ID
bodyNoPlain-text body (present on single-mail fetches)
senderYesSender email address
subjectYesEmail subject
expiresAtNoExpiry timestamp (RFC 3339)
receivedAtNoReceived timestamp (RFC 3339)

Schema Changelog

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

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover read-only, destructive, and idempotency hints, so the description's main job is to add context. It does so by disclosing that the operation is a simulation, requires multipart upload, and does not send external mail. No contradiction with annotations is present.

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 two sentences with no filler. The core action is front-loaded, followed by the testing purpose and the key distinction that no external mail is sent.

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?

Given the presence of a rich input schema and an output schema, the description only needs to supply the tool's intent and behavior. It does that well. A minor gap is that it does not mention any side effects within the mailbox or limitations on attachment handling, but these are largely covered by the schema.

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?

All parameters have schema descriptions with 100% coverage, so the description does not need to re-document them. The phrase 'multipart upload' hints at how attachments are handled, but the description adds no parameter-level 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 identifies a specific verb and resource: 'Inject a simulated inbound email into a mailbox.' It clearly differentiates the tool from the mails.get/mails.list/mails.delete siblings by emphasizing the simulated, inbound nature and the 'multipart upload' mechanism.

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 explicitly states when to use it: 'use this to simulate inbound mail for flow testing.' It also clarifies what it is not for: 'No external mail is sent.' It does not name an alternative tool, but the sibling list makes the placement clear.

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.