Skip to main content
Glama

ingest_newsletter_events

Destructive

Take events from the newsletter provider (unsubscribed, subscribed, delivered, opened, clicked, bounced) and apply them. AN UNSUBSCRIBE BECOMES A WITHDRAWAL and from then on blocks every send path in CallPilotAI, because the send gate reads the same table. A spam complaint counts as an unsubscribe. A subscribe does NOT lift an existing withdrawal — the stricter side always wins, even when the subscribe is newer. A bounce does not block: an undeliverable address is a technical finding, not a person's objection. Events whose email cannot be found are reported, not guessed. The same tool serves ANY external preference source — pass purpose (e.g. 'spenden' for a fundraising system) and the withdrawal is recorded for that purpose. A consent is always for ONE purpose, so the purpose has to travel with the event.

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": {
      "events": "<events>"
    },
    "name": "ingest_newsletter_events"
  }
}

Input Schema

NameRequiredDescriptionDefault
eventsYesProvider payloads. Each needs an event/type and an email somewhere.
sourceNoWhich provider — appears in the history entry.
purposeNoWhich processing purpose these preferences are about. Default 'newsletter'. A fundraising system's objection belongs under its own purpose (e.g. 'spenden') — a withdrawal for donations is not a withdrawal for invoices.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Goes well beyond the annotations (destructive, non-idempotent, open-world) by explaining the exact consequence chain: an unsubscribe becomes a permanent withdrawal that blocks every send path, spam counts as an unsubscribe, a later subscribe does not lift a withdrawal, and a bounce does not block. It also states the failure-handling policy: unmatched emails are reported, not guessed. This is precisely the irreversible-behavior disclosure an agent needs before a destructive ingest.

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-loads the action, then layers in behavioral rules as short declarative sentences with useful emphasis. A few lines duplicate the schema's `purpose` explanation (the closing 'purpose has to travel with the event' sentence), which trims it below a full 5.

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?

No output schema exists, and the description covers side effects, dedupe/override rules, and how unmatched emails surface ('reported'), which is most of what an agent needs. It does not say what the response actually contains (counts, per-event status, history entry structure), leaving a modest gap for a destructive ingest.

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 coverage is 100%, so the schema already documents `events`, `source` and `purpose`; the description largely restates the purpose semantics already in the schema ('a withdrawal for donations is not a withdrawal for invoices'). It does add some meaning, notably that each payload only needs an event/type and an email somewhere and that unresolvable emails are reported — hence above the baseline but not rich parameter guidance.

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?

Opens with a specific verb+resource ('Take events from the newsletter provider ... and apply them') and enumerates the concrete event types handled (unsubscribed, subscribed, delivered, opened, clicked, bounced). The stated effect — writing preferences that the send gate reads — makes it unmistakably different from pure listing tools such as list_brevo_email_events.

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?

Clearly states the context of use (any external preference source, with `purpose` selecting the domain, e.g. 'spenden' for fundraising vs 'newsletter'). No explicit when-not guidance or named alternative sibling, which is the only gap.

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.