Skip to main content
Glama

Create a reply draft

reply_draft

Creates a REPLY to an email as a draft in the mailbox that received it. The recipient (Reply-To or sender), the "Re:" subject, the quoted original and the thread headers are filled in automatically; body holds only the reply text. replyAll adds the other original recipients in CC. attachments joins files (an attachment of another email, or a file you write). NOTHING IS SENT: the user reviews and sends the draft from their mail app.

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": {
      "accountId": "<accountId>",
      "uid": "<uid>",
      "body": "<body>"
    },
    "name": "reply_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
ccNoAdditional CC recipients.
uidYesIMAP UID of the message, as returned by search and listing tools.
bodyYesReply text, without the quote.
folderNoIMAP folder containing the message. Defaults to INBOX.INBOX
replyAllNoReply to all: add the other original recipients in CC.
accountIdYesAccount id, as returned by list_accounts.
attachmentsNoFiles to attach (10 max, 20 MB in total; files written inline, as text or base64, 5 MB each and 7 MB together): an attachment of another email ({ fromMessage: { accountId, uid, folder, index } }), a text file written by you ({ filename, text }), or a binary file ({ filename, base64 }).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / attachments / description
      Previous value: -"Files to attach (10 max, 20 MB in total): an attachment of another email ({ fromMessage: { accountId, uid, folder, index } }), a text file written by you ({ filename, text }), or a binary file ({ filename, base64 })."New value: +"Files to attach (10 max, 20 MB in total; files written inline, as text or base64, 5 MB each and 7 MB together): an attachment of another email ({ fromMessage: { accountId, uid, folder, index } }), a text file written by you ({ filename, text }), or a binary file ({ filename, base64 })."
    • changedInput schema / properties / attachments / items / anyOf
      Previous value: -[
      -  {
      -    "description": "An attachment of another email, in any of the user's mailboxes.",
      -    "properties": {
      -      "filename": {
      -        "description": "Optional new file name.",
      -        "maxLength": 200,
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "fromMessage": {
      -        "properties": {
      -          "accountId": {
      -            "description": "Account id, as returned by list_accounts.",
      -            "format": "uuid",
      -            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      -            "type": "string"
      -          },
      -          "folder": {
      -            "default": "INBOX",
      -            "description": "IMAP folder containing the message. Defaults to INBOX.",
      -            "maxLength": 200,
      -            "minLength": 1,
      -            "type": "string"
      -          },
      -          "index": {
      -            "default": 0,
      -            "description": "Position in get_message's attachments list, starting at 0.",
      -            "maximum": 99,
      -            "minimum": 0,
      -            "type": "integer"
      -          },
      -          "uid": {
      -            "description": "IMAP UID of the message, as returned by search and listing tools.",
      -            "exclusiveMinimum": 0,
      -            "maximum": 9007199254740991,
      -            "type": "integer"
      -          }
      -        },
      -        "required": [
      -          "accountId",
      -          "uid"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "fromMessage"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "A text file written by the assistant.",
      -    "properties": {
      -      "filename": {
      -        "description": "File name with its extension, e.g. \"quote.pdf\" or \"contacts.csv\".",
      -        "maxLength": 200,
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "text": {
      -        "description": "File content as text (CSV, TXT, Markdown, JSON, ICS...).",
      -        "maxLength": 1000000,
      -        "minLength": 1,
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "filename",
      -      "text"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "A binary file, base64-encoded (5 MB max).",
      -    "properties": {
      -      "base64": {
      -        "description": "File content, base64-encoded.",
      -        "maxLength": 7000000,
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "filename": {
      -        "description": "File name with its extension, e.g. \"quote.pdf\" or \"contacts.csv\".",
      -        "maxLength": 200,
      -        "minLength": 1,
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "filename",
      -      "base64"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "description": "An attachment of another email, in any of the user's mailboxes.",
      +    "properties": {
      +      "filename": {
      +        "description": "Optional new file name.",
      +        "maxLength": 200,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "fromMessage": {
      +        "properties": {
      +          "accountId": {
      +            "description": "Account id, as returned by list_accounts.",
      +            "format": "uuid",
      +            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +            "type": "string"
      +          },
      +          "folder": {
      +            "default": "INBOX",
      +            "description": "IMAP folder containing the message. Defaults to INBOX.",
      +            "maxLength": 200,
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "index": {
      +            "default": 0,
      +            "description": "Position in get_message's attachments list, starting at 0.",
      +            "maximum": 99,
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          "uid": {
      +            "description": "IMAP UID of the message, as returned by search and listing tools.",
      +            "exclusiveMinimum": 0,
      +            "maximum": 9007199254740991,
      +            "type": "integer"
      +          }
      +        },
      +        "required": [
      +          "accountId",
      +          "uid"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "fromMessage"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "A text file written by the assistant.",
      +    "properties": {
      +      "filename": {
      +        "description": "File name with its extension, e.g. \"quote.pdf\" or \"contacts.csv\".",
      +        "maxLength": 200,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "text": {
      +        "description": "File content as text (CSV, TXT, Markdown, JSON, ICS...).",
      +        "maxLength": 1000000,
      +        "minLength": 1,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "filename",
      +      "text"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "A binary file, base64-encoded (5 MB max, 7 MB with the other inline files).",
      +    "properties": {
      +      "base64": {
      +        "description": "File content, base64-encoded.",
      +        "maxLength": 7000000,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "filename": {
      +        "description": "File name with its extension, e.g. \"quote.pdf\" or \"contacts.csv\".",
      +        "maxLength": 200,
      +        "minLength": 1,
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "filename",
      +      "base64"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  3. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the annotations (write, non-destructive, open-world), the description discloses substantial behavior: which fields are auto-filled, that body must contain only reply text, that replyAll moves other recipients to CC, and crucially that the draft is not sent. This goes well past what readOnlyHint/destructiveHint convey.

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?

It is front-loaded with the core action and every sentence carries useful information (auto-fill, replyAll, attachments, send-safety). It is dense but not padded; minor tightening of the attachments sentence could improve it, but nothing is wasted.

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?

For a 7-parameter write tool with full schema coverage, no output schema, and annotations covering safety, the description is nearly complete: it explains auto-filled fields, body scope, replyAll, and attachments. It omits error/permission behavior, but that is minor here.

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 schema carries most parameter meaning. The description still adds value by clarifying that body is reply text alone (quoted original handled automatically) and that the recipient need not be supplied, explaining the absence of a 'to' parameter and reinforcing the attachments semantics.

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 names a specific verb (creates), resource (a REPLY draft), and its exact scope (in the mailbox that received the message). It distinguishes itself from create_draft/forward_draft by spelling out that recipients, Re: subject, and thread headers are auto-filled, so an agent can tell what kind of draft this produces without opening the schema.

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 implied clearly (reply to an email, draft left for the user to send) and the 'NOTHING IS SENT' clause sets expectations. However, it never explicitly routes against siblings like create_draft or forward_draft, nor states when to avoid this tool, so the agent must infer the alternative.

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