Skip to main content
Glama

Draft an email flow

draftFlow
Destructive

Write the emails of one automated flow and save them with the flow off, replacing the steps it had: up to eight emails, each with how long it waits (the first after the flow starts, the rest after the email before), a brief, an optional subject, and what stops the sequence before it (they bought, or opened or clicked the email before). A personal email is written for each shopper when it sends, from the brief and what started the flow (their cart, their order); a written one is written now, so the person can read it in Kooga first. The flow has to be off: one that is on is refused, because shoppers part-way through it would find its steps changed. Turning it on is enableFlow, which asks the person. Without a store, only the welcome flow.

Only for a workspace with subscribed email contacts.

A change inside Kooga: it runs at once, as the person.

Input Schema

NameRequiredDescriptionDefault
kindYesWhich flow to write
stepsYesThe emails, in the order they go
couponPctNoWin-back only: a comeback discount, in percent
workspaceIdNoThe workspace, as listWorkspaces gives it (its id or slug). Leave it out when this connection reaches one workspace.

Output Schema

NameRequiredDescriptionDefault
onYesWhether the flow is on; a drafted flow is off
kindYes
stepsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Well beyond the annotations: the description says existing steps are replaced, explains why an active flow is refused (shoppers part-way through would see changed steps), distinguishes personal vs. pre-written emails, and notes the change runs at once inside Kooga. The one gap is that it doesn't say what happens to the previous emails' content or whether drafts are recoverable, though destructiveHint already flags the risk.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads the core action and constraints, but the sentences are long, run-on, and stack parentheticals (the wait-time clause, the personal/written clause) that the schema already covers. It is dense rather than wasteful, but readability suffers.

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?

An output schema exists, annotations carry the safety profile (destructive, non-idempotent), and the description fills the remaining gaps: prerequisites, the flow-off requirement, the enableFlow hand-off, and the per-flow default behavior. An agent has everything it needs to call this correctly.

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 description coverage is 100%, so the baseline is 3; the description still adds value by restating the personal/written default per flow kind, the auto-added 'purchased' stop condition, and the wait-time semantics. It doesn't add anything new about workspaceId or couponPct beyond the schema, so not a 5.

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 gives a specific verb and resource ('Write the emails of one automated flow and save them with the flow off, replacing the steps it had') and explicitly bounds the scope (up to eight emails, wait times, briefs, stopping conditions). It distinguishes itself from enableFlow and updateFlowStep by making clear it replaces the whole step list rather than toggling or editing one step.

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?

Usage conditions are explicit: the flow must be off, an already-on flow is refused, and turning it on is the job of enableFlow, 'which asks the person'. It also states the prerequisites (workspace with subscribed email contacts) and the fallback ('Without a store, only the welcome flow').

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