Skip to main content
Glama

Preview a message with merge fields resolved

campaign_preview_message
Read-onlyIdempotent

Render a draft message against a real lead from the campaign so you can see how the merge fields resolve before committing the copy to a step. Nothing is sent and nothing is saved — this is the safe way to check a {{placeholder}} actually resolves, since an unknown one renders empty rather than failing. Save the copy with flow_set; to put a real email in front of yourself instead, campaign_send_test_email.

Input Schema

NameRequiredDescriptionDefault
messageYesDraft copy, including {{firstName}}-style placeholders.
campaignIdYesCampaign id, from `campaign_list` or `campaign_create`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare this as a read-only, idempotent, non-destructive operation. The description adds valuable behavioral context beyond annotations: nothing is sent or saved, and unknown placeholders render empty rather than failing, which is non-obvious and important for interpreting preview results.

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?

The description is tightly written and front-loads the primary purpose. Every sentence carries useful information: the preview behavior, the safety/failure semantics, and the alternative tools.

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

Completeness5/5

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

For a simple two-parameter, read-only preview tool with full schema coverage and annotations, the description is complete enough. It explains what the agent will see and why it is safe, and it routes adjacent work to the correct siblings.

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 both `campaignId` and `message` are already documented in the input schema. The description adds some useful context about placeholder resolution and using a real lead, but does not provide additional parameter syntax or format details beyond the schema.

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 states a specific verb and resource: render a draft message against a real campaign lead to inspect merge-field resolution. It also distinguishes the preview action from saving via `flow_set` and from sending a test email via `campaign_send_test_email`.

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

Usage Guidelines5/5

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

It gives explicit when-to-use guidance: check the copy before committing it to a step. It also names the alternatives for adjacent tasks, `flow_set` for saving and `campaign_send_test_email` for putting a real email in front of the user.

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