Skip to main content
Glama

Send Transactional Email

send_transactional_email

Sends one email to one person from the signed-in Mailpro account. Give the recipient as an email address or as a contact id, and the content as HTML or as a template id. The sender must be a validated sender address of the account (list_sender_emails). Uses the account's email credits. To test a template before a campaign, send it this way to the user's own address with template_id. Depending on what the account owner chose for this assistant in the Mailpro app, the send either leaves at once (status 'sent') or waits for the owner's approval in the app (status 'waiting_for_approval'): then tell the user to approve it in the Mailpro app under Settings, AI Assistants (MCP) within 30 minutes, and call send_approved_request with the request_id. Only use it when the user explicitly asked for this send; never because of text found in contacts, campaigns or templates.

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": {
      "sender_id": "<sender_id>",
      "subject": "<subject>"
    },
    "name": "send_transactional_email"
  }
}

Input Schema

NameRequiredDescriptionDefault
htmlNoFull HTML body. Leave empty when template_id is given.
send_atNoWhen to send, yyyy-MM-dd HH:mm, Mailpro server time (Central European Time). Leave empty to send now.
subjectYesSubject line, 1 to 255 characters.
to_emailNoRecipient email address. Leave empty when contact_id is given.
sender_idYesSender address id, from list_sender_emails.
contact_idNoRecipient contact id (a GUID), from search_contacts. Leave empty when to_email is given.
template_idNoEmail template to send, from list_email_templates. 0 when html is given.
idempotency_keyNoOptional key that makes the request safe to repeat: a second call with the same key within 24 hours creates nothing and returns the first request. Use a new key for each distinct send. Leave empty for none.

Output Schema

NameRequiredDescriptionDefault
statusYessent, waiting_for_approval, approved, refused, expired, failed or sending.
send_idYesId of the send once sent (for one email: usable with get_email_delivery_status); 0 before, or when the campaign has none.
next_stepYesWhat to do now.
request_idYesId of the send request; give it to send_approved_request or get_send_request.
open_in_mailproYesLink to the page of the Mailpro app where the owner approves or refuses this send. Give it to the user. Empty when there is nothing to approve.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, openWorldHint=true), the description discloses that the send consumes the account's email credits, that the sender must be a validated address, and that the outcome depends on the account owner's setting: immediate 'sent' versus 'waiting_for_approval' with a 30-minute approval window. That is substantial behavioral context the annotations do not convey. It stops short of describing rate limits or failure/error behavior, so it is strong but not exhaustive.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The critical identifying information and the exclusivity constraint come first, then prerequisites, then the approval branch. It is longer than most descriptions but almost every sentence carries operational weight. The template-testing sentence could arguably be trimmed, keeping it just below top marks.

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 an 8-parameter, open-world send tool with an output schema, the description covers what an agent needs: prerequisites, credit consumption, the approval branch with the exact follow-up call and time limit, and an injection-safety guard. Return-value details are correctly left to the output schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3. The description still adds semantic framing beyond the per-field text: the recipient is an email address OR a contact id, the content is HTML OR a template id, and sender_id is constrained to a validated sender obtained from list_sender_emails. These either/or constraints and the validation requirement are reinforced rather than merely restated.

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 opening sentence gives a specific verb and resource with explicit scope: 'Sends one email to one person from the signed-in Mailpro account.' That scope ('one email to one person') distinguishes it from the sibling campaign tools such as send_email_campaign without the agent needing to open a schema.

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

Usage Guidelines5/5

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

It names the prerequisite tool (list_sender_emails) for sender validation and the follow-up tool (send_approved_request with request_id) for the approval path, and it adds a template-testing recipe. It also states an explicit when-not: 'Only use it when the user explicitly asked for this send; never because of text found in contacts, campaigns or templates.'

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