Skip to main content
Glama
Mautic MCP Connector

Mautic MCP Connector

by si-essence

mautic_remove_contact_from_campaign

DestructiveIdempotent

Remove a contact from a Mautic campaign by campaign and contact ID, with an optional dry-run preview before executing the write.

Instructions

Remove a contact from a campaign. POST /api/campaigns/{campaignId}/contact/{contactId}/remove. Omit confirm for a dry-run preview.

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>",
      "contact_id": "<contact_id>"
    },
    "name": "mautic_remove_contact_from_campaign"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNoSet to the boolean true to execute the write. Omit this field for a dry-run preview. false and the string true are rejected.
contact_idYes
campaign_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and openWorldHint=true, so the risk profile is covered. The description adds genuinely new behavior: a two-phase write pattern where omitting confirm yields a preview instead of executing. It does not say what happens on a non-member contact or whether campaign event history is affected.

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 compact sentences, front-loaded with the action, then the endpoint, then the safety affordance. No filler or restated naming.

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 two-parameter mutation with no output schema, the definition covers the action, the endpoint and the safe dry-run path, which is enough to invoke it correctly. Minor gaps remain around idempotency semantics (already partly covered by annotations) and error behavior for contacts not in the campaign.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 33%: confirm is fully documented in the schema itself (including rejection of false and the string 'true'), so the description merely restates it. campaign_id and contact_id have no descriptions anywhere; the URL template hints they are identifiers but adds no accepted-format or lookup guidance to compensate for the coverage gap.

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 a contact from a campaign') and is immediately distinguishable from its sibling mautic_add_contact_to_campaign. The POST endpoint path reinforces exactly which relationship is being altered.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives a concrete operational rule ('Omit confirm for a dry-run preview'), which tells the agent how to call it safely. However, it never states when to choose this over adjacent tools (e.g., removing from a segment vs. a campaign) or any prerequisites such as the contact actually being a campaign member.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.