Skip to main content
Glama

mailgate_simulate_email

Inject a simulated RFC822 email through the live MIME parser and OTP extractor to test verification-code handling; requires admin token and ALLOW_SIMULATE=true.

Instructions

Inject a simulated RFC822 message through the live MIME parser and OTP extractor (requires MAILGATE_ADMIN_TOKEN and ALLOW_SIMULATE=true).

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": {
      "to": "<to>"
    },
    "name": "mailgate_simulate_email"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesAllowlisted recipient inbox address.
fromNoOptional sender address.
subjectNoOptional email subject (defaults to random OTP).
body_textNoOptional plain-text body.
from_nameNoOptional sender display name.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It does disclose two real prerequisites (MAILGATE_ADMIN_TOKEN and ALLOW_SIMULATE=true), which is valuable, but says nothing about what the injection actually does: whether the message persists in an inbox, whether mailgate_list_messages or mailgate_wait_for_otp will observe it, whether it can be cleared, or what the call returns.

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?

One sentence, front-loaded with the action, followed by a compact parenthetical for gating requirements. Nothing is repeated or wasted.

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?

For a simulation/injection tool with no annotations and no output schema, an agent still needs to know the observable effects of injection — inbox persistence, visibility to the wait/list tools, and response shape. Those are missing, leaving the definition adequate but incomplete for a five-parameter mutation-adjacent tool.

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 explains all five fields and their defaults. The description adds only the framing that these fields compose an RFC822 message routed through the MIME parser, which is marginal additional meaning; baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific action (inject a simulated RFC822 message) and the exact pipeline it traverses (live MIME parser and OTP extractor), which clearly separates it from siblings like mailgate_list_messages or mailgate_wait_for_otp. It stops short of naming an alternative for the same goal, but the purpose is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: the word 'simulated' plus the admin-token gate signal this is a testing/QA entry point rather than a normal send path. There is no explicit statement of when to reach for this versus the wait/list siblings, and no exclusions about production use.

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