Skip to main content
Glama
This connector has been deprecated

Replaced by Inviomail.

Duplicate listing under a wrong namespace; the canonical listing is de.inviomail/mcp

Prepare Flow publication

prepare_publish_flow
Read-only

Validates the saved Flow draft and prepares publication without changing its published version. Requires flows.read and explicitly enabled flows.publish. First read get_flow_details plus get_flow_definition for draft and, if available, published; explain changed trigger, sender, emails, pauses, branches and linked Flows to the user. Resolve unclear intent before preparing. Pass the current revision and an explicit enrollmentMode: future_only leaves existing matching contacts out; include_existing enrolls eligible existing contacts and is supported only for already active form_submitted/tag_added Flows. Ask the user which mode they want; never silently select include_existing. Show the summary, warnings, reference diagnostics, next version, current active state and enrollment counts, then obtain explicit approval before commit_publish_flow. Publication affects new entries immediately on an active Flow; existing runs keep their version. An inactive Flow stays inactive and must be activated in the Admin UI. Publish is separate from draft saves and Flow Email edits, which can already be live for referenced emails.

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": {
      "flowId": "<flowId>",
      "expectedRevision": "<expectedRevision>",
      "idempotencyKey": "<idempotencyKey>",
      "enrollmentMode": "<enrollmentMode>"
    },
    "name": "prepare_publish_flow"
  }
}

Input Schema

NameRequiredDescriptionDefault
flowIdYesFlow ID to publish
enrollmentModeYesExplicit user choice: future entries only or also eligible existing contacts on an active form/tag Flow
idempotencyKeyYesUnique operation key; generate once for preparation and reuse unchanged for commit and retries. Use a new key after preparing a changed operation.
expectedRevisionYesExact current revision read after draft edits

Output Schema

NameRequiredDescriptionDefault
summaryYes
expiresAtYes
requestIdYes
confirmationTokenYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations only declare readOnly/openWorld/idempotent/destructive hints, yet the description adds authorization prerequisites (flows.read, flows.publish explicitly enabled), the effect surface (publication affects new entries immediately on an active Flow, existing runs keep their version), the inactive-Flow limitation requiring Admin UI activation, and the exact summary fields to surface. Critically, it reconciles readOnlyHint=true with the 'prepare' semantics by stating the published version is untouched.

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?

Purpose is front-loaded and nearly every sentence carries an operational rule, with no filler or marketing language. The middle workflow sentence ('First read get_flow_details ... linked Flows to the user') is a run-on that packs several steps together and reads more like a checklist than prose.

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 two-phase publish tool this covers the full lifecycle: prereads, revision capture, enrollment-mode decision, what to display back to the user, approval gate, and post-publish behavior. Since an output schema exists, leaving return-value structure to the schema is appropriate, and the description still names the key reported fields.

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?

Although schema coverage is 100% (baseline 3), the description adds real meaning beyond the schema: it explains the consequence of each enrollmentMode (future_only leaves existing matching contacts out, include_existing enrolls them and only works for already-active form_submitted/tag_added Flows) and requires the user to choose. It also anchors expectedRevision ('the current revision') within the read-then-prepare sequence rather than leaving it as a bare integer.

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 first sentence names a specific verb and resource ('Validates the saved Flow draft and prepares publication') and immediately scopes it against mutation ('without changing its published version'), which cleanly separates it from commit_publish_flow and update_flow_draft. An agent can identify the tool's role without opening the 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?

It prescribes prereading (get_flow_details plus get_flow_definition for draft and, if available, published), mandates resolving unclear intent before preparing, instructs asking the user about enrollment mode instead of silently choosing include_existing, and requires explicit approval before commit_publish_flow. When-not behavior is also covered ('Publish is separate from draft saves and Flow Email edits').

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