Skip to main content
Glama

preview_sequence

Read-onlyIdempotent

Render a sequence's STRUCTURE as an ASCII tree (templates, delays, branches) so you and the user can confirm the shape before activating. Returns a single string. To show what a prospect would actually receive (variables filled in, fallbacks, translations), use preview_messages; show the user both before create_campaign.

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": {
      "sequence": "<sequence>"
    },
    "name": "preview_sequence"
  }
}

Input Schema

NameRequiredDescriptionDefault
sequenceYesSteps to render, as a JSON array (never a stringified tree). Same step shape as create_campaign.

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.6/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, so the safety profile is covered. The description adds genuinely useful context the annotations do not: the return is a single string, it is a structural rather than rendered view, and it is meant as a pre-activation confirmation step. It stops short of covering error behavior on malformed sequences.

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?

Three sentences, each doing work: what it renders, what it returns, and how it routes against the sibling. The purpose is front-loaded and there is no 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 one-parameter read-only tool with no output schema, the description says enough to call it correctly, including the string return. Minor gap: it does not say whether it validates the sequence or what happens if the tree is malformed, despite a validate_sequence sibling existing.

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?

Schema coverage is 100%, so the stepped shape is already documented. The description still adds meaning by warning the array must be real JSON ('never a stringified tree') and by cross-referencing that it uses the same step shape as create_campaign, which is not expressible in 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?

States a specific verb and resource ('Render a sequence's STRUCTURE as an ASCII tree') plus the output medium and the elements shown (templates, delays, branches). It explicitly contrasts with preview_messages, so an agent can separate the two preview tools without opening either schema.

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?

Gives explicit when-to-use ('confirm the shape before activating') and names the alternative with the exact condition that selects it (variables filled in, fallbacks, translations -> preview_messages). It even prescribes the workflow: show the user both before create_campaign.

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