Skip to main content
Glama

Mailrun Agent Identity

Send draft

send_draft
Idempotent

Send an existing draft as-is from the mailbox (202). The draft is removed only after the provider accepts. Requires a stable idempotency_key; the same key replays instead of sending twice.

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": {
      "identity_id": "<identity_id>",
      "draft_id": "<draft_id>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "send_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
draft_idYes
identity_idYesIdentity id from list_identities.
idempotency_keyYesStable key you choose (max 64 chars); reuse it on retry. A different payload under the same key is refused with idempotency_conflict.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Beyond the annotations, the description explains that the draft is removed only after the provider accepts and that the same idempotency key replays rather than sending twice. These are useful operational details about mutation timing and retry safety. It does not cover auth requirements or failure modes in depth, but the annotations already signal idempotent, non-destructive, open-world behavior.

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 short sentences, front-loaded with the core action and scope, followed by the deletion timing and idempotency requirement. Every sentence contributes useful information with no redundancy.

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?

For a mutation tool with no output schema, the description covers the important behavioral details: success status, deletion timing, and idempotent replay. It does not mention permission requirements or error handling beyond idempotency conflicts, leaving a minor gap.

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 coverage is 67%, and the schema already documents identity_id and the idempotency_key semantics including conflict behavior. The description reinforces that idempotency_key is required and explains replay behavior, but it does not add much meaning for draft_id or identity_id beyond what the schema provides.

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 states a specific verb and resource: send an existing draft as-is from the mailbox. It distinguishes this from create_draft or send_email by emphasizing that the draft already exists and is sent as-is, and it includes the 202 response context.

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?

It clearly establishes when this tool applies: sending an already-created draft without modification, with a required idempotency key. It does not explicitly name when not to use it or name a sibling alternative, so it falls short of a full when/when-not guide.

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