Skip to main content
Glama

Get email events

get_email_events
Read-onlyIdempotent

Read one email's delivery and engagement timeline.

    Events include sent, delivered, delivery_delayed, bounced, complained,
    rejected, opened and clicked, with ``payload`` and ``occurred_at``.
    Open and click tracking requires an HTML email body. Delivery events
    are also available for plain-text email.

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": {
      "email_id": "<email_id>"
    },
    "name": "get_email_events"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum records returned on this page. Omitted: the API returns 100.
cursorNoPagination cursor: the ``next_cursor`` from the previous page. Omitted: the first page.
email_idYesEmail ID, from ``send_email`` or ``list_emails``.
llm_modelNoThe calling agent's provider model ID, as shown in the client's model configuration when available. Recorded for analytics.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / llm_model / description
      Previous value: -"Model ID of the calling agent. Optional. Recorded for analytics only."New value: +"The calling agent's provider model ID, as shown in the client's model configuration when available. Recorded for analytics."
  2. Changed5 schema fields changed
    • changedInput schema / properties / limit / description
      Previous value: -"How many items one page holds. ``next_cursor`` in the response points to the next page. Omitted: the API returns 100."New value: +"Maximum records returned on this page. Omitted: the API returns 100."
    • addedOutput schema / $defs
      Added value: +{
      +  "EmailEventResponse": {
      +    "properties": {
      +      "email_id": {
      +        "description": "The email this event belongs to.",
      +        "format": "uuid",
      +        "title": "Email Id",
      +        "type": "string"
      +      },
      +      "id": {
      +        "description": "Unique identifier for this event.",
      +        "format": "uuid",
      +        "title": "Id",
      +        "type": "string"
      +      },
      +      "kind": {
      +        "description": "Event kind: 'sent', 'delivered', 'delivery_delayed', 'bounced', 'complained', 'rejected', 'opened', or 'clicked'. 'opened' and 'clicked' only occur for emails sent with an HTML body; plain-text-only emails never produce them.",
      +        "enum": [
      +          "sent",
      +          "delivered",
      +          "delivery_delayed",
      +          "bounced",
      +          "complained",
      +          "rejected",
      +          "opened",
      +          "clicked"
      +        ],
      +        "title": "Kind",
      +        "type": "string"
      +      },
      +      "occurred_at": {
      +        "description": "When this event occurred, ISO 8601 timestamp.",
      +        "format": "date-time",
      +        "title": "Occurred At",
      +        "type": "string"
      +      },
      +      "payload": {
      +        "additionalProperties": true,
      +        "description": "Event-kind-specific detail, as a free-form JSON object.",
      +        "title": "Payload",
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "email_id",
      +      "kind",
      +      "payload",
      +      "occurred_at"
      +    ],
      +    "title": "EmailEventResponse",
      +    "type": "object"
      +  }
      +}
    • removedOutput schema / additionalProperties
      Removed value: -true
    • addedOutput schema / anyOf
      Added value: +[
      +  {
      +    "properties": {
      +      "items": {
      +        "description": "Events for this email, oldest first.",
      +        "items": {
      +          "$ref": "#/$defs/EmailEventResponse"
      +        },
      +        "title": "Items",
      +        "type": "array"
      +      },
      +      "next_cursor": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Opaque cursor for the next page. Null when there are no more results.",
      +        "title": "Next Cursor"
      +      }
      +    },
      +    "required": [
      +      "items",
      +      "next_cursor"
      +    ],
      +    "title": "EmailEventListResponse",
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "error": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "error"
      +    ],
      +    "type": "object"
      +  }
      +]
    • removedOutput schema / title
      Removed value: -"get_email_events_toolDictOutput"
  3. Changed1 schema field changed
    • addedInput schema / properties / llm_model
      Added value: +{
      +  "description": "Model ID of the calling agent. Optional. Recorded for analytics only.",
      +  "type": "string"
      +}
  4. Changed1 schema field changed
    • changedInput schema / properties / limit / description
      Previous value: -"Number of items per page. Omitted: 100."New value: +"How many items one page holds. ``next_cursor`` in the response points to the next page. Omitted: the API returns 100."
  5. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description earns credit for adding behavior beyond that: the full event taxonomy, the presence of 'payload' and 'occurred_at' in each event, and the operational caveat that open/click events only exist for HTML bodies while delivery events still work for plain text.

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?

Four short sentences with the core action stated first, followed by the event taxonomy and then the tracking caveat. Each sentence carries information; 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.

Completeness4/5

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

With full annotations, a 100%-documented four-parameter schema, and an output schema covering return shape, the description only needs to explain action and quirks — which it does via the event list and the HTML-body requirement. The remaining gap is routing guidance against sibling read tools like get_events and get_email.

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 the schema already documents limit, cursor, email_id provenance, and the llm_model analytics field, so the description can rely on it. The text adds no parameter-level semantics of its own — notably nothing about paging through a long event timeline, which is the main parameter a caller must reason about.

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 uses a specific verb ('Read') and a precise resource ('one email's delivery and engagement timeline'), then enumerates the event types returned. It is clear what the tool does, but it never distinguishes itself from the sibling 'get_events', which an agent could plausibly reach for instead.

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 only implied: scoping to 'one email' signals this is the per-message drill-down, and the note that open/click tracking requires an HTML body tells the agent when those event types will be absent. There is no explicit when-to-use versus alternatives (e.g. list_emails or get_events) and no stated preconditions such as email_id sourcing.

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.