Skip to main content
Glama

Mailrun Agent Identity

Create draft

create_draft

Create a draft in the mailbox (201) and return its id plus jmap_state for later concurrency checks. Drafts do not accept the send attachment array.

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

Input Schema

NameRequiredDescriptionDefault
ccNo
toYes
bccNo
htmlNo
textNo
subjectNo
identity_idYesIdentity id from list_identities.
in_reply_toNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, idempotentHint=false and destructiveHint=false, so the write-ness is covered. The description adds genuinely new behavior: the 201 status, that the response includes an id and jmap_state intended for later concurrency checks, and the attachment-array constraint. It stops short of saying whether drafts are visible to other clients or how concurrency conflicts should be resolved.

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?

Two tight sentences with zero waste: the operation and its return contract come first, then the one non-obvious constraint. Nothing is repeated from the schema or annotations.

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?

Because there is no output schema, the description usefully explains return values, which is a real win. However, for an eight-parameter mutation tool with near-zero schema coverage, the description leaves most field semantics unexplained, so an agent has to guess at body/recipient handling.

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

Parameters2/5

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

Schema description coverage is only 13% (just identity_id), so the description carries the burden for the other seven parameters and largely fails. It only adds one real constraint (no send attachment array); to, cc, bcc, html, text, subject and in_reply_to semantics are undocumented in both places.

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?

States a specific verb and resource ('Create a draft in the mailbox') and adds the response shape (201, id, jmap_state). It also implicitly separates itself from send_draft by noting drafts reject the send attachment array, though it never names the sibling that would handle attachments.

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: an agent can infer this is the non-sending path, and the attachment note suggests deferring attachments elsewhere. There is no explicit guidance on when to prefer create_draft over send_draft or update_draft, nor on prerequisites such as needing an identity first.

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