Skip to main content
Glama
This connector has been deprecated

Replaced by Inviomail.

Duplicate listing under a wrong namespace; the canonical listing is de.inviomail/mcp

Update newsletter audience

update_campaign_target

Ask the user to clarify ambiguous include/exclude tags before editing; never assume all contacts. target.includeMatch and target.excludeMatch independently accept any (default when omitted) or all. Include any requires at least one selected tag; include all requires every selected tag. Exclude any rejects a contact with at least one selected tag; exclude all rejects only contacts with every selected exclusion tag. Empty includeTags imposes no restriction; empty excludeTags excludes nobody; exclusions win. Read and preserve tag arrays, clicks, opens and every group’s match modes when replacing target; omitting a match mode resets it to any. Replacing the target requires a complete target object; preserve existing tags, click filters and opening filters unless the user requested their removal. For a real send, follow prepare_campaign_dispatch and commit_campaign_dispatch with explicit approval. Updates only the audience targeting for one draft newsletter campaign in the authenticated inviomail tenant. First call get_campaign_details and use its draftRevision as expectedDraftRevision. Use get_campaign_details to read the current target.includeTags, target.excludeTags, target.clicks, target.opens and all includeMatch/excludeMatch fields before editing. Use mode all with empty includeTags and excludeTags for no tag restriction, or mode tags for tag targeting. Everyone requires empty tag arrays plus no click or opening filters. This tool never changes contentJson, never schedules or sends, and clears prepared queued/scheduled recipients.

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": {
      "campaignId": "<campaignId>",
      "expectedDraftRevision": "<expectedDraftRevision>",
      "target": "<target>"
    },
    "name": "update_campaign_target"
  }
}

Input Schema

NameRequiredDescriptionDefault
targetYesAudience target with optional clicks.include/clicks.exclude criteria (campaignId and optional destinationUrl), independently combined by clicks.includeMatch/clicks.excludeMatch any or all. Tag, click and open criteria all apply together; exclusions win. opens.include/opens.exclude select recorded newsletter opens by campaignId, combined by opens.includeMatch/opens.excludeMatch. Open data is unreliable due to privacy protections and blocked images; no recorded open does not prove unread. Preserve saved clicks and opens unless explicitly changed; use empty arrays to clear. Complete replacement audience target for the draft campaign.
campaignIdYesNewsletter campaign ID
expectedDraftRevisionYesExact draftRevision returned by get_campaign_details

Output Schema

NameRequiredDescriptionDefault
campaignYes
requestIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • changedInput schema / properties / target / description
      Previous value: -"Complete replacement audience target for the draft campaign."New value: +"Audience target with optional clicks.include/clicks.exclude criteria (campaignId and optional destinationUrl), independently combined by clicks.includeMatch/clicks.excludeMatch any or all. Tag, click and open criteria all apply together; exclusions win. opens.include/opens.exclude select recorded newsletter opens by campaignId, combined by opens.includeMatch/opens.excludeMatch. Open data is unreliable due to privacy protections and blocked images; no recorded open does not prove unread. Preserve saved clicks and opens unless explicitly changed; use empty arrays to clear. Complete replacement audience target for the draft campaign."
    • addedInput schema / properties / target / properties / clicks
      Added value: +{
      +  "properties": {
      +    "exclude": {
      +      "default": [],
      +      "items": {
      +        "properties": {
      +          "campaignId": {
      +            "format": "uuid",
      +            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +            "type": "string"
      +          },
      +          "destinationUrl": {
      +            "format": "uri",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "campaignId"
      +        ],
      +        "type": "object"
      +      },
      +      "maxItems": 200,
      +      "type": "array"
      +    },
      +    "excludeMatch": {
      +      "default": "any",
      +      "enum": [
      +        "any",
      +        "all"
      +      ],
      +      "type": "string"
      +    },
      +    "include": {
      +      "default": [],
      +      "items": {
      +        "properties": {
      +          "campaignId": {
      +            "format": "uuid",
      +            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +            "type": "string"
      +          },
      +          "destinationUrl": {
      +            "format": "uri",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "campaignId"
      +        ],
      +        "type": "object"
      +      },
      +      "maxItems": 200,
      +      "type": "array"
      +    },
      +    "includeMatch": {
      +      "default": "any",
      +      "enum": [
      +        "any",
      +        "all"
      +      ],
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
    • changedInput schema / properties / target / properties / mode / description
      Previous value: -"Use all for everyone, or tags to target contacts by include/exclude tags"New value: +"Use all when no tag criteria are needed, or tags to filter by include/exclude tags. Click and open criteria apply independently of this mode."
    • addedInput schema / properties / target / properties / opens
      Added value: +{
      +  "properties": {
      +    "exclude": {
      +      "default": [],
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "campaignId": {
      +            "format": "uuid",
      +            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "campaignId"
      +        ],
      +        "type": "object"
      +      },
      +      "maxItems": 200,
      +      "type": "array"
      +    },
      +    "excludeMatch": {
      +      "default": "any",
      +      "enum": [
      +        "any",
      +        "all"
      +      ],
      +      "type": "string"
      +    },
      +    "include": {
      +      "default": [],
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "campaignId": {
      +            "format": "uuid",
      +            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "campaignId"
      +        ],
      +        "type": "object"
      +      },
      +      "maxItems": 200,
      +      "type": "array"
      +    },
      +    "includeMatch": {
      +      "default": "any",
      +      "enum": [
      +        "any",
      +        "all"
      +      ],
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
    • addedOutput schema / properties / campaign / properties / target / properties / clicks
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "exclude": {
      +      "default": [],
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "campaignId": {
      +            "format": "uuid",
      +            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +            "type": "string"
      +          },
      +          "destinationUrl": {
      +            "format": "uri",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "campaignId"
      +        ],
      +        "type": "object"
      +      },
      +      "maxItems": 200,
      +      "type": "array"
      +    },
      +    "excludeMatch": {
      +      "default": "any",
      +      "enum": [
      +        "any",
      +        "all"
      +      ],
      +      "type": "string"
      +    },
      +    "include": {
      +      "default": [],
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "campaignId": {
      +            "format": "uuid",
      +            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +            "type": "string"
      +          },
      +          "destinationUrl": {
      +            "format": "uri",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "campaignId"
      +        ],
      +        "type": "object"
      +      },
      +      "maxItems": 200,
      +      "type": "array"
      +    },
      +    "includeMatch": {
      +      "default": "any",
      +      "enum": [
      +        "any",
      +        "all"
      +      ],
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "include",
      +    "exclude",
      +    "includeMatch",
      +    "excludeMatch"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / campaign / properties / target / properties / opens
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "exclude": {
      +      "default": [],
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "campaignId": {
      +            "format": "uuid",
      +            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "campaignId"
      +        ],
      +        "type": "object"
      +      },
      +      "maxItems": 200,
      +      "type": "array"
      +    },
      +    "excludeMatch": {
      +      "default": "any",
      +      "enum": [
      +        "any",
      +        "all"
      +      ],
      +      "type": "string"
      +    },
      +    "include": {
      +      "default": [],
      +      "items": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "campaignId": {
      +            "format": "uuid",
      +            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "campaignId"
      +        ],
      +        "type": "object"
      +      },
      +      "maxItems": 200,
      +      "type": "array"
      +    },
      +    "includeMatch": {
      +      "default": "any",
      +      "enum": [
      +        "any",
      +        "all"
      +      ],
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "include",
      +    "exclude",
      +    "includeMatch",
      +    "excludeMatch"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

A3.8/5.0
Behavior3/5

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

The annotations already declare readOnly=false, destructive=false and idempotent=false, and the description adds real value beyond them: optimistic concurrency via expectedDraftRevision, the fact that omitting a match mode resets it to any, that replacing requires a complete target object, and that it never sends or schedules. However, 'clears prepared queued/scheduled recipients' is a state-destroying side effect that sits awkwardly beside destructiveHint=false and is stated only in passing with no explanation of when it triggers.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

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

A single dense paragraph of roughly fifteen sentences where the core purpose appears late, behind tag-matching rules. The include/exclude any/all semantics are effectively stated twice (in the description and again in the schema field descriptions), and the 'preserve existing tags/clicks/opens' instruction is repeated in at least three variants.

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 nested, replacement-semantics mutation with an optimistic-lock parameter, the definition covers the workflow, the reset-on-omission pitfall, exclusion preemption, the 'clarify ambiguous tags' safety rule, and what the tool explicitly does not touch. An output schema exists, so return values need not be described.

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 nested objects document includeMatch/excludeMatch, clicks and opens in detail, so the description largely restates rather than adds. What it does contribute beyond the schema is the replacement semantics (omitting a field resets or drops it) and the preserve-before-edit instruction, which is useful but narrow.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The sentence 'Updates only the audience targeting for one draft newsletter campaign in the authenticated inviomail tenant' gives a specific verb, resource and scope, and 'never changes contentJson' implicitly separates it from update_campaign_content and update_campaign_settings. The drawback is placement: the purpose statement sits about two-thirds of the way into a dense block, after extensive match-mode 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 an explicit ordered workflow (call get_campaign_details, use its draftRevision as expectedDraftRevision, read current target first), names the prerequisite tool twice, and routes real sends to prepare_campaign_dispatch/commit_campaign_dispatch with explicit approval. It also states concrete configuration recipes: mode all with empty tag arrays for no restriction, mode tags for targeting, and 'everyone requires empty tag arrays plus no click or opening filters'.

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