Skip to main content
Glama

Draft personalized outreach emails

exim__email__draft

Generates personalized outreach emails for the companies in a collection from a brief, without sending. Pair with email send to send the same drafts.

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": {
      "brief": "<brief>",
      "collectionId": "<collectionId>",
      "senderEmail": "<senderEmail>",
      "senderName": "<senderName>"
    },
    "name": "exim__email__draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
ccMeNoCC the sender on each outbound
briefYesOutreach brief — what to mention, tone, ask
profileNoSaved ideal-profile name; when set, each draft references the observed fit (matched attributes) to personalize the opening
senderNameYesSender display name
senderEmailYesFrom email (rendered into drafts)
collectionIdYesCollection name or id
trackingEnabledNoEnable open/click tracking on the eventual send
includeLowConfidenceNoInclude low-confidence recipient emails (role aliases info@/sales@, no-reply, single-letter local, image-filename addresses). Default false — these are auto-pruned. MUST match the eventual `email send` flag, or this preview drafts a different recipient set than the send.

Output Schema

NameRequiredDescriptionDefault
dataYes
statsNo
_debugNo
summaryYes
warningsNo
nextActionsYes
correlationIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / brief / pattern
      Previous value: -"[^\\t\\n\\v\\f\\r\\x85\\p{Z}]"New value: +"[^\\t\\n\\v\\f\\r\\x85    - 

   ]"
    • changedInput schema / properties / collectionId / pattern
      Previous value: -"[^\\t\\n\\v\\f\\r\\x85\\p{Z}]"New value: +"[^\\t\\n\\v\\f\\r\\x85    - 

   ]"
    • changedInput schema / properties / senderEmail / pattern
      Previous value: -"[^\\t\\n\\v\\f\\r\\x85\\p{Z}]"New value: +"[^\\t\\n\\v\\f\\r\\x85    - 

   ]"
  2. Changed3 schema fields changed
    • addedOutput schema / properties / data / properties / context / anyOf
      Added value: +[
      +  {
      +    "type": [
      +      "null",
      +      "boolean",
      +      "number",
      +      "string",
      +      "array",
      +      "object"
      +    ]
      +  },
      +  {
      +    "additionalProperties": true,
      +    "properties": {
      +      "referenced": {
      +        "type": "boolean"
      +      },
      +      "rowCount": {
      +        "type": "integer"
      +      },
      +      "url": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "referenced",
      +      "rowCount",
      +      "url"
      +    ],
      +    "type": "object"
      +  }
      +]
    • removedOutput schema / properties / data / properties / context / type
      Removed value: -[
      -  "null",
      -  "boolean",
      -  "number",
      -  "string",
      -  "array",
      -  "object"
      -]
    • changedOutput schema / properties / data / properties / items / anyOf
      Previous value: -[
      -  {
      -    "items": {
      -      "$ref": "#/$defs/value0"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "items": {
      +      "anyOf": [
      +        {
      +          "$ref": "#/$defs/value0"
      +        },
      +        {
      +          "additionalProperties": false,
      +          "properties": {
      +            "exportUrl": {
      +              "type": "string"
      +            },
      +            "payloadBytes": {
      +              "type": "integer"
      +            },
      +            "rowCount": {
      +              "type": "integer"
      +            },
      +            "token": {
      +              "type": "string"
      +            },
      +            "url": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "exportUrl",
      +            "payloadBytes",
      +            "rowCount",
      +            "token",
      +            "url"
      +          ],
      +          "type": "object"
      +        }
      +      ]
      +    },
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  3. Changed18 schema fields changed
    • removedInput schema / properties / --brief
      Removed value: -{
      -  "description": "Outreach brief — what to mention, tone, ask",
      -  "pattern": "[^\\t\\n\\v\\f\\r\\x85\\p{Z}]",
      -  "type": "string"
      -}
    • removedInput schema / properties / --ccMe
      Removed value: -{
      -  "description": "CC the sender on each outbound",
      -  "type": "boolean"
      -}
    • removedInput schema / properties / --collectionId
      Removed value: -{
      -  "description": "Collection name or id",
      -  "pattern": "[^\\t\\n\\v\\f\\r\\x85\\p{Z}]",
      -  "type": "string"
      -}
    • removedInput schema / properties / --includeLowConfidence
      Removed value: -{
      -  "description": "Include low-confidence recipient emails (role aliases info@/sales@, no-reply, single-letter local, image-filename addresses). Default false — these are auto-pruned. MUST match the eventual `email send` flag, or this preview drafts a different recipient set than the send.",
      -  "type": "boolean"
      -}
    • removedInput schema / properties / --profile
      Removed value: -{
      -  "description": "Saved ideal-profile name; when set, each draft references the observed fit (matched attributes) to personalize the opening",
      -  "type": "string"
      -}
    • removedInput schema / properties / --senderEmail
      Removed value: -{
      -  "description": "From email (rendered into drafts)",
      -  "pattern": "[^\\t\\n\\v\\f\\r\\x85\\p{Z}]",
      -  "type": "string"
      -}
    • removedInput schema / properties / --senderName
      Removed value: -{
      -  "description": "Sender display name",
      -  "type": "string"
      -}
    • removedInput schema / properties / --trackingEnabled
      Removed value: -{
      -  "description": "Enable open/click tracking on the eventual send",
      -  "type": "boolean"
      -}
    • addedInput schema / properties / brief
      Added value: +{
      +  "description": "Outreach brief — what to mention, tone, ask",
      +  "maxLength": 100000,
      +  "pattern": "[^\\t\\n\\v\\f\\r\\x85\\p{Z}]",
      +  "type": "string"
      +}
    • addedInput schema / properties / ccMe
      Added value: +{
      +  "description": "CC the sender on each outbound",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / collectionId
      Added value: +{
      +  "description": "Collection name or id",
      +  "format": "uuid",
      +  "maxLength": 8000,
      +  "pattern": "[^\\t\\n\\v\\f\\r\\x85\\p{Z}]",
      +  "type": "string"
      +}
    • addedInput schema / properties / includeLowConfidence
      Added value: +{
      +  "description": "Include low-confidence recipient emails (role aliases info@/sales@, no-reply, single-letter local, image-filename addresses). Default false — these are auto-pruned. MUST match the eventual `email send` flag, or this preview drafts a different recipient set than the send.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / profile
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maxLength": 120,
      +      "type": "string"
      +    },
      +    {
      +      "type": [
      +        "null",
      +        "boolean",
      +        "number",
      +        "string",
      +        "array",
      +        "object"
      +      ]
      +    }
      +  ],
      +  "contentSchema": {
      +    "type": [
      +      "null",
      +      "boolean",
      +      "number",
      +      "string",
      +      "array",
      +      "object"
      +    ]
      +  },
      +  "description": "Saved ideal-profile name; when set, each draft references the observed fit (matched attributes) to personalize the opening"
      +}
    • addedInput schema / properties / senderEmail
      Added value: +{
      +  "description": "From email (rendered into drafts)",
      +  "maxLength": 8000,
      +  "pattern": "[^\\t\\n\\v\\f\\r\\x85\\p{Z}]",
      +  "type": "string"
      +}
    • addedInput schema / properties / senderName
      Added value: +{
      +  "description": "Sender display name",
      +  "maxLength": 8000,
      +  "type": "string"
      +}
    • addedInput schema / properties / trackingEnabled
      Added value: +{
      +  "description": "Enable open/click tracking on the eventual send",
      +  "type": "boolean"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "--brief",
      -  "--collectionId",
      -  "--senderEmail",
      -  "--senderName"
      -]New value: +[
      +  "brief",
      +  "collectionId",
      +  "senderEmail",
      +  "senderName"
      +]
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$defs": {
      +    "value0": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "body": {
      +          "type": "string"
      +        },
      +        "recipientCompany": {
      +          "type": "string"
      +        },
      +        "recipientCompanyId": {
      +          "anyOf": [
      +            {
      +              "format": "uuid",
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        },
      +        "recipientCountry": {
      +          "type": "string"
      +        },
      +        "recipientLanguage": {
      +          "type": "string"
      +        },
      +        "recipientName": {
      +          "type": "string"
      +        },
      +        "recipientTimezone": {
      +          "type": "string"
      +        },
      +        "recipientTitle": {
      +          "type": "string"
      +        },
      +        "subject": {
      +          "type": "string"
      +        },
      +        "toEmail": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "body",
      +        "recipientCompany",
      +        "recipientName",
      +        "recipientTitle",
      +        "subject",
      +        "toEmail"
      +      ],
      +      "type": "object"
      +    },
      +    "value1": {
      +      "anyOf": [
      +        {
      +          "items": {
      +            "type": [
      +              "null",
      +              "boolean",
      +              "number",
      +              "string",
      +              "array",
      +              "object"
      +            ]
      +          },
      +          "type": "array"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "value2": {
      +      "anyOf": [
      +        {
      +          "items": {
      +            "$ref": "#/$defs/value3"
      +          },
      +          "type": "array"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "value3": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "command": {
      +          "type": "string"
      +        },
      +        "cost": {
      +          "type": "string"
      +        },
      +        "label": {
      +          "type": "string"
      +        },
      +        "rationale": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "command",
      +        "cost",
      +        "label",
      +        "rationale"
      +      ],
      +      "type": "object"
      +    },
      +    "value4": {
      +      "anyOf": [
      +        {
      +          "additionalProperties": {
      +            "type": "number"
      +          },
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "value5": {
      +      "anyOf": [
      +        {
      +          "items": {
      +            "$ref": "#/$defs/value6"
      +          },
      +          "type": "array"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    },
      +    "value6": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "code": {
      +          "type": "string"
      +        },
      +        "message": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "code",
      +        "message"
      +      ],
      +      "type": "object"
      +    },
      +    "value7": {
      +      "anyOf": [
      +        {
      +          "additionalProperties": {
      +            "type": [
      +              "null",
      +              "boolean",
      +              "number",
      +              "string",
      +              "array",
      +              "object"
      +            ]
      +          },
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ]
      +    }
      +  },
      +  "additionalProperties": false,
      +  "properties": {
      +    "_debug": {
      +      "$ref": "#/$defs/value7"
      +    },
      +    "correlationId": {
      +      "type": "string"
      +    },
      +    "data": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "context": {
      +          "type": [
      +            "null",
      +            "boolean",
      +            "number",
      +            "string",
      +            "array",
      +            "object"
      +          ]
      +        },
      +        "cursor": {
      +          "type": "string"
      +        },
      +        "has_more": {
      +          "type": "boolean"
      +        },
      +        "items": {
      +          "anyOf": [
      +            {
      +              "items": {
      +                "$ref": "#/$defs/value0"
      +              },
      +              "type": "array"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ]
      +        }
      +      },
      +      "required": [
      +        "context",
      +        "has_more",
      +        "items"
      +      ],
      +      "type": "object"
      +    },
      +    "nextActions": {
      +      "$ref": "#/$defs/value2"
      +    },
      +    "stats": {
      +      "$ref": "#/$defs/value4"
      +    },
      +    "summary": {
      +      "type": "string"
      +    },
      +    "warnings": {
      +      "$ref": "#/$defs/value5"
      +    }
      +  },
      +  "required": [
      +    "data",
      +    "nextActions",
      +    "summary"
      +  ],
      +  "type": "object"
      +}
  4. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare the write/idempotency/safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false, openWorldHint=false). The description's real contribution is the non-obvious behavior that nothing is dispatched and that the result is a preview matched to a later send, which is valuable, but it says nothing about whether drafts are persisted, how many are produced, or cost/latency.

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

Conciseness5/5

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

Two short sentences, zero filler, with the defining constraint ('without sending') front-loaded in the first sentence and the pairing instruction second. Every clause earns its place.

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?

An output schema exists, so return values need no explanation, and the critical send-vs-draft distinction is covered. Minor gap: for an 8-parameter generation tool with an open-world-free but non-read-only profile, it does not say whether drafts are saved server-side or must be re-sent with the identical brief to reproduce them.

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 per the baseline this sits at 3. The description adds no parameter-level meaning of its own; the important semantics (profile personalization, includeLowConfidence matching) live in the schema strings rather than here.

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?

Uses a specific verb and resource ('Generates personalized outreach emails') and pins the scope to 'companies in a collection from a brief'. The clause 'without sending' immediately separates it from exim__email__send, so an agent can pick between the two without opening either schema.

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?

Explicitly instructs 'Pair with email send to send the same drafts', which is a clear when-to-use-this-vs-sibling rule, reinforced by the includeLowConfidence note that the flag MUST match the eventual send. It does not state any case where drafting would be inappropriate, so it stops short of full when/when-not guidance.

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.