Skip to main content
Glama

Write the campaign subsequences

argorant_set_campaign_subsequences
Destructive

Use it when the user says "when someone replies interested, send them the case study" or wants their own follow-ups for different answers. It replaces a campaign's subsequences, up to 5 sets of follow-up emails that start when a reply contains a keyword. A matching person leaves the main emails and gets the first matching subsequence, in list order, in the same thread. A keyword also matches in capitals, as a plural, with a small typo or inside a short sentence; a keyword after not or no, as in not interested, never counts, quoted text is ignored, and replies asking to stop never start one. For the main emails use argorant_set_campaign_emails, and to switch one subsequence off or on argorant_set_subsequence_enabled. An empty list removes them all, and left out, enabled keeps a saved subsequence's state. The first email goes out delay_days after the reply, where 0 means the next sending window. More in the docs at https://docs.argorant.com/docs/agents/tools#campaigns

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": {
      "campaign_id": "<campaign_id>",
      "subsequences": "<subsequences>"
    },
    "name": "argorant_set_campaign_subsequences"
  }
}

Input Schema

NameRequiredDescriptionDefault
campaign_idYesThe campaign's id, from argorant_list_campaigns.
subsequencesYesThe full list in order, as [{name, keywords, emails, enabled?}]. keywords holds 1 to 10 words or short phrases. emails holds 1 to 8 emails in the shape argorant_set_campaign_emails takes (subject?, body, delay_days?, same_thread?, variants?). Left out, enabled keeps a saved subsequence's state and a new one starts on.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, and the description supports that by explaining that an empty list wipes all subsequences. It goes well beyond the annotations with matching semantics (plural, capitals, typos, short sentences; negated and quoted keywords ignored; stop requests never trigger) and delivery behavior (matching person leaves the main sequence, first match in list order, same thread). It stops short of stating permissions or whether a replaced set can be recovered, which would complete the destructive story.

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?

It is front-loaded with the user-intent trigger and the core action, then branches into matching rules, alternatives, and edge cases with no filler sentences. The matching-rule clause is dense and slightly overpacked for one paragraph, but every clause carries usable information for authoring keywords.

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 destructive two-parameter write with a nested payload and an output schema, the description covers intent, alternatives, matching semantics, replacement/reset behavior, and timing defaults. Nothing an agent needs to call it correctly is missing, and return values are covered by the output schema.

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 coverage is 100%, so the baseline is 3, but the description adds real meaning: delay_days of 0 means the next sending window, matching picks the first subsequence in list order, and a left-out enabled preserves a saved state while a new one starts on. The nested email/keyword constraints are left to the schema, but the semantic glue between the two parameters is explained.

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 states a specific verb and resource — it replaces a campaign's subsequences, defined as up to 5 sets of follow-up emails triggered by reply keywords — and immediately contrasts this with argorant_set_campaign_emails for the main emails and argorant_set_subsequence_enabled for toggling one entry. An agent can distinguish this tool from every nearby sibling without opening a schema.

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 a concrete user-intent trigger ("when someone replies interested, send them the case study" or custom follow-ups per answer), names the two alternative tools and what each covers, and states the edge case that an empty list removes all subsequences. When-to-use, when-to-use-something-else, and the destructive edge case are all explicit.

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.