Skip to main content
Glama

Create a journey draft

create_journey

Saves a new draft journey from a full definition. It stays a draft until publish_journey. A recipe or generate_journey is usually a simpler start.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
definitionYesThe journey document: { name, description, trigger (one of: ticket.created, ticket.escalated, ticket.closed, ticket.reopened, ticket.tagged, ticket.unresolved, ticket.rated, customer.replied, human.replied, chat.started, chat.answer_rated, contact.subscribed, contact.created, contact.updated, contact.tagged, custom.event, page.visited, login.succeeded, login.failed, email.delivered, email.opened, email.clicked, stripe.customer.created, stripe.customer.updated, stripe.checkout.completed, stripe.subscription.created, stripe.subscription.updated, stripe.subscription.cancelled, stripe.subscription.trial_ending, stripe.subscription.product_status, stripe.invoice.paid, stripe.invoice.payment_failed, stripe.charge.refunded, form.submitted, form.confirmed, contact.enriched, segment.entered, segment.left, article.viewed, article.rated, search.failed, roadmap.idea, roadmap.voted, roadmap.shipped, changelog.viewed, survey.answered, journey.entered, journey.completed, journey.converted, date.reached, manual.enrolled), triggers?: [{ event, ... }], productId, stopOnReply, reentry: always|once|after_completion, entry?: conditions, goal?, settings?: { quietHours, timeZone, emailCap }, steps: [...] }. Steps (1 to 50, each may have an id): { type: "wait", minutes }, { type: "email", campaignId } (a ready journey email), { type: "tag", tag }, { type: "remove_tag", tag }, { type: "set_attribute", ... }, { type: "branch", conditions, yes, no }, { type: "wait_event", ... }, { type: "message", ... }, { type: "note", body }, { type: "notify", ... }, { type: "exit" }, among others. Existing journey documents include the full step configuration.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations cover the safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false), so the bar is lower, but the description still adds lifecycle context annotations cannot express: the created journey remains a draft until publish_journey is called. It omits validation failure behavior and whether repeated calls create duplicates, but the draft-state disclosure is genuinely useful beyond the structured data.

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 short sentences, zero filler, front-loaded with the action and followed by the lifecycle constraint and the routing advice in order of importance.

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 mutation tool with no output schema, the description covers what it produces, its lifecycle state, and sibling routing, which is enough to call it correctly given the richly documented schema. It would be stronger if it noted whether the definition is validated or what happens on an invalid step definition.

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% and the single 'definition' parameter is documented in exhaustive detail (trigger enums, step types, step count bounds). The phrase 'a full definition' adds only a hint that an existing complete journey document can be reused, so the baseline 3 is appropriate.

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+resource ('Saves a new draft journey') and immediately names the sibling that advances it ('publish_journey') plus the two lighter-weight alternatives ('a recipe or generate_journey'). An agent can distinguish this from create_journey_from_recipe, generate_journey, and publish_journey without opening any schema.

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

Usage Guidelines4/5

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

Explicitly routes the agent away from this tool when a recipe or generate_journey would suffice, which is real selection guidance. It stops short of stating the condition under which a hand-authored full definition is actually required (e.g. custom step types like branch/wait_event), so the 'when to use this one' side is implied rather than stated.

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