Skip to main content
Glama

Mailbuttons (mbag.ai)

Send an email (governed)

mailbuttons_send_email
Destructive

Send or reply from a scoped inbox, subject to send policy. Sandbox tokens can never deliver to external recipients — such sends return draft_pending_approval; disallowed recipients return blocked with the matched rule. Both are EXPECTED governed outcomes, not errors. Requires the send_internal capability.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toYesRecipient addresses. External recipients on a sandbox token become drafts.
htmlNoOptional HTML body.
modeNo"send" (default) attempts delivery; "draft" always parks for approval.
textNoPlain-text body.
subjectYesEmail subject.
inbox_idYesSending inbox (mailbox) id. Must be in scope for the token.
thread_idNoIf set, send as a threaded reply rather than a fresh message.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Adds substantial context beyond annotations: it discloses the `draft_pending_approval` and `blocked` governed outcomes, explains these are expected rather than errors, references the matched rule, and states the required `send_internal` capability. This is exactly the kind of auth/governance detail annotations alone cannot convey.

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 dense sentences, zero waste, front-loading the core purpose before the governance behavior and capability requirement. Every sentence earns its place.

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?

With no output schema, the description carries the return-value burden and does so, explaining the two governed outcome states. Combined with the capability requirement and sandbox rules, an agent has enough to call and interpret results correctly.

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 all 7 parameters are already documented, including the sandbox/recipient semantics and the mode enum. The description's mention of 'reply' loosely maps to thread_id but adds no syntax or format detail beyond the schema, so the baseline 3 applies.

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?

States specific verbs (send or reply) plus the resource and scope ('from a scoped inbox'), and immediately qualifies it with governance context. It is clearly distinguishable from siblings like mailbuttons_get_message or mailbuttons_list_drafts, which read rather than deliver.

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?

Gives clear operating context — sandbox tokens cannot deliver externally, disallowed recipients are blocked, and the `send_internal` capability is required. It does not explicitly name sibling alternatives (e.g., when to use get_draft versus send), but the conditions that govern a send are well specified.

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.