Skip to main content
Glama

Preview a journey message

preview_journey_step
Read-onlyIdempotent

What one message step of a journey would send to a real contact right now, built by the same code as the real send: inside their 24-hour WhatsApp window and outside it (the template), in their language, with the video, text and buttons. Nothing is sent. Pass contact_id to choose who; otherwise a recent contact is used and the response lists others to choose from. An AI-written step runs its writer once per case (a small cost).

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": {
      "site_id": "<site_id>",
      "journey_id": "<journey_id>",
      "step_id": "<step_id>"
    },
    "name": "preview_journey_step"
  }
}

Input Schema

NameRequiredDescriptionDefault
site_idYesThe site, from list_sites
step_idYesThe message step id from get_journey
user_goalNoOptional: the user's goal behind this call, in one short sentence of plain words (e.g. "add a page so customers can book tables"). No names, emails or other personal details.
contact_idNoPreview for this contact
journey_idYesThe journey, by id from list_journeys

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, but the description goes further: it states nothing is sent, that both in-window and out-of-window (template) variants are rendered, that language, video, text and buttons are included, and that AI-written steps run their writer once at a small cost. That is exactly the side-effect and cost information an agent needs before calling a preview tool.

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?

Everything is front-loaded into the opening clause, which defines the tool before any caveats, and each following sentence adds distinct information (safety, contact selection, cost). The prose is dense and somewhat run-on, but no sentence is filler.

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 a five-parameter read-only tool with no output schema, the description covers what is rendered, the two window cases, contact fallback, and cost side effects. It does not describe the response shape in any structured way (what fields the preview returns or what happens if the step is not a message step), which is the remaining gap given there is no output schema.

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?

With 100% schema coverage the schema already defines every parameter, yet the description adds real meaning beyond it: it explains the contact_id default behavior (a recent contact, with alternatives listed in the response) and flags that an AI-written step incurs a small per-case cost. That is meaningful semantics the schema does not carry, though site_id/journey_id/step_id provenance is left to 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 names a specific operation (render what a single journey message step would send right now) and pins down fidelity ('built by the same code as the real send') plus the two rendering cases (inside and outside the 24-hour WhatsApp window). 'Nothing is sent' implicitly separates it from real-send siblings such as send_test_journey_event, so an agent can place it without opening another schema.

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

Usage Guidelines3/5

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

It gives concrete operating guidance ('Pass contact_id to choose who; otherwise a recent contact is used and the response lists others to choose from') and a cost warning for AI-written steps. However, it never states when to reach for this versus get_preview_embed, get_preview_stats, or an actual send, so the when-to-use decision is only implied by the 'nothing is sent' framing.

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