Skip to main content
Glama
Lettr MCP Server

Lettr MCP Server

Official
by lettr-com

List Campaign Events

list-campaign-events

Retrieve campaign engagement events such as opens, clicks, and bounces, filtered by recipient, event type, or date range. Paginate with the returned cursor until no next cursor remains.

Instructions

List engagement events (opens, clicks, bounces, etc.) for a campaign, with optional filters. Uses cursor-based pagination: this tool returns one page plus a next_cursor. Keep calling it with cursor set to the returned next_cursor until next_cursor is null. Note: when a filter is applied, a page can come back with no events but a non-null next_cursor — that means more pages remain, so keep paginating until next_cursor is null.

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>"
    },
    "name": "list-campaign-events"
  }
}

Input Schema

NameRequiredDescriptionDefault
emailNoFilter by recipient email address
limitNoMax events per page (1-100, default 25)
cursorNoPagination cursor from a previous response
end_dateNoOnly events at or before this time (ISO 8601, inclusive). A date-only value covers the whole day in UTC.
campaignIdYesThe campaign ID
event_typeNoFilter by event type
start_dateNoOnly events at or after this time (ISO 8601). A date-only value (e.g. 2026-05-01) is treated as start of day in UTC.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.7.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden and does real work: it discloses cursor-based pagination, the next_cursor loop protocol, and the non-obvious edge case where a filtered page is empty yet more pages remain. It stops short of stating event ordering, read-only guarantees, or rate limits, but the pagination disclosure is the trait most likely to cause silent data loss if omitted.

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?

The purpose is front-loaded in the first clause, and every following sentence concerns pagination behavior rather than filler. The termination condition is stated twice in slightly different forms, which is mild redundancy but arguably justified by the counterintuitive empty-page case.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 7-parameter tool with no annotations and no output schema, the description fully covers the pagination contract but says nothing about the shape of a returned event, the sort order of results, or whether the campaign scope excludes other events. These are secondary gaps, but with no output schema the description is the only place they could be addressed.

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 100%, so the baseline is 3, and the description exceeds it by explaining cursor as a loop variable rather than a one-shot token and by warning that an empty page with a non-null cursor is not terminal. That operational meaning is not present in the schema's terse 'Pagination cursor from a previous response'.

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 description gives a specific verb and resource — 'List engagement events (opens, clicks, bounces, etc.) for a campaign' — with concrete examples of event kinds. It does not distinguish itself from the sibling list-email-events, so an agent cannot tell from this text alone which listing tool to pick when both could apply.

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?

Usage is implied by 'for a campaign, with optional filters', which tells the agent the scope but not the conditions for choosing this over list-email-events or get-campaign. There are no explicit when-not or alternative-routing statements.

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