Skip to main content
Glama

Remove Lists from Campaign

remove_lists_from_campaign
DestructiveIdempotent

Remove one or more lists from a DRAFT campaign's recipients, keeping the others. The current lists are matched to list IDs by exact name; refuses (changing nothing) if a name is missing or ambiguous, if the campaign is not a draft or sends to a segment, or if no list would remain. Set dry_run: true to see the resulting lists first.

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>",
      "list_ids": "<list_ids>"
    },
    "name": "remove_lists_from_campaign"
  }
}

Input Schema

NameRequiredDescriptionDefault
dry_runNoShow the resulting list set without changing the campaign
list_idsYesList IDs to add or remove
campaign_idYesDraft campaign ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / campaign_id / description
      Previous value: -"Draft campaign ID,required"New value: +"Draft campaign ID"
    • changedInput schema / properties / list_ids / description
      Previous value: -"List IDs to add or remove,required"New value: +"List IDs to add or remove"
  2. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, but the description adds what those hints cannot: the operation is all-or-nothing (refuses changing nothing on any mismatch) and name resolution is by exact match. It also documents the dry_run preview path, giving the agent a safe way to inspect results before mutating.

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?

Three dense sentences front-loaded with the operation and the draft-only constraint, followed by refusal conditions and the dry_run escape hatch. No filler and no repetition of annotation fields.

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 a destructive three-parameter mutation with no output schema, the description covers the failure modes, atomicity, and preview path, which is close to complete. The only gap is the unresolved ID-versus-name wording for list_ids, which an agent may need to clarify before calling.

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% with a baseline of 3, and the description earns above that by explaining dry_run's effect (see the resulting list set first) and the name-matching rule used to resolve the provided values. It leaves a residual ambiguity: the parameter is named list_ids and described in-schema as IDs, yet the prose talks about exact-name matching.

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 (remove lists from a campaign's recipients) and constrains scope to DRAFT campaigns while keeping other lists intact, which cleanly separates it from add_lists_to_campaign. An agent can identify the operation and its boundary without opening the schema.

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 concrete preconditions and negative cases: not a draft, segment-sending campaign, missing or ambiguous name, or last remaining list all cause refusal. It never explicitly names add_lists_to_campaign as the counterpart operation, so routing guidance is strong on exclusion but implicit on alternatives.

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