Skip to main content
Glama

Detach sender email from campaign

detach_campaign_sender_email
DestructiveIdempotent

Detaches a sender email from a campaign so the campaign stops sending through that mailbox. Unsent follow-ups to emails this sender already sent are canceled and do not come back on re-attach; a running campaign is rescheduled onto its remaining senders; already-sent emails are untouched. Idempotent: detaching a sender that is not attached is a no-op.

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": {
      "id": "<id>",
      "senderEmailId": "<senderEmailId>"
    },
    "name": "detach_campaign_sender_email"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe numeric campaign ID (from list_campaigns)
senderEmailIdYesThe numeric sender email ID (from list_sender_emails)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, and the description goes well beyond them by specifying exactly what is destroyed (unsent follow-ups for already-sent emails, permanently), what is rescheduled (a running campaign moves to remaining senders), and what is preserved (already-sent emails). It also clarifies the scope of idempotency, which the annotation only flags as a boolean.

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 tight sentences, no filler: primary effect first, then the destructive consequences, then the idempotency guarantee. Every clause carries decision-relevant information for an agent.

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 two-parameter destructive mutation with no output schema, the description covers the side effects, reversibility, rescheduling behavior, and idempotency that an agent needs before invoking it. Nothing material is missing.

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 both parameters are documented in-schema, including their source endpoints (list_campaigns, list_sender_emails). The description adds no further meaning about the ID parameters, so the baseline of 3 applies.

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 (detaches) plus resource (sender email from a campaign) and the operational consequence (campaign stops sending through that mailbox). This is clearly distinguishable from attach_campaign_sender_emails and from sender-email CRUD siblings.

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?

Usage context is clear: use this to stop a campaign sending through a mailbox, and the description notes the counterpart re-attach path when warning that canceled follow-ups do not return. It does not explicitly name the sibling tool for attaching or state any preconditions (e.g. required permissions or minimum remaining senders), so it falls short of full when/when-not routing.

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