Skip to main content
Glama
Sealjay

mcp-hey

by Sealjay

hey_edit_draft

Idempotent

Update an existing draft's recipients, subject, or body. Each field you pass replaces the current value; omit a field to leave it unchanged.

Instructions

Update an existing draft's recipients, subject, or body. Every field you pass replaces the draft's current value outright (no merging) — omit a field to leave it as Hey last saved it. Returns {success, draftId, error?}. Previous field values are not recoverable once overwritten, so re-fetch via hey_list_emails(folder='drafts') first if you need to preserve them. Use hey_save_draft to create a draft before calling this, and hey_delete_draft to remove one instead of blanking it out.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ccNoReplace the CC list with these addresses
toNoReplace the recipient list with these addresses
bodyNoReplace the body content (HTML supported)
subjectNoReplace the subject line
draft_idYesThe draft's message ID, from hey_save_draft's draftId or hey_list_emails(folder='drafts')

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.5.0

TDQS

A4.6/5.0
Behavior4/5

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

Adds substantial context beyond the annotations: outright (non-merging) replacement semantics, the omit-to-leave-unchanged rule, irreversibility of overwritten values, and the return shape {success, draftId, error?}. There is mild tension with destructiveHint=false given the explicit warning that previous values are not recoverable, but the target draft itself is not destroyed, so this reads as nuance rather than a hard contradiction.

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 purpose and the crucial no-merge/omit rule are front-loaded, followed by return shape, irreversibility, and routing. Every sentence carries information, though the description is dense and runs slightly long for a five-parameter update tool.

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?

No output schema exists, yet the description supplies the return shape and the key behavioral rules (replacement, omission, irreversibility) an agent needs to invoke it safely. Nothing essential is missing for correct invocation.

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 description coverage is 100%, so the baseline is 3. The description goes beyond the schema by clarifying that omitted fields retain their last-saved value and that passing a field replaces rather than merges — a semantic the schema does not state and that materially affects how the agent should call it.

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 a specific verb (update), resource (an existing draft), and the exact mutable fields (recipients, subject, body). It also explicitly distinguishes itself from the sibling create tool hey_save_draft and the removal tool hey_delete_draft, so an agent can route correctly without opening any 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?

Explicitly states prerequisites ('Use hey_save_draft to create a draft before calling this') and a when-not condition ('use hey_delete_draft to remove one instead of blanking it out'). It also gives a concrete guidance action — re-fetch via hey_list_emails(folder='drafts') first if preservation matters.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.