Skip to main content
Glama

Update campaign step

update_campaign_step
Idempotent

Replace one email's delay and content, and set or clear its branch: an if/else check delay_days after the send, whose true path starts empty (add steps to it with add_campaign_step if_true) and whose false path keeps what followed the step. branch null clears a branch whose true path is empty, or keeps a plain step plain. Every field is required: read the step with get_campaign_step first and send back what should stay. The step keeps its id and stats.

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": {
      "step_id": "<step_id>",
      "delay_days": "<delay_days>",
      "subject": "<subject>",
      "preview_text": "<preview_text>",
      "html": "<html>",
      "markdown": "<markdown>",
      "template_id": "<template_id>",
      "branch": "<branch>"
    },
    "name": "update_campaign_step"
  }
}

Input Schema

NameRequiredDescriptionDefault
htmlYesThe body as HTML. Null when you send markdown or a template_id.
branchYes
step_idYes
subjectYes
markdownYesThe body as markdown. Null when you send html or a template_id.
delay_daysYes
template_idYesCopy a template's subject, preview text and body; then subject, preview_text, html and markdown are null.
preview_textYesThe line inbox previews show after the subject.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover safety (readOnlyHint=false, idempotentHint=true, destructiveHint=false), yet the description still adds real behavior: this is a full replace where omitted values are lost, the true path is created empty, the false path retains downstream steps, and id/stats survive the update. That last point usefully reinforces the non-destructive annotation. It stops short of saying what the call returns or what error occurs when clearing a non-empty true path.

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?

It is front-loaded with the core action, but the middle sentence packs branch creation, true-path emptiness, false-path inheritance and null-clearing into one long chain that is hard to parse on first read. Every clause carries information, yet the nesting could be split for faster comprehension.

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 an 8-required-parameter full-replace mutation with a nested branch object and no output schema, the description covers the read-before-write prerequisite, null-as-sentinel convention, branch lifecycle and identity preservation. The main residual gap is that it never states what the call returns or how validation failures on branch clearing surface.

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?

With only 50% schema description coverage, the description compensates by stressing that all fields are required and must be echoed from a prior get_campaign_step read, and it explains the branch payload's semantics (if/else evaluated delay_days after the send, null to clear) beyond the schema's structural typing. Individual scalar fields like subject and delay_days are left to the schema and the implicit 'send back what should stay' rule.

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 opens with a specific verb+resource ('Replace one email's delay and content') and then adds the branch dimension, so the agent knows this edits exactly one campaign step rather than the campaign itself. It is clearly separable from siblings such as update_campaign, add_campaign_step, delete_campaign_step and move_campaign_step, which are either named or implied by the replace semantics.

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 gives explicit routing: read the step with get_campaign_step first, send back everything that should stay, and use add_campaign_step if_true to populate the branch's empty true path. The when-to-clear condition ('branch null clears a branch whose true path is empty, or keeps a plain step plain') is a concrete rule rather than an inference.

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