Skip to main content
Glama

Sergio by Serviche

Opt campaign recipients out

opt_out_campaign_recipients
Idempotent

Records that the chosen campaign recipients asked to stop, as Opt out on the send queue does: scope 'all' stops every message, 'marketing' stops campaigns only; a short reason is required. It is a one-way stop and sends nothing. taskIds are the selected campaign step tasks from the send queue. Pass the same idempotency_key when retrying.

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": {
      "taskIds": "<taskIds>",
      "scope": "<scope>",
      "reason": "<reason>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "opt_out_campaign_recipients"
  }
}

Input Schema

NameRequiredDescriptionDefault
scopeYes
reasonYes
taskIdsYes
idempotency_keyYesYour id for this operation (8-128 of A-Z a-z 0-9 . _ : -). Reuse it on every retry of the same operation; use a new one for a new operation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare idempotentHint=true, destructiveHint=false, and openWorldHint=false, so the mechanical profile is covered. The description still contributes real value by disclosing that the effect is a permanent one-way stop, that no messages are sent as a side effect, and how retries must be keyed – behavior an agent could not read off the annotations. It stops short of saying what the call returns or how partial failures across up to 500 taskIds are reported.

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, then scope semantics, then a one-way/sends-nothing caveat, then per-parameter notes. Dense but every clause carries information; the colon-and-semicolon packing makes it slightly harder to scan than separated sentences would be.

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 four-parameter mutation with no output schema, the definition covers what changes, what does not happen (no messages sent), scope granularity, and idempotent retry. It is thin only on the response side and on multi-recipient partial-failure behavior, which matters at the 500-taskId ceiling.

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 only 25%, so the description has to compensate, and it largely does: it explains the two scope values, defines taskIds as the campaign step tasks selected from the send queue, notes that a short reason is mandatory, and gives retry semantics for idempotency_key. The only parameter aspect left to the schema alone is the 1-500 array bound.

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?

States a specific verb and resource: it 'records that the chosen campaign recipients asked to stop', and ties that to the familiar 'Opt out on the send queue' action. It implicitly separates itself from the exclusion/skip family by stressing 'one-way stop' and 'sends nothing', though it never names a sibling tool outright.

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 clear operating context: 'all' stops every message while 'marketing' stops campaigns only, a reason is required, and the same idempotency_key must be reused on retries. It does not explicitly say when to prefer this over exclude_campaign_recipients or skip_campaign_recipient, so the alternative-routing guidance is inferential rather than stated.

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