Skip to main content
Glama

Generate sequence with AI

generate_sequence
Read-only

Draft an automated email sequence with AI. Returns {name, steps:[{delay_days, subject, preview_text, document}]}; the first step has delay_days 0. Same errors as generate_email, plus invalid_steps (steps must be 1 to 10). Counts as ONE AI generation. Nothing is saved or sent. Next: review the steps; save them as a sequence once sequences are available.

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": {
      "prompt": "<prompt>"
    },
    "name": "generate_sequence"
  }
}

Input Schema

NameRequiredDescriptionDefault
stepsNoNumber of emails, 1 to 10. Default 4 (immediately, day 1, day 3, day 5).
promptYesWhat the sequence should achieve, such as "onboard new trial users".
languageNo
site_textNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing the return shape, the invariant that the first step has delay_days 0, quota cost ('Counts as ONE AI generation'), the side-effect profile ('Nothing is saved or sent'), and a tool-specific error (invalid_steps, 1-10). These are exactly the facts an agent needs that readOnlyHint/openWorldHint cannot convey.

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?

Purpose is front-loaded, then return shape, then cost/side-effects, then the next step, in four tight sentences with no filler. The telegraphic phrasing is dense but each clause carries distinct information.

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?

With no output schema, the description compensates by documenting the returned object and the first-step invariant, plus error codes and the no-save/no-send guarantee. The only real gap is the unexplained language and site_text inputs.

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

Parameters2/5

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

Schema coverage is only 50%: language and site_text have no schema description and are never mentioned in the description, so they are undocumented in both places. The description also adds nothing about the prompt or steps parameters beyond what the schema already says, leaving half the inputs unexplained.

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 ('Draft an automated email sequence with AI') and immediately differentiates itself by referencing generate_email as the error-model sibling and by noting that saving is a separate, later tool ('save them as a sequence once sequences are available'). An agent knows exactly what this produces versus generate_email or create_sequence.

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?

Gives clear usage context: it is a drafting step whose output must be reviewed and then saved by a separate sequence tool, and it costs one AI generation. It does not explicitly state when to prefer this over generate_email or draft_welcome_sequence, so the when-not guidance is incomplete.

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