Skip to main content
Glama

send_email_reply

Create a draft reply to a Gmail email for user review and confirmation before sending.

Instructions

    Create a draft reply to an email.
    
    This tool creates a draft reply to the specified email with the provided text.
    The draft is saved but NOT sent automatically - user confirmation is required.
    
    Prerequisites:
    - The user must be authenticated. Check auth://status resource first.
    - You need an email ID, which can be obtained from list_emails() or search_emails()
    - You should use prepare_email_reply() first to get context for crafting a personalized reply
    
    Args:
        email_id (str): The ID of the email to reply to.
        reply_text (str): The text of the reply.
        include_original (bool, optional): Whether to include the original email in the reply. Defaults to True.
        
    Returns:
        Dict[str, Any]: The result of the operation, including:
            - success: Whether the operation was successful
            - message: A message describing the result
            - draft_id: The ID of the created draft
            - confirmation_required: Always True to indicate user confirmation is needed
            
    Example usage:
    1. First check authentication: access auth://status resource
    2. Get a list of emails: list_emails()
    3. Extract an email ID from the results
    4. Prepare a reply: prepare_email_reply(email_id="...")
    5. Create a draft reply: send_email_reply(email_id="...", reply_text="...")
    6. IMPORTANT: Always ask for user confirmation before sending
    7. After user confirms, use confirm_send_email(draft_id='" + draft["id"] + "')
    
    IMPORTANT: You must ALWAYS ask for user confirmation before sending any email.
    Never assume the email should be sent automatically.
    

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
email_idYes
reply_textYes
include_originalNo
Behavior4/5

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

With no annotations provided, the description carries the full burden and does so effectively. It discloses key behavioral traits: the draft is saved but not sent automatically, user confirmation is required, and it returns specific fields (draft_id, confirmation_required). However, it doesn't mention potential errors, rate limits, or authentication details beyond prerequisites.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is appropriately front-loaded with the core purpose, but it includes extensive procedural details (7-step example) and repetitive warnings about user confirmation. While helpful, this makes it longer than necessary; some information could be condensed without losing clarity.

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?

Given no annotations and no output schema, the description provides strong contextual completeness: it explains prerequisites, parameters, return values, and usage flow. However, it lacks explicit error handling information and doesn't fully detail the output structure beyond the listed fields, leaving some gaps for a mutation tool.

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 0%, so the description must compensate. It adds meaningful context for all three parameters: email_id (obtained from list_emails() or search_emails()), reply_text (text of the reply), and include_original (whether to include original email, with default True). This goes beyond the bare schema, though it doesn't detail format constraints for email_id or reply_text.

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 clearly states the specific action ('create a draft reply') and resource ('to an email'), distinguishing it from siblings like 'confirm_send_email' (which sends) and 'prepare_email_reply' (which prepares context). It explicitly notes the draft is saved but not sent, which differentiates it from actual sending tools.

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?

The description provides explicit guidance on when to use this tool, including prerequisites (authentication, obtaining email ID, using prepare_email_reply first) and clear alternatives (e.g., using list_emails() or search_emails() to get email IDs). It also specifies when NOT to use it (never assume automatic sending) and the subsequent step (confirm_send_email).

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/bastienchabal/gmail-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server