Skip to main content
Glama

Create a forward draft

forward_draft

Creates a draft FORWARDING an email: "Fwd:" subject, the original headers and text, and the original attachments (unless includeAttachments=false). body is an optional note placed above the forwarded message. 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>",
      "to": "<to>"
    },
    "name": "forward_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
ccNoCC recipients.
toYesForward recipients.
uidYesIMAP UID of the message, as returned by search and listing tools.
bodyNoOptional note placed above the forwarded message.
folderNoIMAP folder containing the message. Defaults to INBOX.INBOX
accountIdYesAccount id, as returned by list_accounts.
attachmentsNoExtra files to attach, on top of the original's (same forms as create_draft).
includeAttachmentsNoAttach the original message's attachments.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • 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.1/5.0
Behavior4/5

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

Annotations only give the generic write/openWorld/no-destructive trio; the description adds genuinely new behavioral facts, namely that the original's headers, body and attachments are carried over and that no mail is transmitted. It leaves out secondary traits such as what happens with an invalid UID or whether a draft id is returned.

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?

Two tight sentences with the core operation and the no-send guarantee front-loaded, plus a parenthetical that disambiguates the attachment default. The all-caps emphasis is effective rather than wasteful, though it edges toward shouting.

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 an 8-parameter draft-creation tool with full schema coverage and no output schema, the description covers composition, attachment inheritance and the non-sending nature. The one visible gap is what the call yields (a draft reference or nothing), which an agent may need to chain a subsequent step.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so every parameter is already documented in structured form. The description restates body placement and the includeAttachments=false escape hatch, adding emphasis but no semantics beyond the schema; baseline 3 is appropriate.

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 ('Creates a draft') plus the exact variant being created ('FORWARDING an email'), which cleanly separates it from create_draft and reply_draft. It goes further to enumerate what the resulting draft contains: 'Fwd:' subject, original headers and text, original attachments.

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 forwarding use case is unambiguous and the description pre-empts the main misuse ('NOTHING IS SENT'), telling the agent this is a prepare-only operation the user finishes in their mail app. It stops short of naming reply_draft or create_draft as the alternatives for non-forward cases, so guidance is clear but not fully routing.

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