execute_mail_merge
Create personalized documents by merging data into a template. Generate one document per record using field values.
Instructions
Execute mail merge with provided data. Creates one document per record.
Args: data: List of dictionaries with field values Example: [{"FirstName": "John", "LastName": "Doe"}, ...] output_pattern: Output filename pattern with {index} placeholder Example: "letter_{index}.docx"
Returns: Success message with list of created files or error message
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": {
"data": "<data>",
"output_pattern": "<output_pattern>"
},
"name": "execute_mail_merge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| output_pattern | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |