Skip to main content
Glama

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYes
output_patternYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

With no annotations, the description should disclose key behaviors. It states it creates files, but does not specify whether overwrites occur, what file formats are used, how errors are handled, or if the tool modifies an open document. These gaps reduce transparency.

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?

The description is compact and well-structured, with a brief introductory sentence followed by clear Args and Returns sections. It avoids unnecessary detail, though it could be slightly more concise without losing meaning.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (creating documents from data) and the presence of an output schema, the description omits important context such as whether a template document must be open, whether it works with any document type, or how it interacts with other tools like add_merge_field. This leaves the agent underinformed.

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?

Since schema description coverage is 0%, the description adds meaningful semantics. It explains that 'data' is a list of dictionaries with field values and provides an example. It also clarifies that 'output_pattern' includes an {index} placeholder. This goes beyond the bare schema property names.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's function (execute mail merge with provided data, creating one document per record). It distinguishes itself from sibling tools as the only mail merge tool. However, it could be clearer about prerequisites such as whether a template document needs to be open.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description does not provide guidance on when to use this tool versus alternatives, nor does it mention prerequisites or context (e.g., the need for a document with merge fields). It only states the basic action, leaving the agent to infer usage.

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/rofiqcp/mcp-dokumen'

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