Skip to main content
Glama

Add Lists to Campaign

add_lists_to_campaign
Idempotent

Add one or more lists to a DRAFT campaign's recipients, keeping the lists it already has. The API reports a campaign's lists by name, so the current lists are matched to list IDs by exact name; the tool refuses (changing nothing) if a name matches no list or several lists, if the campaign is not a draft, or if it sends to a segment (saving lists would replace the segment). Merges and de-duplicates, then saves the merged set. Set dry_run: true to see the resulting lists and approximate audience first.

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. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations, which only say it is a non-read-only, idempotent, non-destructive write. The description discloses the name-to-ID matching heuristic, the merge/de-duplicate-then-save flow, the exact set of abort conditions with the guarantee that nothing is changed, and the dry_run preview path. This is exactly the operational context the annotation hints cannot carry, and nothing contradicts idempotentHint=true or destructiveHint=false.

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?

Front-loaded with the core action and the non-replacing guarantee, then the failure modes, then the dry_run tip. Dense but every clause carries operational information; the long middle sentence packs several distinct conditions together, slightly reducing scannability.

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?

With only three fully documented parameters and no output schema, the description covers everything an agent needs: preconditions, abort behavior, mutation semantics, and a safe preview mode. No meaningful gap remains for a tool of this complexity.

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: list_ids are matched by exact name against the campaign's current lists, the set is merged and de-duplicated rather than replaced, and dry_run returns the resulting lists plus approximate audience size. The only gap is that the schema's 'add or remove' wording for list_ids is not reconciled with this tool's add-only behavior.

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?

Specific verb plus resource and scope: 'Add one or more lists to a DRAFT campaign's recipients, keeping the lists it already has.' The additive, non-replacing semantics immediately distinguish it from remove_lists_from_campaign and from create_segment/update_campaign.

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?

It clearly delimits the usable context (draft campaigns only) and enumerates refusal conditions: unknown or ambiguous list names, non-draft campaign, segment-based campaign. It stops short of naming the sibling alternative (remove_lists_from_campaign) or the recommended read-before-write path, so a 4 rather than 5.

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.