Skip to main content
Glama
Sequenzy MCP Server

Sequenzy MCP Server

Official
by Sequenzy

get_transactional_stats

Read-onlyIdempotent

Retrieve all-time or time-windowed aggregate sends, deliveries, bounces, opens, clicks, and rates for a saved transactional email by ID or slug.

Instructions

Get aggregate sends, deliveries, bounces, opens, clicks, and rates for one saved transactional email selected by ID or slug. Results are all-time by default; pass period or start/end for a window. For direct-content Send API messages, use get_stats with emailType transactional and list_email_sends/get_email_send for delivery-level detail.

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": {
      "idOrSlug": "<idOrSlug>"
    },
    "name": "get_transactional_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNoOptional ISO 8601 custom range end. Must be provided with start; maximum range is 90 days.
startNoOptional ISO 8601 custom range start. Must be provided with end.
periodNoOptional sliding window: 1h, 24h, 7d, 30d, or 90d. Ignored when start and end are provided.
idOrSlugYesSaved transactional email ID or API slug.
companyIdNoCompany ID. If not provided, uses the currently selected company.
includeMachineEngagementNoIf true, include machine-classified bot/scanner opens and clicks. Defaults to false, so metrics and activity are human-only.

Output Schema

NameRequiredDescriptionDefault
noteNoAdditional context about the result.
itemsNoFallback array wrapper used only when a tool returns a bare array.
statsNoDelivery funnel for this transactional email. `opened` and `clicked` are unique counts deduplicated by email send (one recipient opening five times counts once), not total open events. Every count is attributed to the sends made inside the requested window, including engagement that arrives after the window ends, so `opened <= delivered <= sent` always holds. Rates use `rateDenominator` (`delivered`, or `sent` when no delivery events were recorded, reported as `rateDenominatorBasis`); `deliveryRate` and `bounceRate` divide by `sent`.
valueNoFallback object wrapper used only when a tool returns a non-object value.
messageNoHuman-readable status, confirmation, or next-step message.
successNoWhether the Sequenzy operation succeeded.
warningsNoNon-fatal cautions about content, permissions, or follow-up actions.
complaintsNoThe complaint count and rate for the selected transactional email record returned by Sequenzy.
clickedLinksNoList of clicked link with click count and percentage share records returned by Sequenzy.
transactionalNoThe transactional email record returned by Sequenzy.
bounceBreakdownNoThe permanent, transient, blocked, and undetermined bounce counts plus subtype details; blocked is the part of transient the receiver refused on content, policy, or reputation grounds, and soft bounces are transient minus blocked record returned by Sequenzy.
engagementBreakdownNoThe human and machine open and click counts record returned by Sequenzy.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.0

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive, and closed-world, so safety is covered. The description adds genuine context beyond them: results are aggregate and all-time unless a period or start/end is supplied, and it points to delivery-level alternatives. It does not discuss auth requirements or output format, but the output schema exists, so this is a minor gap.

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 sentences, front-loaded with purpose, then defaults, then routing to alternatives. Every sentence carries decision-relevant information with no filler or restatement of the title.

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 read-only stats tool with a full schema and an output schema, the definition covers what an agent needs: what is returned, the addressable entity, default versus windowed time scope, and which sibling to use for the two adjacent cases. Return-value explanations are correctly omitted since an output schema is supplied.

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. The description goes slightly beyond the schema by declaring the default temporal behavior (all-time) and the period-versus-start/end precedence in prose, which reinforces the windowing semantics an agent must choose between. It does not add detail for companyId or includeMachineEngagement beyond what the schema states.

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 (Get) and precise resource (aggregate sends, deliveries, bounces, opens, clicks, rates) scoped to exactly one saved transactional email addressed by ID or slug. It explicitly contrasts with get_stats plus list_email_sends/get_email_send, so an agent can separate it from siblings without opening a schema.

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

Usage Guidelines5/5

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

Gives the positive case (one saved transactional email, aggregate metrics) and the negative case (direct-content Send API messages should go to get_stats with emailType transactional, with list_email_sends/get_email_send for delivery-level detail). It also explains default behavior (all-time) versus windowed queries, leaving nothing to infer.

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

Deploy Server

Other Tools