Skip to main content
Glama

preview_messages

Read-onlyIdempotent

Show exactly what one prospect would receive: every step of one path through the sequence, rendered by Outvelo's sending engine (variables filled in, the A/Z variant they'd get, the fallback when a variable is empty, the translation for their language). Read-only: nothing is sent, saved or translated.

Use it before create_campaign / activating: show the user the rendered messages (not just the template) and the warnings (fallback used, empty or unknown variables, a connection note over 300 characters, missing or out-of-date translations), and fix what they flag.

Who to render for (prospect.source): prospect + prospectId (someone already in a campaign; see list_campaign_prospects), lead + leadId (see get_lead_list with include_leads), csv_row + row (CSV-style keys; extra columns are custom variables), or manual (a test person you describe, custom values by variable name). Only prospect gives the exact A/Z pick (variantIsExact).

The sequence branches, so you get ONE path. path maps a branching step id to accepted or notAccepted. Defaults: invites and if_connection follow accepted, if_open_profile notAccepted, messages follow 'no reply yet'. accepted on a message = they replied, which ends the sequence. Silent steps come back with silent: true and no text. dayOffsetHours adds up the delays; real sends can land later (schedule window, pacing).

Pass sequence (names form, e.g. {{recent_funding}}) for a draft, or campaignId to use a saved campaign (its language settings are used unless you pass language). Variable names the workspace doesn't have yet render as unknown until the campaign is saved.

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": {
      "prospect": "<prospect>"
    },
    "name": "preview_messages"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoBranching step id -> side to follow.
variantNo"auto" (default, the one they'd get) or a position letter "a", "b", ... to force an A/Z variant.
languageNo"" = as written, "auto" = each prospect's LinkedIn language, or an ISO 639-1 code.
prospectYesWho to render for.
sequenceNoSteps to render. Optional when campaignId is given (then the saved sequence).
campaignIdNoA saved campaign: its sequence, language and source language are used unless overridden.
sourceLanguageNoISO 639-1 code of the language the copy is written in.
previewLanguageNoShow this language regardless of the prospect (ISO 639-1).
senderAccountIdNoThe LinkedIn account that sends ({{senderName}}). See list_accounts.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / sequence / items / properties / variants / description
      Previous value: -"A/Z test: EXTRA message variants for connection_request/message/follow_up/inmail. `body` is Variant A; these are extras. 1+ present => sends split evenly across [body, ...variants]; the campaign tracks reply/accept per variant (get_campaign_ab_stats). Omit for no test."New value: +"A/Z test: EXTRA message variants for connection_request/message/follow_up/inmail. `body` is Variant A; these are extras. 1+ present => sends split evenly across [body, ...variants]; the campaign tracks reply/accept per variant (get_campaign_stats with include ab_tests). Omit for no test."
  2. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, non-destructive behavior, and the description reinforces it (nothing is sent, saved or translated) while adding real context: only one branch path is returned, defaults for invites and if_open_profile, accepted-on-message ends the sequence, silent steps carry silent: true, and dayOffsetHours is an approximation versus real send timing. It stops short of describing the full response shape or how warnings are structured, so it adds strong but not exhaustive behavioral context.

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 critical framing (what is rendered, that it is read-only, use it before launch) is front-loaded, and the remaining paragraphs are grouped by concern rather than rambling. It is long and dense, with some parenthetical asides that could be trimmed, but nearly every sentence carries operational information for a complex nested tool.

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 nine-parameter tool with deep nesting and no output schema, the description supplies what the schema cannot: what to do with the warnings output, the branch-default semantics, the single-path limitation, the timing approximation, and the rule that unknown workspace variables render as unknown until the campaign is saved. An agent has enough to invoke this correctly on the first try.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 100%, so the baseline would be 3, but the description goes well beyond it: it explains the semantic difference between the four prospect.source values and which one yields an exact A/Z pick (variantIsExact), how path maps step ids to accepted/notAccepted with per-type defaults, and when to pass sequence versus campaignId (and that campaign language settings apply unless language is overridden).

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 opens with a specific verb and resource: it renders exactly what one prospect would receive for one path through the sequence, including variable filling, A/Z variant, fallback and translation. That scope (single prospect, one path) is concrete enough to separate it from a generic sequence preview, but it never names or contrasts the sibling preview_sequence, so differentiation is left implicit.

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 states explicitly when to use it: before create_campaign or activation, to show the user rendered messages and warnings and fix what they flag. It also routes the agent to the correct prospect source with named siblings (list_campaign_prospects for prospectId, get_lead_list with include_leads for leadId) and explains the csv_row and manual alternatives.

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