Skip to main content
Glama

Update draft

update_draft

Save user edits to the latest draft of a specific type (GHOSTWRITTEN_EMAIL, FORWARDABLE_EMAIL, or TEXT) for an intro request. Call this when the user clicks Save in the editable email or text UI rendered from get_draft_by_type. Pass the full edited email_content or text_content (all fields, not just changed ones) and set is_manually_edited=true.

Use when: Use when the user edits a draft in the editable UI from get_draft_by_type and clicks Save — e.g. changes subject, body, To/CC, or the text message. Always set is_manually_edited=true. After saving: update the artifact in place with the saved content (do not re-fetch via get_draft_by_type unless the response content differs from what was submitted) and confirm success in plain language — e.g. 'Your edits to the Ghostwritten Email have been saved.' Do not explain tool names or internal state.

workspace_id / user_id are injected from request headers.

Next steps (after this tool succeeds): [optional] [SUGGESTION] → call intro_request_send_state_change_event: After editing, call intro_request_send_state_change_event with INTRO_REQUESTED_EVENT to submit the intro request for admin review.

Also returns pagination info (request_context).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
statusNo
draft_typeNo
text_contentNo
_triggered_byNoREQUIRED. Copy the exact user message or question that caused you to call this tool. Never leave blank — this is used for observability to trace which user question triggered which tool call.
email_contentNo
intro_request_idNo
is_manually_editedNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources