Skip to main content
Glama

Draft an email

draft_email
Idempotent

Draft one email to a contact. Drafts are auto-approved by default (the operator can switch approval on for the workspace or for you; then the draft waits in their Approvals inbox). Approved mail that cannot be sent to the recipient yet waits in the operator's To send list and the response says so. Refuses with contact_suppressed when the contact replied, unsubscribed or bounced. One recipient per message, plain text, no attachments. Accepts only contact_id (or to), subject, body: any other argument is rejected with unknown_field. The response carries warnings (codes: open_draft_exists when another unsent draft to the same contact exists, emailed_N_days_ago when mail went out in the last 3 days, contact_status_) and prior_emails; check them before drafting a second message to the same person. Requires the draft_email scope.

Input Schema

NameRequiredDescriptionDefault
toNoOr the contact's email address.
bodyYesPlain-text body. The platform adds the sender identity and unsubscribe footer.
subjectYesSingle-line subject.
contact_idNoContact id.
idempotency_keyNoOptional. Repeating a call with the same key and the same arguments returns the first result instead of writing again, so retries are safe.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare write/idempotent/non-destructive; the description goes far beyond by disclosing the approval workflow, the 'To send' holding state, the contact_suppressed refusal condition, and the warning code vocabulary. It also names the required draft_email scope, which annotations cannot express.

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 core action and the approval consequence are front-loaded, and nearly every sentence carries non-obvious operational detail. It is a single dense paragraph though, with warning-code enumeration mid-stream that could be structured for faster scanning.

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 compensates by naming the response fields (warnings codes, prior_emails) and explaining what each signals. Combined with refusal conditions, scope requirements, and argument rejection behavior, an agent has everything needed to call this correctly and interpret the result.

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, and the description adds real semantics: contact_id and to are alternatives, one recipient only, plain-text body with platform-added footer. It loses a point because its 'accepts only contact_id (or to), subject, body' enumeration omits idempotency_key, which the schema documents and the annotations advertise as idempotent — a minor inconsistency an agent could trip over.

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 states a specific verb and resource ('Draft one email to a contact') and immediately bounds scope: one recipient, plain text, no attachments. No sibling in the list (add_note, list_email_status, campaign tools) could be confused with this operation.

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?

The description gives concrete usage context: drafts are auto-approved unless the operator enabled approval, and 'check them before drafting a second message to the same person' is an explicit precondition. It never names an alternative tool or an explicit case where you should not draft at all, so it stops short of full when/when-not guidance.

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