Skip to main content
Glama

Replace campaign sequence

replace_campaign_sequence
Idempotent

Replaces a campaign's WHOLE sequence with the steps provided. This is not a partial edit: steps you leave out are removed, so send the full sequence every time. Sending the same payload twice leaves the same result, so a retry cannot duplicate steps. Editing a running campaign is allowed and changes future sends only; already-sent emails are untouched.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesThe numeric campaign ID (from list_campaigns)
stepsYesThe full sequence, first email first. The first step must have delayDays 0
signatureNoOptional signature appended to every step

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already give idempotentHint=true and destructiveHint=false, but the description adds real substance: omitted steps are removed (whole-sequence overwrite semantics), the idempotency rationale ("same payload twice leaves the same result, so a retry cannot duplicate steps"), and the effect on a live campaign (future sends change, already-sent emails are untouched). This is exactly the behavioral context annotations 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.

Conciseness4/5

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

Four tight sentences, each carrying distinct information, with the destructive whole-replacement semantics front-loaded. No filler, though the idempotency and running-campaign points could be slightly compressed.

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 mutation tool with no output schema, the description covers the critical decision points: it is a full overwrite, retries are safe, and live-campaign edits affect only future sends. Combined with 100%-covered schema and safety annotations, an agent has everything needed to call it correctly.

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 schema already documents id, steps, signature, delayDays, variants, etc. in detail. The description's "send the full sequence" reiterates what the schema already states ("The full sequence, first email first"), so it adds little parameter-level meaning beyond the structured data. Baseline 3.

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 (replaces) and resource (a campaign's WHOLE sequence) with emphasis on the whole-vs-partial distinction. An agent can immediately tell this apart from update_campaign (field edits) and get_campaign_sequence (read). No ambiguity about what the tool does.

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?

"This is not a partial edit: steps you leave out are removed, so send the full sequence every time" gives clear usage context and implicitly steers away from incremental-edit assumptions. It stops short of naming the sibling alternative (e.g. update_campaign) or stating preconditions like the campaign needing to exist, so it is strong but not exhaustive.

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